gtkIOStream
1.7.0
GTK+ << C++ IOStream operators for GTK+. Now with ORBing, numerical computation, audio client and more ...
|
#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) |
TYPE | getEnd () |
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 85 of file LinkList.H.
enum LinkList::direction |
Enumerator | |
---|---|
FWD | |
REV |
Definition at line 92 of file LinkList.H.
Initialiser This is for the first element - links to itself.
Definition at line 98 of file LinkList.H.
Small cleanup ...
Definition at line 105 of file LinkList.H.
|
inline |
Adds as the current element ... Added to the next of the current lug.
newElement | The element to add |
Definition at line 119 of file LinkList.H.
|
inline |
exchange lugs The current lug is replaced with this lug.
changeElement | The element to swap in |
Definition at line 137 of file LinkList.H.
|
inline |
return a pointer to the current lug
Definition at line 212 of file LinkList.H.
|
inline |
< Returns the number of Lug s in the chain
Definition at line 278 of file LinkList.H.
|
inline |
Method to get the last element in the list.
Definition at line 317 of file LinkList.H.
|
inline |
returns the i'th lug in the chain irrespective of direction
i | The lug to extract |
Definition at line 259 of file LinkList.H.
|
inline |
Return a pointer to the next lug and move on to that lug Increments according to dir (either forward or backwards).
Definition at line 226 of file LinkList.H.
|
inline |
Return a pointer to the previous lug and move to that lug Increments against dir (either forward or backwards).
Definition at line 244 of file LinkList.H.
|
inline |
remove the current lug from the LinkList The current lug is removed form the list and passed back to the caller.
Definition at line 153 of file LinkList.H.
|
friend |
Runs the ostream operator on each element of the list.
o | the ostream |
l | A pointer to the linked list |
Definition at line 290 of file LinkList.H.
|
friend |
Runs the ostream operator on each element of the list.
o | the ostream |
l | The linked list |
Definition at line 304 of file LinkList.H.
|
private |
The number in the list.
Definition at line 89 of file LinkList.H.
The current direction.
Definition at line 93 of file LinkList.H.
The current Lug we are pointing to.
Definition at line 87 of file LinkList.H.
The first Lug in the looped list.
Definition at line 88 of file LinkList.H.
GTK+ IOStream
Beta
|