#include <ugdk/structure/indexabletable.h>
|
| IndexableTable (int expected_size=16) |
|
| ~IndexableTable () |
|
size_t | size () const |
|
void | Add (const std::string &name, std::unique_ptr< T > element) |
|
bool | Remove (const std::string &name) |
| Removes the element with the given name. More...
|
|
T * | Search (const std::string &name) const |
| Searches for the element with the given name. More...
|
|
T * | Get (int index) const |
| Instant access to an element, using a pre-generated ID. More...
|
|
int | MakeIndex (const std::string &name) |
| Generates an ID for future instant access. More...
|
|
bool | ReleaseIndex (int id) |
|
Instant access to an element, using a pre-generated ID.
Generates an ID for future instant access.
- id Id to be released.
- Returns
- True on successful release, false otherwise.
Removes the element with the given name.
- Returns
- False if element don't exist, true otherwise.
Searches for the element with the given name.
The documentation for this singleton was generated from the following file: