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, mrpt::utils::TParameters
Definition at line 29 of file CPropertiesValuesList.h.
#include <mrpt/utils/CPropertiesValuesList.h>
◆ SmartPtr
◆ CPropertiesValuesList() [1/2]
mrpt::utils::CPropertiesValuesList::CPropertiesValuesList |
( |
| ) |
|
◆ CPropertiesValuesList() [2/2]
◆ ~CPropertiesValuesList()
virtual mrpt::utils::CPropertiesValuesList::~CPropertiesValuesList |
( |
| ) |
|
|
virtual |
◆ _GetBaseClass()
◆ clear()
void mrpt::utils::CPropertiesValuesList::clear |
( |
| ) |
|
◆ clone()
CObject* mrpt::utils::CObject::clone |
( |
| ) |
const |
|
inlineinherited |
Cloning interface for smart pointers.
Definition at line 139 of file CObject.h.
◆ Create()
static CPropertiesValuesListPtr mrpt::utils::CPropertiesValuesList::Create |
( |
| ) |
|
|
static |
◆ CreateObject()
◆ duplicate()
◆ duplicateGetSmartPtr()
Returns a copy of the object, indepently of its class, as a smart pointer (the newly created object will exist as long as any copy of this smart pointer).
Definition at line 136 of file CObject.h.
◆ get()
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.
◆ getPropertyNames()
std::vector<std::string> mrpt::utils::CPropertiesValuesList::getPropertyNames |
( |
| ) |
const |
Returns the name of all properties in the list.
◆ GetRuntimeClass()
◆ operator delete() [1/3]
void mrpt::utils::CPropertiesValuesList::operator delete |
( |
void * |
ptr | ) |
|
throw | ( | |
| ) | | |
|
inline |
◆ operator delete() [2/3]
void mrpt::utils::CPropertiesValuesList::operator delete |
( |
void * |
memory, |
|
|
void * |
ptr |
|
) |
| |
throw | ( | |
| ) | | |
|
inline |
◆ operator delete() [3/3]
void mrpt::utils::CPropertiesValuesList::operator delete |
( |
void * |
ptr, |
|
|
const std::nothrow_t & |
|
|
) |
| |
throw | ( | |
| ) | | |
|
inline |
◆ operator delete[]()
void mrpt::utils::CPropertiesValuesList::operator delete[] |
( |
void * |
ptr | ) |
|
throw | ( | |
| ) | | |
|
inline |
◆ operator new() [1/3]
void* mrpt::utils::CPropertiesValuesList::operator new |
( |
size_t |
size, |
|
|
const std::nothrow_t & |
|
|
) |
| |
throw | ( | |
| ) | | |
|
inline |
◆ operator new() [2/3]
void* mrpt::utils::CPropertiesValuesList::operator new |
( |
size_t |
size | ) |
|
|
inline |
◆ operator new() [3/3]
static void* mrpt::utils::CPropertiesValuesList::operator new |
( |
size_t |
size, |
|
|
void * |
ptr |
|
) |
| |
|
inlinestatic |
◆ operator new[]()
void* mrpt::utils::CPropertiesValuesList::operator new[] |
( |
size_t |
size | ) |
|
|
inline |
◆ operator=()
◆ readFromStream()
Introduces a pure virtual method responsible for loading from a CStream This can not be used directly be users, instead use "stream >> object;" for reading it from a stream or "stream >> object_ptr;" if the class is unknown apriori.
- Parameters
-
in | The input binary stream where the object data must read from. |
version | The version of the object stored in the stream: use this version number in your code to know how to read the incoming data. |
- Exceptions
-
- See also
- CStream
Implements mrpt::utils::CSerializable.
◆ set()
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()
size_t mrpt::utils::CPropertiesValuesList::size |
( |
| ) |
const |
Returns the number of properties in the list.
◆ writeToMatlab()
virtual mxArray* mrpt::utils::CSerializable::writeToMatlab |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ writeToStream()
void mrpt::utils::CPropertiesValuesList::writeToStream |
( |
mrpt::utils::CStream & |
out, |
|
|
int * |
getVersion |
|
) |
| const |
|
protectedvirtual |
Introduces a pure virtual method responsible for writing to a CStream.
This can not be used directly be users, instead use "stream << object;" for writing it to a stream.
- Parameters
-
out | The output binary stream where object must be dumped. |
getVersion | If NULL, the object must be dumped. If not, only the version of the object dump must be returned in this pointer. This enables the versioning of objects dumping and backward compatibility with previously stored data. |
- Exceptions
-
- See also
- CStream
Implements mrpt::utils::CSerializable.
◆ _init_CPropertiesValuesList
◆ classCObject
◆ classCPropertiesValuesList
◆ classCSerializable
◆ classinfo
◆ m_properties