When ValueType doesn't match Map::value_type, this class is defined as the method to call. More...
Public Member Functions | |
const ValueType & | get (const Map &self, const typename Map::key_type &k) const |
Get a value from the map. | |
void | set (Map &self, const typename Map::key_type &k, const ValueType &v) const |
Set a value in the map. | |
bool | exists (const Map &self, const typename Map::key_type &k) const |
Tell if the map contains a value of a given type with a given key. |
When ValueType doesn't match Map::value_type, this class is defined as the method to call.
Definition at line 72 of file multi_type_map.tpp.
bool claw::multi_type_map_wrapper< ValueType, Map >::recursive_call::exists | ( | const Map & | self, | |
const typename Map::key_type & | k | |||
) | const |
Tell if the map contains a value of a given type with a given key.
self | The map in which we search the key. | |
k | The key of the value to check. |
Definition at line 188 of file multi_type_map.tpp.
{ typename multi_type_map_wrapper<ValueType, typename Map::super>::method_type w; const typename Map::super& m = self; return w.exists( m, k ); } // multi_type_map_wrapper::recursive_call::exists()
const ValueType & claw::multi_type_map_wrapper< ValueType, Map >::recursive_call::get | ( | const Map & | self, | |
const typename Map::key_type & | k | |||
) | const |
Get a value from the map.
self | The map in which we search the key. | |
k | The key of the value to get. |
Definition at line 153 of file multi_type_map.tpp.
{ typename multi_type_map_wrapper<ValueType, typename Map::super>::method_type w; const typename Map::super& m = self; return w.get( m, k ); } // multi_type_map_wrapper::recursive_call::get()
void claw::multi_type_map_wrapper< ValueType, Map >::recursive_call::set | ( | Map & | self, | |
const typename Map::key_type & | k, | |||
const ValueType & | v | |||
) | const |
Set a value in the map.
self | The map in which we search the key. | |
k | The key of the value to set. | |
v | The value to set. |
Definition at line 171 of file multi_type_map.tpp.
{ typename multi_type_map_wrapper<ValueType, typename Map::super>::method_type w; typename Map::super& m = self; w.set( m, k, v ); } // multi_type_map_wrapper::recursive_call::set()