|
Model Railroad System 2.2.2
|
The IntegerList class implements a linked list of integers, used for turnout route lists.
More...
#include <IntegerList.h>
Public Member Functions | |
| IntegerList (int car=0, IntegerList *cdr=NULL) | |
| Base constructor. More... | |
| int | Element () const |
| Element accessor. More... | |
| const IntegerList * | Next () const |
| Next pointer accessor (Const version). More... | |
| IntegerList * | Next () |
| Next pointer accessor (non-Const version). More... | |
| bool | ElementP (int v) const |
| Is value in the list? More... | |
Static Public Member Functions | |
| static IntegerList * | IntAppend (IntegerList *head, int newTail) |
| Add an element to the {end} of the list. More... | |
| static void | CleanUpIntegerList (IntegerList *list) |
| Free up used memory. More... | |
| static IntegerList * | CopyList (const IntegerList *src) |
Private Attributes | |
| int | iElt |
| The current element. More... | |
| IntegerList * | next |
| The pointer to the next element. More... | |
Friends | |
| class | TurnoutBodyElt |
| ostream & | operator<< (ostream &stream, IntegerList list) |
| Output operator. More... | |
The IntegerList class implements a linked list of integers, used for turnout route lists.
|
inline |
|
inlinestatic |
|
inlinestatic |
References iElt, IntAppend(), and next.
|
inline |
Element accessor.
References iElt.
|
inline |
|
inlinestatic |
Add an element to the {end} of the list.
References IntegerList(), and next.
Referenced by CopyList().
|
inline |
Next pointer accessor (non-Const version).
References next.
|
inline |
Next pointer accessor (Const version).
References next.
|
friend |
Output operator.
|
friend |
|
private |
The current element.
Referenced by CopyList(), Element(), ElementP(), and IntegerList().
|
private |
The pointer to the next element.
Referenced by CleanUpIntegerList(), CopyList(), ElementP(), IntAppend(), IntegerList(), and Next().