#include <libs/EDoc/IndexedDictionary.h>
Inheritance diagram for EDoc::SpecificIndexedObject< T >:
Definition at line 145 of file IndexedDictionary.h.
Public Member Functions | |
SpecificIndexedObject (Dictionary &dict_in) | |
Create an instance for a specific dictionary. | |
virtual StringIdentifiedObject * | New (Dictionary &dict, uint32_t index) |
Create a new instance of the type with the given index as an identifier. | |
T * | Get (uint32_t index) |
Type specific implementation of IndexedObject::CGet(). | |
T * | AlwaysGet (uint32_t index) |
Type specific implementation of IndexedObject::AlwaysGet(). | |
StringIdentifiedObject * | CGet (uint32_t index) |
Obtain the instance for the given index or return NULL if one does not exist. | |
void | CAdd (uint32_t index, StringIdentifiedObject *item) |
Adds an existing StringIdentifiedObject instance to this map. | |
StringIdentifiedObject * | CAlwaysGet (uint32_t index) |
Obtain the instance for the given index or create one if one does not exist. | |
Data Fields | |
Dictionary & | dict |
Reference to the dictionary object that all instances belong. | |
std::vector< StringIdentifiedObject * > | items |
List of items that currently exist. |
EDoc::SpecificIndexedObject< T >::SpecificIndexedObject | ( | Dictionary & | dict_in | ) | [inline] |
virtual StringIdentifiedObject* EDoc::SpecificIndexedObject< T >::New | ( | Dictionary & | dict, | |
uint32_t | index | |||
) | [inline, virtual] |
Create a new instance of the type with the given index as an identifier.
Implements EDoc::IndexedObject.
Definition at line 161 of file IndexedDictionary.h.
T* EDoc::SpecificIndexedObject< T >::Get | ( | uint32_t | index | ) | [inline] |
Type specific implementation of IndexedObject::CGet().
Definition at line 171 of file IndexedDictionary.h.
T* EDoc::SpecificIndexedObject< T >::AlwaysGet | ( | uint32_t | index | ) | [inline] |
Type specific implementation of IndexedObject::AlwaysGet().
Definition at line 179 of file IndexedDictionary.h.
EDoc::IndexedObject::CGet | ( | uint32_t | index | ) | [inline, inherited] |
Obtain the instance for the given index or return NULL if one does not exist.
Definition at line 71 of file IndexedDictionary.h.
References EDoc::IndexedObject::items.
Referenced by EDoc::IndexedObject::CAlwaysGet(), and EDoc::SpecificIndexedObject< EDoc::Type >::Get().
EDoc::IndexedObject::CAdd | ( | uint32_t | index, | |
EDoc::StringIdentifiedObject * | item | |||
) | [inline, inherited] |
Adds an existing StringIdentifiedObject instance to this map.
Should not be called ore than once for a single index.
Definition at line 88 of file IndexedDictionary.h.
References EDOC_THROW_EXCEPTION, EDoc::StringIdentifiedObject::index, and EDoc::IndexedObject::items.
Referenced by EDoc::IndexedObject::CAlwaysGet().
EDoc::IndexedObject::CAlwaysGet | ( | uint32_t | index | ) | [inline, inherited] |
Obtain the instance for the given index or create one if one does not exist.
EDoc::FileIOException |
|
Definition at line 110 of file IndexedDictionary.h.
References EDoc::IndexedObject::CAdd(), EDoc::IndexedObject::CGet(), EDoc::IndexedObject::dict, and EDoc::IndexedObject::New().
Referenced by EDoc::SpecificIndexedObject< EDoc::Type >::AlwaysGet().
Dictionary& EDoc::IndexedObject::dict [inherited] |
Reference to the dictionary object that all instances belong.
Definition at line 131 of file IndexedDictionary.h.
Referenced by EDoc::IndexedObject::CAlwaysGet(), and EDoc::SpecificIndexedObject< EDoc::Type >::New().
std::vector<StringIdentifiedObject*> EDoc::IndexedObject::items [inherited] |
List of items that currently exist.
Definition at line 137 of file IndexedDictionary.h.
Referenced by EDoc::IndexedObject::CAdd(), and EDoc::IndexedObject::CGet().