![]() |
AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#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 () | |
Private Attributes | |
| RegistryMapType | _registeredObjects |
ObjectRegistry holds all registry item of the same type
| typedef std::map<Key, std::unique_ptr<T> > ObjectRegistry< T, Key >::RegistryMapType |
|
inlineprivate |
|
inlineprivate |
|
inline |
Return the map of registered items.
References ObjectRegistry< T, Key >::_registeredObjects.
|
inline |
Returns a registry item.
References ObjectRegistry< T, Key >::_registeredObjects.
Referenced by FactorySelector::SelectFactory().
|
inline |
Returns true if registry contains an item.
References ObjectRegistry< T, Key >::_registeredObjects.
|
inline |
Inserts a registry item.
References ObjectRegistry< T, Key >::_registeredObjects.
|
inlinestatic |
References ObjectRegistry< T, Key >::instance().
Referenced by ObjectRegistry< T, Key >::instance(), and FactoryHolder< T, O, Key >::RegisterSelf().
|
private |