![]() |
TrinityCore
|
#include <ObjectRegistry.h>
Public Types | |
| typedef std::map< Key, std::unique_ptr< T > > | RegistryMapType |
Public Member Functions | |
| T const * | GetRegistryItem (Key const &key) const |
| Returns a registry item. | |
| bool | InsertItem (T *obj, Key const &key, bool force=false) |
| Inserts a registry item. | |
| bool | HasItem (Key const &key) const |
| Returns true if registry contains an item. | |
| RegistryMapType const & | GetRegisteredItems () const |
| Return the map of registered items. | |
Static Public Member Functions | |
| static ObjectRegistry< T, Key > * | instance () |
Private Member Functions | |
| ObjectRegistry () | |
| ~ObjectRegistry () | |
| ObjectRegistry (ObjectRegistry const &)=delete | |
| ObjectRegistry & | operator= (ObjectRegistry const &)=delete |
Private Attributes | |
| RegistryMapType | _registeredObjects |
ObjectRegistry holds all registry item of the same type
Definition at line 28 of file ObjectRegistry.h.
| typedef std::map<Key, std::unique_ptr<T> > ObjectRegistry< T, Key >::RegistryMapType |
Definition at line 31 of file ObjectRegistry.h.
|
inlineprivate |
Definition at line 79 of file ObjectRegistry.h.
|
inlineprivate |
Definition at line 80 of file ObjectRegistry.h.
|
privatedelete |
|
inline |
Return the map of registered items.
Definition at line 70 of file ObjectRegistry.h.
|
inline |
Returns a registry item.
Definition at line 40 of file ObjectRegistry.h.
Here is the caller graph for this function:
|
inline |
Returns true if registry contains an item.
Definition at line 64 of file ObjectRegistry.h.
|
inline |
Inserts a registry item.
Definition at line 49 of file ObjectRegistry.h.
|
inlinestatic |
Definition at line 33 of file ObjectRegistry.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
privatedelete |
|
private |
Definition at line 76 of file ObjectRegistry.h.