SOFA API  fdacdac3
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 ()
 

Protected Member Functions

 TClass ()
 
 ~TClass () override
 
BasedynamicCast (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
 
type::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

◆ TClass()

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

◆ ~TClass()

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

Function details

◆ dynamicCast()

template<class T , class Parents = void>
Base* sofa::core::objectmodel::TClass< T, Parents >::dynamicCast ( Base obj) const
inlineoverrideprotectedvirtual

◆ get()

template<class T , class Parents = void>
static const BaseClass* sofa::core::objectmodel::TClass< T, Parents >::get ( )
inlinestatic

◆ isInstance()

template<class T , class Parents = void>
bool sofa::core::objectmodel::TClass< T, Parents >::isInstance ( Base obj) const
inlineoverrideprotectedvirtual