#include <mrpt/utils/types.h>
Inherits std::map< std::string, T >.
Public Member Functions | |
TParameters () | |
virtual | ~TParameters () |
bool | has (const std::string &s) const |
T | operator[] (const std::string &s) const |
A const version of the [] operator, for usage as read-only. | |
double & | operator[] (const std::string &s) |
The write (non-const) version of the [] operator. |
TParameters p; p["v_max"] = 1.0; // Write ... cout << p["w_max"]; // Read, even if "p" is const.
Definition at line 219 of file types.h.
mrpt::utils::TParameters< T >::TParameters | ( | ) | [inline] |
virtual mrpt::utils::TParameters< T >::~TParameters | ( | ) | [inline, virtual] |
bool mrpt::utils::TParameters< T >::has | ( | const std::string & | s | ) | const [inline] |
double& mrpt::utils::TParameters< T >::operator[] | ( | const std::string & | s | ) | [inline] |
The write (non-const) version of the [] operator.
Definition at line 236 of file types.h.
References mrpt::utils::TParameters< T >::operator[]().
T mrpt::utils::TParameters< T >::operator[] | ( | const std::string & | s | ) | const [inline] |
A const version of the [] operator, for usage as read-only.
std::logic_error | On parameter not present. Please, check existence with "has" before reading. |
Definition at line 229 of file types.h.
Referenced by mrpt::utils::TParameters< T >::operator[]().
Page generated by Doxygen 1.5.7.1 for MRPT 0.7.1 SVN: at Mon Aug 17 22:58:25 EDT 2009 |