Model Railroad System 2.2.2
|
List of turnout body lines (T, E, P, S, C, and J lines). More...
#include <TurnoutBody.h>
Public Member Functions | |
TurnoutBody (TurnoutBodyElt *e, TurnoutBody *n) | |
Basic constructor. More... | |
TrackBody * | TurnoutEnds () |
Create a track endpoint list. More... | |
int | TurnoutSegmentCount () |
Count segments (S, C, and J lines). More... | |
int | TurnoutRouteCount () |
Count routes (P lines). More... | |
const TurnoutBodyElt * | Element () const |
Return current element. More... | |
Static Public Member Functions | |
static TurnoutBody * | ConsTurnoutBody (TurnoutBodyElt *trbe, TurnoutBody *trb) |
Alternitive constructor function. More... | |
static void | CleanUpTurnoutBody (TurnoutBody *trb) |
Free up memory. More... | |
Private Member Functions | |
void | CleanUpElement () |
Free up memory. More... | |
Private Attributes | |
TurnoutBodyElt * | element |
Current element. More... | |
TurnoutBody * | next |
Next element. More... | |
Friends | |
class | TurnoutBodyElt |
class | TrackGraph |
List of turnout body lines (T, E, P, S, C, and J lines).
|
inline |
|
inlineprivate |
Free up memory.
References element, Parsers::TurnoutBodyElt::None, Parsers::TurnoutBodyElt::theEnd, Parsers::TurnoutBodyElt::theType, Parsers::TurnoutBodyElt::TurnoutCurveSegment, Parsers::TurnoutBodyElt::TurnoutEnd, Parsers::TurnoutBodyElt::TurnoutJointSegment, Parsers::TurnoutBodyElt::TurnoutRoute, and Parsers::TurnoutBodyElt::TurnoutStraightSegment.
Referenced by CleanUpTurnoutBody().
|
inlinestatic |
Free up memory.
References CleanUpElement(), element, and next.
|
inlinestatic |
Alternitive constructor function.
References TurnoutBody().
|
inline |
Return current element.
References element.
|
inline |
Create a track endpoint list.
References Parsers::TrackBody::AppendTrackBodyElt(), element, next, Parsers::TurnoutBodyElt::theEnd, Parsers::TurnoutBodyElt::theType, and Parsers::TurnoutBodyElt::TurnoutEnd.
|
inline |
Count routes (P lines).
References element, next, Parsers::TurnoutBodyElt::theType, and Parsers::TurnoutBodyElt::TurnoutRoute.
|
inline |
Count segments (S, C, and J lines).
References element, next, Parsers::TurnoutBodyElt::theType, Parsers::TurnoutBodyElt::TurnoutCurveSegment, Parsers::TurnoutBodyElt::TurnoutJointSegment, and Parsers::TurnoutBodyElt::TurnoutStraightSegment.
|
friend |
|
friend |
|
private |
Current element.
Referenced by CleanUpElement(), CleanUpTurnoutBody(), Element(), TurnoutBody(), TurnoutEnds(), TurnoutRouteCount(), and TurnoutSegmentCount().
|
private |
Next element.
Referenced by CleanUpTurnoutBody(), TurnoutBody(), TurnoutEnds(), TurnoutRouteCount(), and TurnoutSegmentCount().