GTK+ IOStream
Beta
<< GTK+ >> add C++ IOStream operators to GTK+. Now with extra abilities ... like network serialisation
|
#include <LinkList.H>
Public Types | |
enum | direction { FWD, REV } |
Public Member Functions | |
LinkList (void) | |
Initialiser This is for the first element - links to itself. More... | |
virtual | ~LinkList (void) |
Small cleanup ... More... | |
void | add (TYPE newElement) |
Adds as the current element ... Added to the next of the current lug. More... | |
TYPE | change (TYPE changeElement) |
exchange lugs The current lug is replaced with this lug. More... | |
TYPE | remove (void) |
remove the current lug from the LinkList The current lug is removed form the list and passed back to the caller. More... | |
TYPE | current (void) |
return a pointer to the current lug More... | |
TYPE | next (void) |
Return a pointer to the next lug and move on to that lug Increments according to dir (either forward or backwards). More... | |
TYPE | prev (void) |
Return a pointer to the previous lug and move to that lug Increments against dir (either forward or backwards). More... | |
TYPE | grab (int i) |
returns the i'th lug in the chain irrespective of direction More... | |
int | getCount (void) |
Public Attributes | |
direction | dir |
The current direction. More... | |
Private Attributes | |
Lug< TYPE > * | lug |
The current Lug we are pointing to. More... | |
Lug< TYPE > * | startLug |
The first Lug in the looped list. More... | |
long | count |
The number in the list. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &o, LinkList *l) |
Runs the ostream operator on each element of the list. More... | |
std::ostream & | operator<< (std::ostream &o, LinkList &l) |
Runs the ostream operator on each element of the list. More... | |
Definition at line 80 of file LinkList.H.
enum LinkList::direction |
Enumerator | |
---|---|
FWD | |
REV |
Definition at line 87 of file LinkList.H.
Initialiser This is for the first element - links to itself.
Definition at line 93 of file LinkList.H.
Small cleanup ...
Definition at line 100 of file LinkList.H.
Adds as the current element ... Added to the next of the current lug.
newElement | The element to add |
Definition at line 110 of file LinkList.H.
exchange lugs The current lug is replaced with this lug.
changeElement | The element to swap in |
Definition at line 125 of file LinkList.H.
return a pointer to the current lug
Definition at line 197 of file LinkList.H.
< Returns the number of Lug s in the chain
Definition at line 254 of file LinkList.H.
returns the i'th lug in the chain irrespective of direction
i | The lug to extract |
Definition at line 238 of file LinkList.H.
Return a pointer to the next lug and move on to that lug Increments according to dir (either forward or backwards).
Definition at line 208 of file LinkList.H.
Return a pointer to the previous lug and move to that lug Increments against dir (either forward or backwards).
Definition at line 223 of file LinkList.H.
remove the current lug from the LinkList The current lug is removed form the list and passed back to the caller.
Definition at line 138 of file LinkList.H.
Runs the ostream operator on each element of the list.
o | the ostream |
l | A pointer to the linked list |
Definition at line 263 of file LinkList.H.
Runs the ostream operator on each element of the list.
o | the ostream |
l | The linked list |
Definition at line 277 of file LinkList.H.
The number in the list.
Definition at line 84 of file LinkList.H.
The current direction.
Definition at line 88 of file LinkList.H.
The current Lug we are pointing to.
Definition at line 82 of file LinkList.H.
The first Lug in the looped list.
Definition at line 83 of file LinkList.H.