AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#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
typedef ObjectRegistry<FactoryHolder<T, O, Key>, Key> FactoryHolder< T, O, Key >::FactoryHolderRegistry |
|
inlineexplicit |
|
inlinevirtual |
|
pure virtual |
Abstract Factory create method.
|
inline |
References FactoryHolder< T, O, Key >::_key, and ObjectRegistry< T, Key >::instance().
|
private |
Referenced by FactoryHolder< T, O, Key >::RegisterSelf().