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 Member Functions | List of all members
Hg::detail::ForEachTypeHelper< CurIndex, EndIndex, ContainerT, Function > Class Template Reference

This parameterized construct is used to iterate through each type in the specified type container. More...

#include <meta_foreach.h>

Public Member Functions

 ForEachTypeHelper (Function &fn)
 Initializes this helper constructor for applying the input Functor fn to each type specified in the Type Container passed to the Functor. More...
 
void operator() ()
 The function that allows this structure to operate as a functor.
 

Detailed Description

template<size_t CurIndex, size_t EndIndex, typename ContainerT, typename Function>
class Hg::detail::ForEachTypeHelper< CurIndex, EndIndex, ContainerT, Function >

This parameterized construct is used to iterate through each type in the specified type container.

Parameters
CurIndex[size_t] The starting index for processing the type container. This value must be less than EndIndex otherwise a compiler error will be generated.
EndIndex[size_t]The last index to be processed in the type container.
ContainerT[typename] A type container to process. Each type entry within the specified range will be processed. A compiler error will be generated if this parameter is not a Type Container.
Function[typename] The user specified functor to use on each type.

Definition at line 40 of file meta_foreach.h.

Constructor & Destructor Documentation

template<size_t CurIndex, size_t EndIndex, typename ContainerT , typename Function >
Hg::detail::ForEachTypeHelper< CurIndex, EndIndex, ContainerT, Function >::ForEachTypeHelper ( Function &  fn)
inline

Initializes this helper constructor for applying the input Functor fn to each type specified in the Type Container passed to the Functor.

Parameters
fnThe functor that will be called for each type.

Definition at line 54 of file meta_foreach.h.


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