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::VisitDimension< TTypeList, Dimension > Class Template Reference

#include <TypeList.h>

Detailed Description

template<class TTypeList, unsigned int Dimension>
class typelist::VisitDimension< TTypeList, Dimension >

Runs a templated predicate on each type in the list with dimension provided as template parameter.

struct Predicate
{
template<class TType, unsigned int Dimension >
void operator()( void ) const
{ std::cout << typeid(TType).name() << ", " << (unsigned int)(Dimension) << std::endl; }
};
typedef typelist::MakeTypeList<int, char>::Type MyTypeList;
Runs a templated predicate on each type in the list with dimension provided as template parameter.
Definition: TypeList.h:545
void operator()(Predicate &visitor)
Definition: TypeList.h:547

Definition at line 544 of file TypeList.h.

Public Member Functions

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

Member Function Documentation

◆ operator()() [1/2]

template<class TTypeList , unsigned int Dimension>
template<class Predicate >
void typelist::VisitDimension< TTypeList, Dimension >::operator() ( const Predicate &  visitor)
inline

Definition at line 558 of file TypeList.h.

◆ operator()() [2/2]

template<class TTypeList , unsigned int Dimension>
template<class Predicate >
void typelist::VisitDimension< TTypeList, Dimension >::operator() ( Predicate &  visitor)
inline

Definition at line 547 of file TypeList.h.



Generated on 1667476801 for elastix by doxygen 1.9.1 elastix logo