PFactory< AbstractClass, KeyType > Class Template Reference
#include <pfactory.h>
List of all members.
Detailed Description
template<class AbstractClass, typename KeyType = PDefaultPFactoryKey>
class PFactory< AbstractClass, KeyType >
Template class for generic factories of an abstract class.
Member Typedef Documentation
template<class AbstractClass , typename KeyType = PDefaultPFactoryKey>
template<class AbstractClass , typename KeyType = PDefaultPFactoryKey>
template<class AbstractClass , typename KeyType = PDefaultPFactoryKey>
template<class AbstractClass , typename KeyType = PDefaultPFactoryKey>
Constructor & Destructor Documentation
template<class AbstractClass , typename KeyType = PDefaultPFactoryKey>
template<class AbstractClass , typename KeyType = PDefaultPFactoryKey>
Member Function Documentation
template<class AbstractClass , typename KeyType = PDefaultPFactoryKey>
template<class AbstractClass , typename KeyType = PDefaultPFactoryKey>
template<class AbstractClass , typename KeyType = PDefaultPFactoryKey>
template<class Derived_T >
static Derived_T* PFactory< AbstractClass, KeyType >::CreateInstanceAs |
( |
const Key_T & |
key |
) |
[inline, static] |
template<class AbstractClass , typename KeyType = PDefaultPFactoryKey>
static PFactory& PFactory< AbstractClass, KeyType >::GetInstance |
( |
|
) |
[inline, static, protected] |
References PFactoryBase::GetFactories(), PFactoryBase::GetFactoriesMutex(), PAssert, and PMEMORY_IGNORE_ALLOCATIONS_FOR_SCOPE.
Referenced by PFactory< AbstractClass, KeyType >::CreateInstance(), PFactory< AbstractClass, KeyType >::CreateInstanceAs(), PFactory< AbstractClass, KeyType >::GetKeyList(), PFactory< AbstractClass, KeyType >::GetKeyMap(), PFactory< AbstractClass, KeyType >::GetMutex(), PFactory< AbstractClass, KeyType >::IsRegistered(), PFactory< AbstractClass, KeyType >::IsSingleton(), PFactory< AbstractClass, KeyType >::Register(), PFactory< AbstractClass, KeyType >::RegisterAs(), PFactory< AbstractClass, KeyType >::Unregister(), and PFactory< AbstractClass, KeyType >::UnregisterAll().
template<class AbstractClass , typename KeyType = PDefaultPFactoryKey>
template<class AbstractClass , typename KeyType = PDefaultPFactoryKey>
KeyList_T PFactory< AbstractClass, KeyType >::GetKeyList_Internal |
( |
|
) |
[inline, protected] |
template<class AbstractClass , typename KeyType = PDefaultPFactoryKey>
static KeyMap_T& PFactory< AbstractClass, KeyType >::GetKeyMap |
( |
|
) |
[inline, static] |
template<class AbstractClass , typename KeyType = PDefaultPFactoryKey>
static PMutex& PFactory< AbstractClass, KeyType >::GetMutex |
( |
|
) |
[inline, static] |
template<class AbstractClass , typename KeyType = PDefaultPFactoryKey>
static bool PFactory< AbstractClass, KeyType >::IsRegistered |
( |
const Key_T & |
key |
) |
[inline, static] |
template<class AbstractClass , typename KeyType = PDefaultPFactoryKey>
bool PFactory< AbstractClass, KeyType >::IsRegistered_Internal |
( |
const Key_T & |
key |
) |
[inline, protected] |
template<class AbstractClass , typename KeyType = PDefaultPFactoryKey>
template<class AbstractClass , typename KeyType = PDefaultPFactoryKey>
bool PFactory< AbstractClass, KeyType >::IsSingleton_Internal |
( |
const Key_T & |
key |
) |
[inline, protected] |
template<class AbstractClass , typename KeyType = PDefaultPFactoryKey>
static void PFactory< AbstractClass, KeyType >::Register |
( |
const Key_T & |
key, |
|
|
Abstract_T * |
instance, |
|
|
bool |
autoDeleteInstance = true | |
|
) |
| | [inline, static] |
template<class AbstractClass , typename KeyType = PDefaultPFactoryKey>
static void PFactory< AbstractClass, KeyType >::Register |
( |
const Key_T & |
key, |
|
|
WorkerBase * |
worker | |
|
) |
| | [inline, static] |
template<class AbstractClass , typename KeyType = PDefaultPFactoryKey>
void PFactory< AbstractClass, KeyType >::Register_Internal |
( |
const Key_T & |
key, |
|
|
WorkerBase * |
worker | |
|
) |
| | [inline, protected] |
template<class AbstractClass , typename KeyType = PDefaultPFactoryKey>
template<class AbstractClass , typename KeyType = PDefaultPFactoryKey>
PBoolean PFactory< AbstractClass, KeyType >::RegisterAs_Internal |
( |
const Key_T & |
newKey, |
|
|
const Key_T & |
oldKey | |
|
) |
| | [inline, protected] |
template<class AbstractClass , typename KeyType = PDefaultPFactoryKey>
static void PFactory< AbstractClass, KeyType >::Unregister |
( |
const Key_T & |
key |
) |
[inline, static] |
template<class AbstractClass , typename KeyType = PDefaultPFactoryKey>
void PFactory< AbstractClass, KeyType >::Unregister_Internal |
( |
const Key_T & |
key |
) |
[inline, protected] |
template<class AbstractClass , typename KeyType = PDefaultPFactoryKey>
static void PFactory< AbstractClass, KeyType >::UnregisterAll |
( |
|
) |
[inline, static] |
template<class AbstractClass , typename KeyType = PDefaultPFactoryKey>
void PFactory< AbstractClass, KeyType >::UnregisterAll_Internal |
( |
|
) |
[inline, protected] |
Member Data Documentation
template<class AbstractClass , typename KeyType = PDefaultPFactoryKey>
Referenced by PFactory< AbstractClass, KeyType >::CreateInstance_Internal(), PFactory< AbstractClass, KeyType >::GetKeyList_Internal(), PFactory< AbstractClass, KeyType >::GetKeyMap(), PFactory< AbstractClass, KeyType >::IsRegistered_Internal(), PFactory< AbstractClass, KeyType >::IsSingleton_Internal(), PFactory< AbstractClass, KeyType >::Register_Internal(), PFactory< AbstractClass, KeyType >::RegisterAs_Internal(), PFactory< AbstractClass, KeyType >::Unregister_Internal(), PFactory< AbstractClass, KeyType >::UnregisterAll_Internal(), and PFactory< AbstractClass, KeyType >::~PFactory().
The documentation for this class was generated from the following file: