Main MRPT website > C++ reference
MRPT logo
Public Types | Public Member Functions | Private Types | Private Attributes

mrpt::utils::CListOfClasses Class Reference


Detailed Description

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 40 of file CListOfClasses.h.

#include <mrpt/utils/CListOfClasses.h>

List of all members.

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

Member Typedef Documentation

Definition at line 49 of file CListOfClasses.h.

Definition at line 48 of file CListOfClasses.h.

Definition at line 43 of file CListOfClasses.h.


Member Function Documentation

iterator mrpt::utils::CListOfClasses::begin ( ) [inline]

Definition at line 51 of file CListOfClasses.h.

const_iterator mrpt::utils::CListOfClasses::begin ( ) const [inline]

Definition at line 52 of file CListOfClasses.h.

void mrpt::utils::CListOfClasses::clear ( void  ) [inline]

Empty the list.

Definition at line 71 of file CListOfClasses.h.

bool mrpt::utils::CListOfClasses::contains ( const mrpt::utils::TRuntimeClassId id) const [inline]

Does the list contains this class?

Definition at line 65 of file CListOfClasses.h.

bool mrpt::utils::CListOfClasses::containsDerivedFrom ( const mrpt::utils::TRuntimeClassId id) const

Does the list contains a class derived from...?

bool mrpt::utils::CListOfClasses::empty ( ) const [inline]

Is the list empty?

Definition at line 74 of file CListOfClasses.h.

const_iterator mrpt::utils::CListOfClasses::end ( ) const [inline]

Definition at line 55 of file CListOfClasses.h.

iterator mrpt::utils::CListOfClasses::end ( ) [inline]

Definition at line 54 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".

Exceptions:
std::exceptionOn unregistered class name found.
void mrpt::utils::CListOfClasses::insert ( const mrpt::utils::TRuntimeClassId id) [inline]

Insert a class in the list.

Example of usage:

     myList.insert(CLASS_ID(CObservationImage));

Definition at line 62 of file CListOfClasses.h.

std::string mrpt::utils::CListOfClasses::toString ( ) const

Return a string representation of the list, for example: "CPose2D, CObservation, CPose3D".


Member Data Documentation

Definition at line 45 of file CListOfClasses.h.




Page generated by Doxygen 1.7.3 for MRPT 0.9.4 SVN: at Sat Mar 26 06:16:28 UTC 2011