PlasCom2  1.0
XPACC Multi-physics simluation application
ObjectFactory< ObjectType > Class Template Reference

Detailed Description

template<typename ObjectType>
class ix::sys::ObjectFactory< ObjectType >

Definition at line 19 of file DLTools.H.

#include <DLTools.H>

Public Member Functions

 ObjectFactory ()
 
virtual ObjectType * Create ()
 
virtual void Destroy (ObjectType *objptr)
 
virtual void SetCreate (ObjectType *(*increate)())
 
virtual void SetDestroy (void(*indestroy)(ObjectType *))
 
virtual ~ObjectFactory ()
 

Public Attributes

virtual ObjectType *(*)() CreatePtr ()
 
virtual void(*)(ObjectType *) DestroyPtr ()
 

Protected Attributes

ObjectType *(* _create )()
 
void(* _destroy )(ObjectType *)
 

Constructor & Destructor Documentation

◆ ObjectFactory()

ObjectFactory ( )
inline

Definition at line 24 of file DLTools.H.

◆ ~ObjectFactory()

virtual ~ObjectFactory ( )
inlinevirtual

Definition at line 32 of file DLTools.H.

Member Function Documentation

◆ Create()

virtual ObjectType* Create ( )
inlinevirtual

Definition at line 26 of file DLTools.H.

References ObjectFactory< ObjectType >::_create.

Referenced by DynamicObjectLib< ObjectType >::CreateObject().

Here is the caller graph for this function:

◆ Destroy()

virtual void Destroy ( ObjectType *  objptr)
inlinevirtual

Definition at line 29 of file DLTools.H.

Referenced by DynamicObjectLib< ObjectType >::DestroyObject().

Here is the caller graph for this function:

◆ SetCreate()

virtual void SetCreate ( ObjectType *(*)()  increate)
inlinevirtual

Definition at line 30 of file DLTools.H.

References ObjectFactory< ObjectType >::_create.

Referenced by DynamicObjectLib< ObjectType >::CreateObject(), and DynamicObjectLib< ObjectType >::Unload().

Here is the caller graph for this function:

◆ SetDestroy()

virtual void SetDestroy ( void(*)(ObjectType *)  indestroy)
inlinevirtual

Definition at line 31 of file DLTools.H.

References ObjectFactory< ObjectType >::_destroy.

Referenced by DynamicObjectLib< ObjectType >::DestroyObject(), and DynamicObjectLib< ObjectType >::Unload().

Here is the caller graph for this function:

Member Data Documentation

◆ _create

ObjectType*(* _create) ()
protected

◆ _destroy

void(* _destroy) (ObjectType *)
protected

Definition at line 22 of file DLTools.H.

Referenced by ObjectFactory< ObjectType >::SetDestroy().

◆ CreatePtr

virtual ObjectType*(*)() CreatePtr()
inline

Definition at line 27 of file DLTools.H.

Referenced by DynamicObjectLib< ObjectType >::CreateObject().

◆ DestroyPtr

virtual void(*)(ObjectType*) DestroyPtr()
inline

Definition at line 28 of file DLTools.H.

Referenced by DynamicObjectLib< ObjectType >::DestroyObject().


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