MRPT logo

mrpt::utils::CPropertiesValuesList Class Reference

An arbitrary list of "annotations", or named attributes, each being an instance of any CSerializable object. More...

#include <mrpt/utils/CPropertiesValuesList.h>

Inheritance diagram for mrpt::utils::CPropertiesValuesList:

mrpt::utils::CSerializable

List of all members.

Classes

struct  TPropertyValuePair

Public Member Functions

 CPropertiesValuesList ()
 Default constructor.
 CPropertiesValuesList (const CPropertiesValuesList &o)
 Copy constructor.
CPropertiesValuesListoperator= (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< TPropertyValuePairm_properties
 The properties list: a map between strings and objects.


Detailed Description

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

Definition at line 47 of file CPropertiesValuesList.h.


Constructor & Destructor Documentation

mrpt::utils::CPropertiesValuesList::CPropertiesValuesList (  ) 

Default constructor.

mrpt::utils::CPropertiesValuesList::CPropertiesValuesList ( const CPropertiesValuesList o  ) 

Copy constructor.

virtual mrpt::utils::CPropertiesValuesList::~CPropertiesValuesList (  )  [virtual]

Destructor.


Member Function Documentation

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.


Member Data Documentation

The properties list: a map between strings and objects.

Definition at line 59 of file CPropertiesValuesList.h.




Page generated by Doxygen 1.5.9 for MRPT 0.6.5 SVN:exported at Thu May 21 04:14:55 UTC 2009