Jpp  17.2.1-pre0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Static Public Member Functions | List of all members
JTOOLS::JAutomate< JElement_t > Struct Template Reference

Auxiliary class for automatic element creation. More...

#include <JAutoMap.hh>

Static Public Member Functions

template<class T >
static JElement_t getElement (JType< T > type)
 Get element. More...
 

Detailed Description

template<class JElement_t>
struct JTOOLS::JAutomate< JElement_t >

Auxiliary class for automatic element creation.

The template argument corresponds to the data type of the elements in the map.
There should be a corresponding constructor

   JElement_t::JElement_t(JType<T>);

for each data type T to be inserted in the map.

Definition at line 46 of file JAutoMap.hh.

Member Function Documentation

template<class JElement_t>
template<class T >
static JElement_t JTOOLS::JAutomate< JElement_t >::getElement ( JType< T type)
inlinestatic

Get element.

Parameters
typedata type
Returns
element

Definition at line 54 of file JAutoMap.hh.

55  {
56  return JElement_t(type);
57  }

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