#include <idlist.h>
Public Member Functions | |
Successors and predecessors | |
IdElement< T > *& | next () |
returns the next element in the IdList (writeable). More... | |
IdElement< T > *const & | next () const |
returns the next element in the IdList. More... | |
IdElement< T > *& | prev () |
returns the previous element in the IdList (writeable). More... | |
IdElement< T > *const & | prev () const |
returns the previous element in the IdList. More... | |
Construction / destruction | |
IdElement () | |
default constructor. More... | |
IdElement (const T &old) | |
copy constructor. More... | |
Private Attributes | |
Data | |
IdElement< T > * | theprev |
pointer to previous element in the IdList More... | |
IdElement< T > * | thenext |
pointer to next element in the IdList More... | |
Elements for IdLists.
IdElements are derived from the template parameter class T and can hence be used as such. The additional methods next() and prev() provide access to the links for the list. They may freely be used by the programmer as long as an IdElement is not member of a IdList. In this case, the IdList controls members next() and prev(). However, IdList should provide enough functionality for the user not to require any modification to these members.
IdElement | ( | const T & | old | ) |
IdElement< T > *& next | ( | ) |
returns the next element in the IdList (writeable).
Definition at line 76 of file idlist.h.
References IdElement< T >::thenext.
IdElement< T > *const & next | ( | ) | const |
returns the next element in the IdList.
Definition at line 81 of file idlist.h.
References IdElement< T >::thenext.
IdElement< T > *& prev | ( | ) |
returns the previous element in the IdList (writeable).
Definition at line 87 of file idlist.h.
References IdElement< T >::theprev.
IdElement< T > *const & prev | ( | ) | const |
returns the previous element in the IdList.
Definition at line 92 of file idlist.h.
References IdElement< T >::theprev.
|
private |
pointer to next element in the IdList
Definition at line 67 of file idlist.h.
Referenced by IdElement< T >::next().
|
private |
pointer to previous element in the IdList
Definition at line 66 of file idlist.h.
Referenced by IdElement< T >::prev().