#include <kcharptrset.h>
Definition at line 52 of file kcharptrset.h.
Public Member Functions | |
| KCharPtrSet (int pItemPerBlock=20) | |
| Class constructor. | |
| ~KCharPtrSet () | |
| Class destructor. | |
| void | Add (char *pReference, kReference pItem) |
| Add a new item. | |
| bool | Remove (char *pReference) |
| Removes an item. | |
| kReference | Get (char *pReference, int *PIndex=NULL) |
| Get an item's reference. | |
| kReference & | operator[] (int pIndex) |
| Get an item's reference from index. | |
| kReference | GetFromIndex (int pIndex, char **pReference=NULL) |
| Get an item's reference from index. | |
| void | RemoveFromIndex (int pIndex) |
| Removes an item by index. | |
| int | GetCount () |
| Get the number of item in the array. | |
| void | Sort () |
| Sorts the array. | |
| void | Clear () |
| Clears the array. | |
| KCharPtrSet | ( | int | pItemPerBlock = 20 |
) |
Class constructor.
| pItemPerBlock | Number of item per block. Default is 20. |
| ~KCharPtrSet | ( | ) |
Class destructor.
| void Add | ( | char * | pReference, | |
| kReference | pItem | |||
| ) |
Add a new item.
| pReference | char pointer reference to the item. | |
| kReference | to the item. |
| bool Remove | ( | char * | pReference | ) |
Removes an item.
| pReference | char reference to the item. |
| kReference Get | ( | char * | pReference, | |
| int * | PIndex = NULL | |||
| ) |
Get an item's reference.
| pReference | char reference to the item. | |
| PIndex | index to the item. |
| kReference& operator[] | ( | int | pIndex | ) |
Get an item's reference from index.
| PIndex | index to the item. |
| kReference GetFromIndex | ( | int | pIndex, | |
| char ** | pReference = NULL | |||
| ) |
Get an item's reference from index.
| PIndex | index to the item. |
| void RemoveFromIndex | ( | int | pIndex | ) |
Removes an item by index.
| pReference | char reference to the item. |
| int GetCount | ( | ) | [inline] |
| void Sort | ( | ) |
Sorts the array.
| void Clear | ( | ) |
Clears the array.