SOFA API  6a688117
Open source framework for multi-physics simuation
sofa::core::objectmodel::ClassInfo Class Referenceabstract

#include <ClassInfo.h>

Meta information class. More...

Inheritance diagram for sofa::core::objectmodel::ClassInfo:

Detailed Description

Meta information class.

This class contains reflection-like features to analyse a class deriving from Base

Protected Attributes

const std::type_info * pt
 

Static Protected Attributes

static std::map< sofa::helper::TypeInfo, ClassInfo * > classes
 

Public Member Functions

std::string name () const
 
 operator const std::type_info & () const
 
helper::TypeInfo type () const
 
bool operator== (const ClassInfo &t) const
 
bool operator!= (const ClassInfo &t) const
 
bool operator< (const ClassInfo &t) const
 
virtual void * dynamicCast (Base *obj) const =0
 
virtual bool isInstance (Base *obj) const
 

Protected Member Functions

 ClassInfo (const std::type_info *ti)
 
virtual ~ClassInfo ()
 

Attribute details

std::map< sofa::helper::TypeInfo, ClassInfo * > sofa::core::objectmodel::ClassInfo::classes
staticprotected
const std::type_info* sofa::core::objectmodel::ClassInfo::pt
protected

Constructor details

sofa::core::objectmodel::ClassInfo::ClassInfo ( const std::type_info *  ti)
protected
sofa::core::objectmodel::ClassInfo::~ClassInfo ( )
protectedvirtual

Function details

virtual void* sofa::core::objectmodel::ClassInfo::dynamicCast ( Base obj) const
pure virtual
virtual bool sofa::core::objectmodel::ClassInfo::isInstance ( Base obj) const
inlinevirtual
std::string sofa::core::objectmodel::ClassInfo::name ( ) const
inline
sofa::core::objectmodel::ClassInfo::operator const std::type_info & ( ) const
inline
bool sofa::core::objectmodel::ClassInfo::operator!= ( const ClassInfo t) const
inline
bool sofa::core::objectmodel::ClassInfo::operator< ( const ClassInfo t) const
inline
bool sofa::core::objectmodel::ClassInfo::operator== ( const ClassInfo t) const
inline
helper::TypeInfo sofa::core::objectmodel::ClassInfo::type ( ) const
inline