Jpp
|
Forward declaration of class JAutoMap for specialisation of class JAutomate. More...
#include <JAutoMap.hh>
Public Types | |
typedef std::map< JKey_t, JValue_t > | map_type |
typedef map_type::value_type | value_type |
Public Member Functions | |
JAutoMap () | |
Default constructor. More... | |
template<class T > | |
void | insert () |
Insert list of data types. More... | |
template<class T , class JElement_t > | |
void | insert (const JAutomate< JElement_t > &automate) |
Insert (list of) data type(s). More... | |
Static Public Member Functions | |
template<class T > | |
static value_type | getAutoElement (JType< T > type) |
Creation of a map element for given data type. More... | |
Protected Member Functions | |
template<class T , class JElement_t > | |
void | insert (JType< T > type, const JAutomate< JElement_t > &automate) |
Insertion of single data type. More... | |
template<class JHead_t , class JTail_t , class JElement_t > | |
void | insert (JType< JTypeList< JHead_t, JTail_t > > typelist, const JAutomate< JElement_t > &automate) |
Recursive insertion of data types. More... | |
template<class JElement_t > | |
void | insert (JType< JNullType > type, const JAutomate< JElement_t > &automate) |
Template specialisation to terminate insertion of data types. More... | |
Forward declaration of class JAutoMap for specialisation of class JAutomate.
Wrapper class around std::map for automatic insertion of elements based on data types.
Definition at line 29 of file JAutoMap.hh.
typedef std::map<JKey_t, JValue_t> JTOOLS::JAutoMap< JKey_t, JValue_t >::map_type |
Definition at line 90 of file JAutoMap.hh.
typedef map_type::value_type JTOOLS::JAutoMap< JKey_t, JValue_t >::value_type |
Definition at line 91 of file JAutoMap.hh.
|
inline |
|
static |
Creation of a map element for given data type.
This method should be overloaded for the requested data types if the method insert() is used without argument.
type | data type |
|
inline |
|
inline |
Insert (list of) data type(s).
automate | type defined element |
Definition at line 131 of file JAutoMap.hh.
|
inlineprotected |
Insertion of single data type.
type | data type |
automate | element automate by data type |
Definition at line 144 of file JAutoMap.hh.
|
inlineprotected |
Recursive insertion of data types.
typelist | type list |
automate | element automate by data type |
Definition at line 158 of file JAutoMap.hh.
|
inlineprotected |
Template specialisation to terminate insertion of data types.
type | null type |
automate | element automate by data type |
Definition at line 173 of file JAutoMap.hh.