Fish - FiberLib for VISH 0.3
Fish - The Fiber Bundle API for the Vish Visualization Shell
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 );
}
AcceptType(Fiber::TypeList_t &TL)
Pseudo-constructor: The object itself here is not used at all.
Definition FiberType.hpp:276

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.

References AcceptType().

Referenced by AcceptType().