Alchemy  1.0
A framework to robustly process network messages and structured data
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Types | List of all members
Hg::detail::DefineFieldType< Idx, format_t > Struct Template Reference

A meta-function that simplfies the declaration of a FieldType. Publically derive from the type member of this struct. More...

#include <basic_datum.h>

Public Types

typedef Hg::TypeAt< Idx,
format_t >::type 
index_type
 The type extracted at the current index defined in the parent TypeList.
 
typedef detail::FieldTypes
< index_type
type
 The field type definition that maps a field type with it's value_type.
 

Detailed Description

template<size_t Idx, typename format_t>
struct Hg::detail::DefineFieldType< Idx, format_t >

A meta-function that simplfies the declaration of a FieldType. Publically derive from the type member of this struct.

Specialize this template class to customize the internal type that an index_type will resolve to.

Idx [size_t] The index of this element in the TypeList definition. Idx must be < length<T>::value. T The TypeList that contains this elements definition. T must be an indexable type container.

Definition at line 395 of file basic_datum.h.


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