fw4spl
fwTools::Dispatcher< TSEQ, FUNCTOR > Class Template Reference

Create an automatic template instancier exple Dispatcher< TYPESEQUENCE , FUNCTOR>::invoke("int");. More...

#include <Dispatcher.hpp>

Static Public Member Functions

static void invoke ()
 Instanciate and invoke all functors.
 
template<class KeyType >
static void invoke (const KeyType &keytype)
 Invoke only the specified Type only.
 
template<class KeyType , class Parameter >
static void invoke (const KeyType &keytype, Parameter &param)
 Invoke only the specified Type only with a fixed parameter. More...
 

Detailed Description

template<class TSEQ, class FUNCTOR>
class fwTools::Dispatcher< TSEQ, FUNCTOR >

Create an automatic template instancier exple Dispatcher< TYPESEQUENCE , FUNCTOR>::invoke("int");.

Date
2007-2009.

Will instanciante class FUNCTOR then for a type T in TYPESEQUENCE (here int) call the corresponding operator() method according to parameter of invoke static method. ie FUNCTOR().operator<int>();

Definition at line 85 of file Dispatcher.hpp.

Member Function Documentation

template<class TSEQ, class FUNCTOR>
template<class KeyType , class Parameter >
static void fwTools::Dispatcher< TSEQ, FUNCTOR >::invoke ( const KeyType &  keytype,
Parameter &  param 
)
inlinestatic

Invoke only the specified Type only with a fixed parameter.

Note
That parameter is NOT const so functor can update value

Definition at line 162 of file Dispatcher.hpp.


The documentation for this class was generated from the following file: