MRPT
2.0.1
|
A list (actually based on a std::set) of MRPT classes, capable of keeping any class registered by the mechanism of CObject classes.
Access to "data" for the actual content, or use any of the helper methods in this class.
Definition at line 22 of file CListOfClasses.h.
#include <mrpt/rtti/CListOfClasses.h>
Public Types | |
using | TSet = std::set< const mrpt::rtti::TRuntimeClassId * > |
Public Member Functions | |
void | insert (const mrpt::rtti::TRuntimeClassId *id) |
Insert a class in the list. More... | |
bool | contains (const mrpt::rtti::TRuntimeClassId *id) const |
Does the list contains this class? More... | |
bool | containsDerivedFrom (const mrpt::rtti::TRuntimeClassId *id) const |
Does the list contains a class derived from...? More... | |
std::string | toString () const |
Return a string representation of the list, for example: "CPose2D,
CObservation, CPose3D". More... | |
void | fromString (const std::string &s) |
Builds from a string representation of the list, for example: "CPose2D,
CObservation, CPose3D". More... | |
Public Attributes | |
TSet | data |
using mrpt::rtti::CListOfClasses::TSet = std::set<const mrpt::rtti::TRuntimeClassId*> |
Definition at line 25 of file CListOfClasses.h.
|
inline |
Does the list contains this class?
Definition at line 39 of file CListOfClasses.h.
References data.
Referenced by mrpt::slam::CMetricMapBuilderICP::processObservation().
bool CListOfClasses::containsDerivedFrom | ( | const mrpt::rtti::TRuntimeClassId * | id | ) | const |
Does the list contains a class derived from...?
Definition at line 20 of file CListOfClasses.cpp.
References data.
void CListOfClasses::fromString | ( | const std::string & | s | ) |
Builds from a string representation of the list, for example: "CPose2D, CObservation, CPose3D".
std::exception | On unregistered class name found. |
Definition at line 62 of file CListOfClasses.cpp.
References ASSERTMSG_, data, mrpt::rtti::findRegisteredClass(), mrpt::format(), insert(), MRPT_TRY_END, MRPT_TRY_START, and trim().
Referenced by mrpt::apps::ICP_SLAM_App_Base::run().
|
inline |
Insert a class in the list.
Example of usage:
Definition at line 33 of file CListOfClasses.h.
References data.
Referenced by fromString().
std::string CListOfClasses::toString | ( | ) | const |
Return a string representation of the list, for example: "CPose2D, CObservation, CPose3D".
Definition at line 28 of file CListOfClasses.cpp.
References data.
TSet mrpt::rtti::CListOfClasses::data |
Definition at line 26 of file CListOfClasses.h.
Referenced by contains(), containsDerivedFrom(), fromString(), insert(), mrpt::slam::CMetricMapBuilderRBPF::processActionObservation(), and toString().
Page generated by Doxygen 1.8.14 for MRPT 2.0.1 Git: 0fef1a6d7 Fri Apr 3 23:00:21 2020 +0200 at vie abr 3 23:20:28 CEST 2020 |