SCL
1.0
Standard Control Library : Control, dynamics, physics, and simulation
|
#include <CRegisteredDynamicTypes.hpp>
Public Member Functions | |
CDynamicTypeBase (const Idx &arg_type_name) | |
virtual | ~CDynamicTypeBase () |
virtual void * | createObject ()=0 |
Protected Member Functions | |
virtual bool | registerMyType (CDynamicTypeBase *arg_obj) |
Protected Attributes | |
Idx | type_name_ |
Private Member Functions | |
CDynamicTypeBase () | |
CDynamicTypeBase (const CDynamicTypeBase &) | |
CDynamicTypeBase & | operator= (const CDynamicTypeBase &) |
To support indexed querying for dynamic object allocation: Subclass CDynamicTypeBase and implement the createObject() function to return an object of the wanted type.
|
inline |
Must name a type while creating an object
|
inlinevirtual |
Default Destructor : Does nothing
|
private |
Must name a type while creating an object
|
private |
Must name a type while creating an object
|
pure virtual |
Dynamically allocates an object of the type that any subclass implements, and returns it.
Implemented in sutil::CDynamicType< Idx, Type >.
|
private |
Must name a type while creating an object
|
protected |
The type of the object