#include <RegistryManagerMap.h>

Public Types | |
| enum | Direction { kForward = 0, kBackward, kUndefined } |
Public Member Functions | |
| RegistryManagerMap () | |
| virtual | ~RegistryManagerMap () |
| bool | AddItem (const I &index, const T *item) |
| T * | FindItem (const I &index) |
| T * | FindItemNoIterator (const I &index) |
| bool | RemoveItem (const I &index) |
| void | RemoveItem (void) |
| void | BeginIterate (void) |
| void | EndIterate (void) |
| T * | Iterate (I *index=0) |
| bool | IsEmpty (void) |
| bool | IsEmpty (void) const |
| RegistryManagerMap | ( | ) | [inline] |
The ctor performs some basic initialisation
| virtual ~RegistryManagerMap | ( | ) | [inline, virtual] |
The dtor makes sure everything is tidy
| bool AddItem | ( | const I & | index, | |
| const T * | item | |||
| ) | [inline] |
Adds an item to the list. This does not allocate an item as this is left to the user to do
| item | the item pointer to add |
| T* FindItem | ( | const I & | index | ) | [inline] |
Finds an item using the index and if found also sets the current iterator to the item in the map. The direction of the iterator is set to be kUndefined.
| index | The index to use. |
| T* FindItemNoIterator | ( | const I & | index | ) | [inline] |
Finds an item using the index. The current iterator is not set.
| index | The index to use. |
| bool RemoveItem | ( | const I & | index | ) | [inline] |
Removes an item from the list but does not free the item as this is left to the user to do
| item | the item pointer to remove |
| void RemoveItem | ( | void | ) | [inline] |
Removes the item at the current iterator.
| void BeginIterate | ( | void | ) | [inline] |
Starts the iteration of the items in the list from the start and works forwards
| void EndIterate | ( | void | ) | [inline] |
Starts the iteration of the items in the list from the end and works backwards
| T* Iterate | ( | I * | index = 0 |
) | [inline] |
Iterates through the items in the list
| index | Allows the value of the index to be read. The default is null indicating the index is not returned. |
| bool IsEmpty | ( | void | ) | [inline] |
Returns true if the map is empty
1.5.3