class mrpt::hmtslam::CPropertiesValuesList
An arbitrary list of “annotations”, or named attributes, each being an instance of any CSerializable object.
A multi-hypotheses version exists in CMHPropertiesValuesList.
See also:
CSerializable, CMHPropertiesValuesList
#include <mrpt/hmtslam/CPropertiesValuesList.h> class CPropertiesValuesList: public mrpt::serialization::CSerializable { public: // structs struct TPropertyValuePair; // construction CPropertiesValuesList(); CPropertiesValuesList(const CPropertiesValuesList& o); // methods CPropertiesValuesList& operator = (const CPropertiesValuesList& o); void clear(); CSerializable::Ptr get(const std::string& propertyName) const; void set(const std::string& propertyName, const CSerializable::Ptr& obj); size_t size() const; std::vector<std::string> getPropertyNames() const; };
Construction
CPropertiesValuesList()
Default constructor.
CPropertiesValuesList(const CPropertiesValuesList& o)
Copy constructor.
Methods
CPropertiesValuesList& operator = (const CPropertiesValuesList& o)
Copy operator.
void clear()
Clears the list.
CSerializable::Ptr get(const std::string& propertyName) const
Returns the value of the property (case insensitive), or nullptr if it does not exist.
void set(const std::string& propertyName, const CSerializable::Ptr& obj)
Sets/change the value of the property (case insensitive), making a copy of the object (or setting it to nullptr 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.