![]() |
TrinityCore
|
#include <FactoryHolder.h>
Public Types | |
typedef ObjectRegistry< FactoryHolder< T, O, Key >, Key > | FactoryHolderRegistry |
Public Member Functions | |
FactoryHolder (Key const &k) | |
virtual | ~FactoryHolder () |
void | RegisterSelf () |
virtual T * | Create (O *object=nullptr) const =0 |
Abstract Factory create method. More... | |
Private Attributes | |
Key const | _key |
FactoryHolder holds a factory object of a specific type
Definition at line 27 of file FactoryHolder.h.
typedef ObjectRegistry<FactoryHolder<T, O, Key>, Key> FactoryHolder< T, O, Key >::FactoryHolderRegistry |
Definition at line 30 of file FactoryHolder.h.
|
inlineexplicit |
Definition at line 32 of file FactoryHolder.h.
|
inlinevirtual |
Definition at line 33 of file FactoryHolder.h.
|
pure virtual |
Abstract Factory create method.
Implemented in CreatureAIFactory< REAL_AI, is_db_allowed >, and GameObjectAIFactory< REAL_GO_AI, is_db_allowed >.
|
inline |
|
private |
Definition at line 40 of file FactoryHolder.h.