#include <pg_list.h>
Public Member Functions | |
| pgDefineException (ExceptionInvalidArgument) | |
| pgDefineException (ExceptionInvalidCall) | |
| pgDefineException (ExceptionNotInitialized) | |
| Item () | |
| Constructs a pgList::Item. | |
| ~Item () | |
| Destructs this pgList::Item. | |
| void | init (T *self) |
| Initializes this pgList::Item to have the specified value. | |
| T * | getSelf () const |
| Returns the value of this pgList::Item. | |
| Item * | getPrevN () const |
| Returns the previous pgList::Item of this pgList::Item. | |
| Item * | getNextN () const |
| Returns the next pgList::Item of this pgList::Item. | |
| bool | hasList () const |
| Returns whether this pgList::Item belongs to a pgList. | |
| pgList< T > * | getListN () const |
| Returns the pgList which this pgList::Item belongs to. | |
| void | joinBefore (Item *item) |
| Insertes this pgList::Item before the specified pgList::Item. | |
| void | joinAfter (Item *item) |
| Insertes this pgList::Item after the specified pgList::Item. | |
| void | leave () |
| Removes this pgList::Item from the pgList which the pgList::Item belongs to. | |
Friends | |
| class | pgList< T > |
Returns the pgList which this pgList::Item belongs to.
If ths pgList::Item does not belong to any pgList, returns NULL.
Returns the next pgList::Item of this pgList::Item.
If the pgList::Item has no next pgList::Item, returns NULL.
Returns the previous pgList::Item of this pgList::Item.
If the pgList::Item has no previous pgList::Item, returns NULL.
| T* pgList< T >::pgList::Item::getSelf | ( | ) | const [inline] |
| bool pgList< T >::pgList::Item::hasList | ( | ) | const [inline] |
Returns whether this pgList::Item belongs to a pgList.
| void pgList< T >::pgList::Item::init | ( | T * | self | ) | [inline] |
Initializes this pgList::Item to have the specified value.
This method can be called more than once.
| [in] | self | The pointer to a value. |
1.5.8