Main MRPT website > C++ reference for MRPT 1.9.9
List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
mrpt::utils::CClassRegistry Class Reference

Detailed Description

A singleton with the central registry for CSerializable run-time classes: users do not use this class in any direct way.

Note
Class is thread-safe.

Definition at line 57 of file internal_class_registry.cpp.

Public Member Functions

void Add (const std::string &className, const TRuntimeClassId &id)
 
const TRuntimeClassIdGet (const std::string &className)
 
std::vector< const TRuntimeClassId * > getListOfAllRegisteredClasses ()
 

Static Public Member Functions

static CClassRegistryInstance ()
 The unique access point point to the singleton instance. More...
 

Private Member Functions

 CClassRegistry ()
 
 ~CClassRegistry ()
 

Private Attributes

TClassnameToRuntimeId registeredClasses
 
std::mutex m_cs
 
std::atomic< bool > m_being_modified
 

Constructor & Destructor Documentation

◆ CClassRegistry()

mrpt::utils::CClassRegistry::CClassRegistry ( )
inlineprivate

Definition at line 119 of file internal_class_registry.cpp.

◆ ~CClassRegistry()

mrpt::utils::CClassRegistry::~CClassRegistry ( )
inlineprivate

Definition at line 121 of file internal_class_registry.cpp.

Member Function Documentation

◆ Add()

void mrpt::utils::CClassRegistry::Add ( const std::string className,
const TRuntimeClassId id 
)
inline

Definition at line 68 of file internal_class_registry.cpp.

References mrpt::mrpt::format().

Referenced by mrpt::utils::registerClass(), and mrpt::utils::registerClassCustomName().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Get()

const TRuntimeClassId* mrpt::utils::CClassRegistry::Get ( const std::string className)
inline

Definition at line 92 of file internal_class_registry.cpp.

Referenced by mrpt::utils::findRegisteredClass().

Here is the caller graph for this function:

◆ getListOfAllRegisteredClasses()

std::vector<const TRuntimeClassId*> mrpt::utils::CClassRegistry::getListOfAllRegisteredClasses ( )
inline

Definition at line 106 of file internal_class_registry.cpp.

Referenced by mrpt::utils::getAllRegisteredClasses().

Here is the caller graph for this function:

◆ Instance()

static CClassRegistry& mrpt::utils::CClassRegistry::Instance ( )
inlinestatic

The unique access point point to the singleton instance.

Definition at line 62 of file internal_class_registry.cpp.

Referenced by mrpt::utils::findRegisteredClass(), mrpt::utils::getAllRegisteredClasses(), mrpt::utils::registerClass(), and mrpt::utils::registerClassCustomName().

Here is the caller graph for this function:

Member Data Documentation

◆ m_being_modified

std::atomic<bool> mrpt::utils::CClassRegistry::m_being_modified
private

Definition at line 127 of file internal_class_registry.cpp.

◆ m_cs

std::mutex mrpt::utils::CClassRegistry::m_cs
private

Definition at line 126 of file internal_class_registry.cpp.

◆ registeredClasses

TClassnameToRuntimeId mrpt::utils::CClassRegistry::registeredClasses
private

Definition at line 125 of file internal_class_registry.cpp.




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019