![]() |
![]() |
a std::map<std::string,YourType> that offers a const operator[key]; if key is not stored in the std::map, a DDException is thrown More...
#include <DDReadMapType.h>
Public Member Functions | |
const V & | operator[] (const std::string &key) const throw (DDException) |
V & | operator[] (const std::string &key) |
ReadMapType () |
a std::map<std::string,YourType> that offers a const operator[key]; if key is not stored in the std::map, a DDException is thrown
otherwise, the ReadMapType works the same as std::map<std::string,YourType>
Definition at line 17 of file DDReadMapType.h.
ReadMapType< V >::ReadMapType | ( | ) | [inline] |
Definition at line 20 of file DDReadMapType.h.
: std::map<std::string,V>() {}
const V& ReadMapType< V >::operator[] | ( | const std::string & | key | ) | const throw (DDException) [inline] |
Definition at line 22 of file DDReadMapType.h.
Referenced by ReadMapType< std::map< std::string, double > >::operator[]().
{ typename std::map<std::string,V>::const_iterator it = this->find(key); if (it == this->end()) dddDetails::errorReadMapType(key); return it->second; }
V& ReadMapType< V >::operator[] | ( | const std::string & | key | ) | [inline] |
Definition at line 30 of file DDReadMapType.h.
{ //std::cout << "non-const-called" << std::endl; return std::map<std::string,V>::operator[](key); }