Public Member Functions | |
DataStore () | |
Constructor. | |
~DataStore () | |
Deconstructor. | |
void | init () |
Initialises the DataStore. | |
void | clear () |
Clears the DataStore. | |
void | grab () |
Increases the reference counter. | |
void | drop () |
Decreases the reference counter. | |
bool | addDataStack (DataStack *stack) |
Adds the given DataStack to the DataStore. | |
DataStack * | createDataStack (const std::string &name, bool grab=true) |
Creates (and adds) a DataStack with the given name. | |
DataStack * | getDataStack (const u32 id) |
Gets the DataStack with the given ID. | |
DataStack * | getDataStack (const std::string &name) |
Gets the DataStack with the given name. | |
void | removeDataStacks () |
Removes all DataStacks from the DataStore. | |
bool | removeDataStack (DataStack *stack) |
Removes the given DataStack. | |
bool | removeDataStack (const u32 id) |
Removes the given DataStack with the given ID. | |
bool | removeDataStack (const std::string &name) |
Removes the given DataStack with the given name. |
Definition at line 29 of file DataStore.h.
DataStore::DataStore | ( | ) |
DataStore::~DataStore | ( | ) |
bool DataStore::addDataStack | ( | DataStack * | stack | ) |
Adds the given DataStack to the DataStore.
stack | Pointer to the DataStack to add. |
Definition at line 58 of file DataStore.cpp.
void DataStore::clear | ( | ) |
DataStack * DataStore::createDataStack | ( | const std::string & | name, | |
bool | grab = true | |||
) |
void DataStore::drop | ( | ) | [virtual] |
Decreases the reference counter.
Reimplemented from ReferenceCounted.
Definition at line 52 of file DataStore.cpp.
DataStack * DataStore::getDataStack | ( | const std::string & | name | ) |
Gets the DataStack with the given name.
Definition at line 107 of file DataStore.cpp.
DataStack * DataStore::getDataStack | ( | const u32 | id | ) |
Gets the DataStack with the given ID.
Definition at line 95 of file DataStore.cpp.
void DataStore::grab | ( | ) | [virtual] |
Increases the reference counter.
Reimplemented from ReferenceCounted.
Definition at line 46 of file DataStore.cpp.
void DataStore::init | ( | ) |
bool DataStore::removeDataStack | ( | const std::string & | name | ) |
Removes the given DataStack with the given name.
name | Name of the DataStack to remove. |
Definition at line 177 of file DataStore.cpp.
bool DataStore::removeDataStack | ( | const u32 | id | ) |
Removes the given DataStack with the given ID.
id | ID of the DataStack to remove. |
Definition at line 155 of file DataStore.cpp.
bool DataStore::removeDataStack | ( | DataStack * | stack | ) |
Removes the given DataStack.
stack | Pointer to the DataStack to remove. |
Definition at line 129 of file DataStore.cpp.
void DataStore::removeDataStacks | ( | ) |