claw 1.9.0
 
Loading...
Searching...
No Matches
claw::multi_type_map_wrapper< ValueType, Map > Class Template Reference

This class provides types and methods to allow the call of methods for a given type in the inheritance of a multi_type_map. More...

Detailed Description

template<typename ValueType, typename Map>
class claw::multi_type_map_wrapper< ValueType, Map >

This class provides types and methods to allow the call of methods for a given type in the inheritance of a multi_type_map.

Remarks
This class is to be used internally.

Suppose we have defined the following variable

multi_type_map<int, type_list<std::string, type_list<int, no_type> > > my_map;

The call int i = my_map.get<int>( 24 ); doesn't match the type of the end class. So the call is repercuted on the parent class until the types match. Then, we can get the values in m_data.

Template parameters

  • ValueType is the type of the values on which the action is done.
  • Map is the type of the map in which the action is done.
Author
Julien Jorge

Definition at line 60 of file multi_type_map.hpp.


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