go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
Public Member Functions
typelist::Visit< TTypeList > Class Template Reference

#include <TypeList.h>

Detailed Description

template<class TTypeList>
class typelist::Visit< TTypeList >

Runs a templated predicate on each type in the list.

struct Predicate
{
template<class TType>
void operator()( void ) const
{ std::cout << typeid(TType).name() << std::endl; }
};
typelist::Visit<MyTypeList>()( Predicate() );

Definition at line 487 of file TypeList.h.

Public Member Functions

template<class Predicate >
void operator() (Predicate &visitor)
 
template<class Predicate >
void operator() (const Predicate &visitor)
 

Member Function Documentation

template<class TTypeList >
template<class Predicate >
void typelist::Visit< TTypeList >::operator() ( Predicate &  visitor)
inline

Definition at line 490 of file TypeList.h.

template<class TTypeList >
template<class Predicate >
void typelist::Visit< TTypeList >::operator() ( const Predicate &  visitor)
inline

Definition at line 501 of file TypeList.h.



Generated on 04-09-2015 for elastix by doxygen 1.8.9.1 elastix logo