torc-master
|
A placeholder for a factory method. More...
#include <FactoryType.hpp>
Public Types | |
typedef _Tp | Type |
typedef SelfReferencing< Type > ::Pointer | Pointer |
typedef SelfReferencing< Type > ::WeakPointer | WeakPointer |
Public Member Functions | |
virtual void | create (Pointer &outPointer) throw (Error) |
FactoryType () | |
virtual | ~FactoryType () throw () |
Private Member Functions | |
FactoryType (const FactoryType< _Tp > &source) | |
FactoryType< _Tp > & | operator= (const FactoryType< _Tp > &source) |
A placeholder for a factory method.
The FactoryType template acts as a placeholder for a virtual function create that can be inherited by objects that want to create an object of an EOM type. This is typedeffed inside individual classes to generate a nested typename for a factory that can be used to create an object of that type. For example Cell::Factory can be used to create an object of type Cell.
Definition at line 35 of file FactoryType.hpp.
typedef SelfReferencing<Type>::Pointer torc::generic::FactoryType< _Tp >::Pointer |
A pointer to an object of type Type
Definition at line 45 of file FactoryType.hpp.
typedef _Tp torc::generic::FactoryType< _Tp >::Type |
A rename of the parameter type
Definition at line 40 of file FactoryType.hpp.
typedef SelfReferencing<Type>::WeakPointer torc::generic::FactoryType< _Tp >::WeakPointer |
A weak pointer to an object of type Type
Definition at line 50 of file FactoryType.hpp.
|
inline |
Definition at line 71 of file FactoryType.hpp.
|
inlinevirtual |
Definition at line 75 of file FactoryType.hpp.
|
private |
|
inlinevirtual |
Create an object of the Type specification of Factory. If the object has a boost::weak_ptr to itself, it is the task of this method to set this after the object is created.
Definition at line 58 of file FactoryType.hpp.
|
private |