FiberVISH 0.2
Fish - The Fiber Bundle API for the Vish Visualization Shell
Public Member Functions | Static Public Member Functions | List of all members
Fiber::AcceptType< T, more > Struct Template Reference

A template helper class to provide an easier syntax for allowing certain field types to be accepted by this fish. More...

#include <FiberType.hpp>

Public Member Functions

 AcceptType (Fiber::TypeList_t &TL)
 Pseudo-constructor: The object itself here is not used at all.
 

Static Public Member Functions

static int accept (Fiber::TypeList_t &TL)
 

Detailed Description

template<class T, class ... more>
struct Fiber::AcceptType< T, more >

A template helper class to provide an easier syntax for allowing certain field types to be accepted by this fish.

Use a syntax like this in your code:

TypeList_t AcceptedFields;
void addTypes()
{
AcceptType<float> a( AcceptedFields );
AcceptType<double>b( AcceptedFields );
}
An iterator with an optional DataCreator, which is just a class to intercept creation of data along a...
Definition CreativeIterator.hpp:34
A set of types.
Definition FiberType.hpp:213

Constructor & Destructor Documentation

◆ AcceptType()

template<class T , class ... more>
Fiber::AcceptType< T, more >::AcceptType ( Fiber::TypeList_t TL)
inline

Pseudo-constructor: The object itself here is not used at all.

The constructor only calls global functions, and inserts the template class argument into the given typelist, with no member functions or data members are set or touched. This constructor is no more than an interface to the TypeList_t::insert() function, with an alternative, little more convenient, syntax.