PTLib  Version 2.18.8
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PFactoryTemplate< AbstractClass, ParamType, KeyType >::WorkerBase Class Reference

#include <pfactory.h>

Inheritance diagram for PFactoryTemplate< AbstractClass, ParamType, KeyType >::WorkerBase:

Public Types

enum  Types { NonSingleton, StaticSingleton, DynamicSingleton }
 

Public Member Functions

 WorkerBase (bool singleton=false)
 
 WorkerBase (Abstract_T *instance, bool delSingleton=true)
 
virtual ~WorkerBase ()
 
Abstract_TCreateInstance (Param_T param)
 
virtual void DestroySingleton ()
 
bool IsSingleton () const
 

Protected Member Functions

virtual Abstract_TCreate (Param_T) const
 

Protected Attributes

Types m_type
 
Abstract_Tm_singletonInstance
 

Member Enumeration Documentation

template<class AbstractClass, typename ParamType, typename KeyType>
enum PFactoryTemplate::WorkerBase::Types
Enumerator
NonSingleton 
StaticSingleton 
DynamicSingleton 

Constructor & Destructor Documentation

template<class AbstractClass, typename ParamType, typename KeyType>
PFactoryTemplate< AbstractClass, ParamType, KeyType >::WorkerBase::WorkerBase ( bool  singleton = false)
inline
template<class AbstractClass, typename ParamType, typename KeyType>
PFactoryTemplate< AbstractClass, ParamType, KeyType >::WorkerBase::WorkerBase ( Abstract_T instance,
bool  delSingleton = true 
)
inline
template<class AbstractClass, typename ParamType, typename KeyType>
virtual PFactoryTemplate< AbstractClass, ParamType, KeyType >::WorkerBase::~WorkerBase ( )
inlinevirtual

Member Function Documentation

template<class AbstractClass, typename ParamType, typename KeyType>
bool PFactoryTemplate< AbstractClass, ParamType, KeyType >::WorkerBase::IsSingleton ( ) const
inline

Member Data Documentation


The documentation for this class was generated from the following file: