A list (actually based on a std::set) of MRPT classes, capable of keeping any class registered by the mechanism of CSerializable classes.
Definition at line 23 of file CListOfClasses.h.
#include <mrpt/utils/CListOfClasses.h>
Public Types | |
typedef TSet::iterator | iterator |
typedef TSet::const_iterator | const_iterator |
Public Member Functions | |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
void | insert (const mrpt::utils::TRuntimeClassId *id) |
Insert a class in the list. | |
bool | contains (const mrpt::utils::TRuntimeClassId *id) const |
Does the list contains this class? | |
bool | containsDerivedFrom (const mrpt::utils::TRuntimeClassId *id) const |
Does the list contains a class derived from...? | |
void | clear () |
Empty the list. | |
bool | empty () const |
Is the list empty? | |
std::string | toString () const |
Return a string representation of the list, for example: "CPose2D, CObservation, CPose3D". | |
void | fromString (const std::string &s) |
Return a string representation of the list, for example: "CPose2D, CObservation, CPose3D". | |
Private Types | |
typedef std::set< const mrpt::utils::TRuntimeClassId * > | TSet |
Private Attributes | |
TSet | m_data |
typedef TSet::const_iterator mrpt::utils::CListOfClasses::const_iterator |
Definition at line 32 of file CListOfClasses.h.
typedef TSet::iterator mrpt::utils::CListOfClasses::iterator |
Definition at line 31 of file CListOfClasses.h.
|
private |
Definition at line 26 of file CListOfClasses.h.
|
inline |
Definition at line 34 of file CListOfClasses.h.
|
inline |
Definition at line 35 of file CListOfClasses.h.
|
inline |
Empty the list.
Definition at line 54 of file CListOfClasses.h.
|
inline |
Does the list contains this class?
Definition at line 48 of file CListOfClasses.h.
bool mrpt::utils::CListOfClasses::containsDerivedFrom | ( | const mrpt::utils::TRuntimeClassId * | id | ) | const |
Does the list contains a class derived from...?
|
inline |
Is the list empty?
Definition at line 57 of file CListOfClasses.h.
|
inline |
Definition at line 37 of file CListOfClasses.h.
|
inline |
Definition at line 38 of file CListOfClasses.h.
void mrpt::utils::CListOfClasses::fromString | ( | const std::string & | s | ) |
Return a string representation of the list, for example: "CPose2D, CObservation, CPose3D".
std::exception | On unregistered class name found. |
|
inline |
Insert a class in the list.
Example of usage:
Definition at line 45 of file CListOfClasses.h.
std::string mrpt::utils::CListOfClasses::toString | ( | ) | const |
Return a string representation of the list, for example: "CPose2D, CObservation, CPose3D".
|
private |
Definition at line 28 of file CListOfClasses.h.
Page generated by Doxygen 1.9.8 for MRPT 1.4.0 SVN: at Thu Dec 14 16:41:50 UTC 2023 |