CHROMA
|
The Map Itself. More...
#include <named_obj.h>
Public Member Functions | |
NamedObjectMap () | |
~NamedObjectMap () | |
template<typename T > | |
void | create (const std::string &id) |
Create an entry of arbitrary type. More... | |
template<typename T , typename P1 > | |
void | create (const std::string &id, const P1 &p1) |
Create an entry of arbitrary type, with 1 parameter. More... | |
bool | check (const std::string &id) const |
Check if an id exists. More... | |
void | erase (const std::string &id) |
Delete an item that we no longer neeed. More... | |
void | dump () const |
Dump out all objects. More... | |
NamedObjectBase & | get (const std::string &id) const |
Look something up and return a NamedObjectBase reference. More... | |
template<typename T > | |
T & | getObj (const std::string &id) |
Look something up and return a ref to the derived named object. More... | |
template<typename T > | |
const T & | getObj (const std::string &id) const |
Look something up and return a ref to the derived named object. More... | |
template<typename T > | |
T & | getData (const std::string &id) |
Look something up and return a ref to actual data. More... | |
template<typename T > | |
const T & | getData (const std::string &id) const |
Look something up and return a ref to actual data. More... | |
Private Types | |
typedef std::map< std::string, NamedObjectBase * > | MapType_t |
Private Attributes | |
MapType_t | the_map |
The Map Itself.
Definition at line 153 of file named_obj.h.
|
private |
Definition at line 323 of file named_obj.h.
|
inline |
Definition at line 157 of file named_obj.h.
References the_map.
|
inline |
Definition at line 162 of file named_obj.h.
References the_map.
|
inline |
|
inline |
|
inline |
Create an entry of arbitrary type, with 1 parameter.
Definition at line 205 of file named_obj.h.
References the_map.
|
inline |
|
inline |
Delete an item that we no longer neeed.
Definition at line 242 of file named_obj.h.
References the_map.
|
inline |
Look something up and return a NamedObjectBase reference.
Definition at line 276 of file named_obj.h.
References the_map.
|
inline |
Look something up and return a ref to actual data.
Definition at line 310 of file named_obj.h.
References get().
Referenced by getData().
|
inline |
Look something up and return a ref to actual data.
Definition at line 317 of file named_obj.h.
|
inline |
Look something up and return a ref to the derived named object.
Definition at line 296 of file named_obj.h.
References get().
|
inline |
Look something up and return a ref to the derived named object.
Definition at line 303 of file named_obj.h.
References get().
|
private |
Definition at line 324 of file named_obj.h.
Referenced by check(), create(), dump(), erase(), get(), NamedObjectMap(), and ~NamedObjectMap().