The container to store items. More...
#include <CItemList.h>
Public Member Functions | |
CItemList () | |
Constructs an empty CItemList object. | |
void | AddItem (SItem *item) |
Adds an item at the end of the list. | |
INT8 | GetItemCount () |
Returns the number of items in the list. | |
SItem * | GetItem (INT8 index) |
Gets the item associated with the specified index. |
The container to store items.
void CItemList::AddItem | ( | SItem * | item | ) |
Adds an item at the end of the list.
item | the SItem to be added |
SItem * CItemList::GetItem | ( | INT8 | index | ) |
Gets the item associated with the specified index.
index | - the position of the item |
INT8 CItemList::GetItemCount | ( | ) | [inline] |
Returns the number of items in the list.