Public Member Functions | Static Public Member Functions

AcceptType< T > 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>

List of all members.

Public Member Functions

Static Public Member Functions


Detailed Description

template<class T>
struct AcceptType< T >

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 );
   }

Constructor & Destructor Documentation

template<class T>
AcceptType< T >::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.