SCL  1.0
Standard Control Library : Control, dynamics, physics, and simulation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
sutil::CDynamicType< Idx, Type > Class Template Reference

#include <CRegisteredDynamicTypes.hpp>

Inheritance diagram for sutil::CDynamicType< Idx, Type >:
Inheritance graph
[legend]
Collaboration diagram for sutil::CDynamicType< Idx, Type >:
Collaboration graph
[legend]

Public Member Functions

 CDynamicType (const Idx &arg_type_name)
 
virtual ~CDynamicType ()
 
virtual void * createObject ()
 
bool registerType ()
 

Protected Member Functions

virtual bool registerMyType (CDynamicTypeBase *arg_obj)
 

Protected Attributes

Idx type_name_
 

Private Member Functions

 CDynamicType ()
 
 CDynamicType (const CDynamicType &)
 
CDynamicTypeoperator= (const CDynamicType &)
 

Detailed Description

template<typename Idx, typename Type>
class sutil::CDynamicType< Idx, Type >

This enables supporting dynamic typing for arbitrary index and object types.

Constructor & Destructor Documentation

template<typename Idx , typename Type >
sutil::CDynamicType< Idx, Type >::CDynamicType ( const Idx &  arg_type_name)
inline

Must name a type while creating an object

template<typename Idx , typename Type >
virtual sutil::CDynamicType< Idx, Type >::~CDynamicType ( )
inlinevirtual

Default Destructor : Does nothing

template<typename Idx , typename Type >
sutil::CDynamicType< Idx, Type >::CDynamicType ( )
private

Must name a type while creating an object

template<typename Idx , typename Type >
sutil::CDynamicType< Idx, Type >::CDynamicType ( const CDynamicType< Idx, Type > &  )
private

Must name a type while creating an object

Member Function Documentation

template<typename Idx , typename Type >
virtual void* sutil::CDynamicType< Idx, Type >::createObject ( )
inlinevirtual

Dynamically allocates an object of the type that any subclass implements, and returns it.

Implements sutil::CDynamicTypeBase< Idx >.

template<typename Idx , typename Type >
CDynamicType& sutil::CDynamicType< Idx, Type >::operator= ( const CDynamicType< Idx, Type > &  )
private

Must name a type while creating an object

Member Data Documentation

template<typename Idx>
Idx sutil::CDynamicTypeBase< Idx >::type_name_
protectedinherited

The type of the object


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