#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) |
bool | RemoveItem (const I &index) |
void | RemoveItem (void) |
void | BeginIterate (void) |
void | EndIterate (void) |
T * | Iterate (void) |
|
The ctor performs some basic initialisation |
|
The dtor makes sure everything is tidy |
|
Adds an item to the list. This does not allocate an item as this is left to the user to do
|
|
Starts the iteration of the items in the list from the start and works forwards |
|
Starts the iteration of the items in the list from the end and works backwards |
|
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.
|
|
Iterates through the items in the list
|
|
Removes the item at the current iterator. |
|
Removes an item from the list but does not free the item as this is left to the user to do
|