SOFA API  c76874b7
Open source framework for multi-physics simuation
sofa::core::objectmodel::TClass< T, Parents > Class Template Reference

#include <BaseClass.h>

Inheritance diagram for sofa::core::objectmodel::TClass< T, Parents >:

Static Public Member Functions

static const BaseClassget ()
 
- Static Public Member Functions inherited from sofa::core::objectmodel::BaseClass
static std::string decodeFullName (const std::type_info &t)
 
static std::string decodeTypeName (const std::type_info &t)
 Helper method to decode the type name to a more readable form if possible. More...
 
static std::string decodeClassName (const std::type_info &t)
 Helper method to extract the class name (removing namespaces and templates) More...
 
static std::string decodeNamespaceName (const std::type_info &t)
 Helper method to extract the namespace (removing class name and templates) More...
 
static std::string decodeTemplateName (const std::type_info &t)
 Helper method to extract the template name (removing namespaces and class name) More...
 
template<class T >
static std::string defaultTypeName (const T *=nullptr)
 Helper method to get the type name. More...
 

Protected Member Functions

 TClass ()
 
 ~TClass () override
 
void * dynamicCast (Base *obj) const override
 
bool isInstance (Base *obj) const override
 
- Protected Member Functions inherited from sofa::core::objectmodel::BaseClass
 BaseClass ()
 
virtual ~BaseClass ()
 

Additional Inherited Members

- Public Attributes inherited from sofa::core::objectmodel::BaseClass
std::string namespaceName
 
std::string typeName
 
std::string className
 
std::string templateName
 
std::string shortName
 
helper::vector< const BaseClass * > parents
 
- Public Member Functions inherited from sofa::core::objectmodel::BaseClass
bool hasParent (const BaseClass *c) const
 returns true iff c is a parent class of this More...
 
bool hasParent (const std::string &parentClassName) const
 returns true iff a parent class of this is named parentClassName More...
 
bool operator== (const BaseClass &c) const
 
bool operator!= (const BaseClass &c) const
 

Constructor details

template<class T , class Parents = void>
sofa::core::objectmodel::TClass< T, Parents >::TClass ( )
inlineprotected
template<class T , class Parents = void>
sofa::core::objectmodel::TClass< T, Parents >::~TClass ( )
inlineoverrideprotected

Function details

template<class T , class Parents = void>
void* sofa::core::objectmodel::TClass< T, Parents >::dynamicCast ( Base obj) const
inlineoverrideprotectedvirtual
template<class T , class Parents = void>
static const BaseClass* sofa::core::objectmodel::TClass< T, Parents >::get ( )
inlinestatic
template<class T , class Parents = void>
bool sofa::core::objectmodel::TClass< T, Parents >::isInstance ( Base obj) const
inlineoverrideprotectedvirtual