#include <pg_list.h>
Classes | |
| class | Item |
| An element of pgList. More... | |
Public Member Functions | |
| pgDefineException (ExceptionInvalidArgument) | |
| pgList () | |
| Constructs a pgList with no item. | |
| ~pgList () | |
| Destructs this pgList. | |
| u32 | getItemNum () const |
| Returns the number of pgList::Items in this pgList. | |
| bool | hasItem () const |
| Returns whether this pgList has any pgList::Item. | |
| Item * | getFirstN () const |
| Returns the first pgList::Item in this pgList. | |
| Item * | getLastN () const |
| Returns the last pgList::Item in this pgList. | |
| void | addFirst (Item *item) |
| Adds the specified pgList::Item to this pgList as the first pgList::Item. | |
| void | addLast (Item *item) |
| Adds the specified pgList::Item to this pgList as the last pgList::Item. | |
| void | clear () |
| Removes all pgList::Items from this pgList. | |
| T | The type which is stored in the pgList. |
Adds the specified pgList::Item to this pgList as the first pgList::Item.
| [in] | item | A pgList::Item. |
Adds the specified pgList::Item to this pgList as the last pgList::Item.
| [in] | item | A pgList::Item. |
Returns the first pgList::Item in this pgList.
If this pgList has no pgList::Item, returns NULL.
| u32 pgList< T >::getItemNum | ( | ) | const [inline] |
Returns the last pgList::Item in this pgList.
If this list has no pgList::Item, returns NULL.
| bool pgList< T >::hasItem | ( | ) | const [inline] |
1.5.8