#include <mrpt/utils/CPropertiesValuesList.h>

Classes | |
| struct | TPropertyValuePair |
Public Member Functions | |
| CPropertiesValuesList () | |
| Default constructor. | |
| CPropertiesValuesList (const CPropertiesValuesList &o) | |
| Copy constructor. | |
| CPropertiesValuesList & | operator= (const CPropertiesValuesList &o) |
| Copy operator. | |
| virtual | ~CPropertiesValuesList () |
| Destructor. | |
| void | clear () |
| Clears the list. | |
| CSerializablePtr | get (const std::string &propertyName) const |
| Returns the value of the property (case insensitive), or NULL if it does not exist. | |
| void | set (const std::string &propertyName, const CSerializablePtr &obj) |
| Sets/change the value of the property (case insensitive), making a copy of the object (or setting it to NULL if it is the passed value). | |
| size_t | size () const |
| Returns the number of properties in the list. | |
| std::vector< std::string > | getPropertyNames () const |
| Returns the name of all properties in the list. | |
Protected Attributes | |
| std::vector< TPropertyValuePair > | m_properties |
| The properties list: a map between strings and objects. | |
A multi-hypotheses version exists in CMHPropertiesValuesList.
Definition at line 47 of file CPropertiesValuesList.h.
| mrpt::utils::CPropertiesValuesList::CPropertiesValuesList | ( | ) |
Default constructor.
| mrpt::utils::CPropertiesValuesList::CPropertiesValuesList | ( | const CPropertiesValuesList & | o | ) |
Copy constructor.
| virtual mrpt::utils::CPropertiesValuesList::~CPropertiesValuesList | ( | ) | [virtual] |
Destructor.
| void mrpt::utils::CPropertiesValuesList::clear | ( | ) |
Clears the list.
| CSerializablePtr mrpt::utils::CPropertiesValuesList::get | ( | const std::string & | propertyName | ) | const |
Returns the value of the property (case insensitive), or NULL if it does not exist.
| std::vector<std::string> mrpt::utils::CPropertiesValuesList::getPropertyNames | ( | ) | const |
Returns the name of all properties in the list.
| CPropertiesValuesList& mrpt::utils::CPropertiesValuesList::operator= | ( | const CPropertiesValuesList & | o | ) |
Copy operator.
| void mrpt::utils::CPropertiesValuesList::set | ( | const std::string & | propertyName, | |
| const CSerializablePtr & | obj | |||
| ) |
Sets/change the value of the property (case insensitive), making a copy of the object (or setting it to NULL if it is the passed value).
| size_t mrpt::utils::CPropertiesValuesList::size | ( | ) | const |
Returns the number of properties in the list.
std::vector<TPropertyValuePair> mrpt::utils::CPropertiesValuesList::m_properties [protected] |
The properties list: a map between strings and objects.
Definition at line 59 of file CPropertiesValuesList.h.
| Page generated by Doxygen 1.5.8 for MRPT 0.6.5 SVN: at Thu Feb 26 02:07:47 EST 2009 |