Choreonoid  1.8
Public Member Functions | List of all members
cnoid::HierarchicalClassRegistry< BaseClass > Class Template Reference

#include <HierarchicalClassRegistry.h>

Inheritance diagram for cnoid::HierarchicalClassRegistry< BaseClass >:
cnoid::HierarchicalClassRegistryBase

Public Member Functions

 HierarchicalClassRegistry ()
 
 HierarchicalClassRegistry (const HierarchicalClassRegistry &org)=delete
 
template<class TargetClass , class SuperClass = BaseClass>
HierarchicalClassRegistry< BaseClass > & registerClass ()
 
template<class Object >
bool hasRegistration () const
 
template<class Object >
int classId (int unknownClassId=-1) const
 
int classId (const std::type_info &type, int unknownClassId=-1) const
 
int classId (const BaseClass *object, int unknownClassId=-1) const
 
- Public Member Functions inherited from cnoid::HierarchicalClassRegistryBase
 HierarchicalClassRegistryBase ()
 
 ~HierarchicalClassRegistryBase ()
 
int registerClassAsTypeInfo (const std::type_info &type, const std::type_info &superType)
 
int superClassId (int classId) const
 
int numRegisteredClasses () const
 

Additional Inherited Members

- Protected Member Functions inherited from cnoid::HierarchicalClassRegistryBase
int getClassId (const std::type_info &type, int unknownClassId=-1) const
 

Constructor & Destructor Documentation

◆ HierarchicalClassRegistry() [1/2]

template<class BaseClass >
cnoid::HierarchicalClassRegistry< BaseClass >::HierarchicalClassRegistry ( )
inline

◆ HierarchicalClassRegistry() [2/2]

template<class BaseClass >
cnoid::HierarchicalClassRegistry< BaseClass >::HierarchicalClassRegistry ( const HierarchicalClassRegistry< BaseClass > &  org)
delete

Member Function Documentation

◆ classId() [1/3]

template<class BaseClass >
int cnoid::HierarchicalClassRegistry< BaseClass >::classId ( const BaseClass *  object,
int  unknownClassId = -1 
) const
inline

◆ classId() [2/3]

template<class BaseClass >
int cnoid::HierarchicalClassRegistry< BaseClass >::classId ( const std::type_info &  type,
int  unknownClassId = -1 
) const
inline

◆ classId() [3/3]

template<class BaseClass >
template<class Object >
int cnoid::HierarchicalClassRegistry< BaseClass >::classId ( int  unknownClassId = -1) const
inline

◆ hasRegistration()

template<class BaseClass >
template<class Object >
bool cnoid::HierarchicalClassRegistry< BaseClass >::hasRegistration ( ) const
inline

◆ registerClass()

template<class BaseClass >
template<class TargetClass , class SuperClass = BaseClass>
HierarchicalClassRegistry<BaseClass>& cnoid::HierarchicalClassRegistry< BaseClass >::registerClass ( )
inline

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