Public Types | Public Member Functions | List of all members
g2o::PropertyMap Class Reference

a collection of properties mapping from name to the property itself More...

#include <property.h>

Inheritance diagram for g2o::PropertyMap:
Inheritance graph
[legend]

Public Types

typedef std::map< std::string, BaseProperty * > BaseClass
 
typedef BaseClass::const_iterator PropertyMapConstIterator
 
typedef BaseClass::iterator PropertyMapIterator
 

Public Member Functions

bool addProperty (BaseProperty *p)
 
bool eraseProperty (const std::string &name_)
 
template<typename P >
P * getProperty (const std::string &name_)
 
template<typename P >
const P * getProperty (const std::string &name_) const
 
template<typename P >
P * makeProperty (const std::string &name_, const typename P::ValueType &v)
 
bool updateMapFromString (const std::string &values)
 
bool updatePropertyFromString (const std::string &name, const std::string &value)
 
void writeToCSV (std::ostream &os) const
 
 ~PropertyMap ()
 

Detailed Description

a collection of properties mapping from name to the property itself

Definition at line 75 of file property.h.

Member Typedef Documentation

typedef std::map<std::string, BaseProperty*> g2o::PropertyMap::BaseClass

Definition at line 78 of file property.h.

typedef BaseClass::const_iterator g2o::PropertyMap::PropertyMapConstIterator

Definition at line 80 of file property.h.

typedef BaseClass::iterator g2o::PropertyMap::PropertyMapIterator

Definition at line 79 of file property.h.

Constructor & Destructor Documentation

g2o::PropertyMap::~PropertyMap ( )

Definition at line 58 of file property.cpp.

Member Function Documentation

bool g2o::PropertyMap::addProperty ( BaseProperty p)

add a property to the map

Definition at line 44 of file property.cpp.

bool g2o::PropertyMap::eraseProperty ( const std::string &  name_)

remove a property from the map

Definition at line 49 of file property.cpp.

template<typename P >
P* g2o::PropertyMap::getProperty ( const std::string &  name_)
inline

return a property by its name

Definition at line 98 of file property.h.

template<typename P >
const P* g2o::PropertyMap::getProperty ( const std::string &  name_) const
inline

Definition at line 106 of file property.h.

template<typename P >
P* g2o::PropertyMap::makeProperty ( const std::string &  name_,
const typename P::ValueType &  v 
)
inline

create a property and insert it

Definition at line 118 of file property.h.

bool g2o::PropertyMap::updateMapFromString ( const std::string &  values)

update the map based on a name=value string, e.g., name1=val1,name2=val2

Returns
true, if it was possible to update all parameters

Definition at line 88 of file property.cpp.

bool g2o::PropertyMap::updatePropertyFromString ( const std::string &  name,
const std::string &  value 
)

update a specfic property with a new value

Returns
true if the params is stored and update was carried out

Definition at line 65 of file property.cpp.

void g2o::PropertyMap::writeToCSV ( std::ostream &  os) const

Definition at line 74 of file property.cpp.


The documentation for this class was generated from the following files:


orb_slam2_ros
Author(s):
autogenerated on Wed Apr 21 2021 02:53:06