For usage when passing a dynamic number of (numeric) arguments to a function, by name. More...
#include <mrpt/utils/types.h>


Public Member Functions | |
| 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. | |
| T & | operator[] (const std::string &s) |
| The write (non-const) version of the [] operator. | |
For usage when passing a dynamic number of (numeric) arguments to a function, by name.
TParameters<double> p;
p["v_max"] = 1.0; // Write
...
cout << p["w_max"]; // Read, even if "p" is const.
Definition at line 281 of file types.h.
| bool mrpt::utils::TParameters< T >::has | ( | const std::string & | s | ) | const [inline] |
| T& mrpt::utils::TParameters< T >::operator[] | ( | const std::string & | s | ) | [inline] |
The write (non-const) version of the [] operator.
Definition at line 294 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 287 of file types.h.
Referenced by mrpt::utils::TParameters< T >::operator[]().
| Page generated by Doxygen 1.6.1 for MRPT 0.9.0 SVN: at Mon Jun 7 06:47:58 UTC 2010 |