TrinityCore
|
#include <ObjectRegistry.h>
Public Types | |
typedef std::map< Key, T * > | RegistryMapType |
Public Member Functions | |
const T * | GetRegistryItem (Key key) const |
Returns a registry item. More... | |
bool | InsertItem (T *obj, Key key, bool _override=false) |
Inserts a registry item. More... | |
void | RemoveItem (Key key, bool delete_object=true) |
Removes a registry item. More... | |
bool | HasItem (Key key) const |
Returns true if registry contains an item. More... | |
unsigned int | GetRegisteredItems (std::vector< Key > &l) const |
Inefficiently return a vector of registered items. More... | |
RegistryMapType const & | GetRegisteredItems () const |
Return the map of registered items. More... | |
ObjectRegistry () | |
~ObjectRegistry () | |
Static Public Member Functions | |
static ObjectRegistry< T, Key > * | instance () |
Private Attributes | |
RegistryMapType | i_registeredObjects |
ObjectRegistry holds all registry item of the same type
typedef std::map<Key, T*> ObjectRegistry< T, Key >::RegistryMapType |
|
inline |
|
inline |
|
inline |
Inefficiently return a vector of registered items.
|
inline |
Return the map of registered items.
|
inline |
Returns a registry item.
|
inline |
Returns true if registry contains an item.
|
inline |
Inserts a registry item.
|
inlinestatic |
|
inline |
Removes a registry item.
|
private |