Flow123d  jenkins-Flow123d-windows-release-multijob-285
Public Types | List of all members
Input::internal::TD< T > Struct Template Reference

#include <accessors.hh>

Public Types

typedef T OT
 

Detailed Description

template<class T>
struct Input::internal::TD< T >

This is primary type dispatch template. For given type it defines type that will be read from the storage. i.e. short int, char, and int are all translated to int.

TODO: us boost type traits to have this dispatch complete. following could work, but then the second dispatch do not work and probably has to be also implemented by mpl. The problem is, that TD<short int>::OT is not 'int', but unprocessed mpl construct. I don't know how to force compiler to process it before using it for the second dispatch.

template<class T>
struct TD {
typedef typename
boost::mpl::if_< boost::is_integral<T>, int,
boost::mpl::if_< boost::is_floating_point<T>, double,
T
>
>::type OT;
};

Definition at line 678 of file accessors.hh.

Member Typedef Documentation

template<class T>
typedef T Input::internal::TD< T >::OT

Definition at line 679 of file accessors.hh.


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