#include <namekeys.h>
Public Member Functions | |
NameKeys (EntityKeyValues &entity) | |
~NameKeys () | |
void | setNamespace (Namespace &space) |
void | insert (const std::string &key, EntityKeyValue &value) |
void | erase (const std::string &key, EntityKeyValue &value) |
Private Types | |
typedef std::map< std::string, EntityKeyValue * > | KeyValues |
Private Member Functions | |
NameKeys (const NameKeys &other) | |
NameKeys & | operator= (const NameKeys &other) |
void | insertName (const std::string &key, EntityKeyValue &value) |
void | eraseName (const std::string &key, EntityKeyValue &value) |
void | insertAll () |
void | eraseAll () |
Private Attributes | |
Namespace * | m_namespace |
EntityKeyValues & | m_entity |
KeyValues | m_keyValues |
Definition at line 40 of file namekeys.h.
typedef std::map<std::string, EntityKeyValue*> NameKeys::KeyValues [private] |
Definition at line 47 of file namekeys.h.
NameKeys::NameKeys | ( | const NameKeys & | other | ) | [private] |
NameKeys::NameKeys | ( | EntityKeyValues & | entity | ) | [inline] |
Definition at line 75 of file namekeys.h.
References EntityKeyValues::attach(), and m_entity.
NameKeys::~NameKeys | ( | ) | [inline] |
Definition at line 80 of file namekeys.h.
References EntityKeyValues::detach(), and m_entity.
void NameKeys::erase | ( | const std::string & | key, | |
EntityKeyValue & | value | |||
) | [inline, virtual] |
Implements Entity::Observer.
Definition at line 95 of file namekeys.h.
References eraseName(), and m_keyValues.
void NameKeys::eraseAll | ( | ) | [inline, private] |
Definition at line 68 of file namekeys.h.
References eraseName(), i, and m_keyValues.
Referenced by setNamespace().
void NameKeys::eraseName | ( | const std::string & | key, | |
EntityKeyValue & | value | |||
) | [inline, private] |
Definition at line 56 of file namekeys.h.
References Namespace::detach(), keyIsName(), and m_namespace.
Referenced by erase(), and eraseAll().
void NameKeys::insert | ( | const std::string & | key, | |
EntityKeyValue & | value | |||
) | [inline, virtual] |
Implements Entity::Observer.
Definition at line 90 of file namekeys.h.
References insertName(), and m_keyValues.
void NameKeys::insertAll | ( | ) | [inline, private] |
Definition at line 62 of file namekeys.h.
References i, insertName(), and m_keyValues.
Referenced by setNamespace().
void NameKeys::insertName | ( | const std::string & | key, | |
EntityKeyValue & | value | |||
) | [inline, private] |
Definition at line 50 of file namekeys.h.
References Namespace::attach(), keyIsName(), and m_namespace.
Referenced by insert(), and insertAll().
void NameKeys::setNamespace | ( | Namespace & | space | ) | [inline, virtual] |
Implements Namespaced.
Definition at line 84 of file namekeys.h.
References eraseAll(), insertAll(), and m_namespace.
EntityKeyValues& NameKeys::m_entity [private] |
Definition at line 43 of file namekeys.h.
Referenced by NameKeys(), and ~NameKeys().
KeyValues NameKeys::m_keyValues [private] |
Definition at line 48 of file namekeys.h.
Referenced by erase(), eraseAll(), insert(), and insertAll().
Namespace* NameKeys::m_namespace [private] |
Definition at line 42 of file namekeys.h.
Referenced by eraseName(), insertName(), and setNamespace().