SOFA API  6a688117
Open source framework for multi-physics simuation
sofa::helper::SingletonFnDispatcher< BaseClass, ResulT > Class Template Reference

#include <FnDispatcher.h>

Inheritance diagram for sofa::helper::SingletonFnDispatcher< BaseClass, ResulT >:

Static Public Member Functions

static SingletonFnDispatcher< BaseClass, ResulT > * getInstance ()
 
- Static Public Member Functions inherited from sofa::helper::BasicDispatcher< BaseClass, ResulT >
static ResulT ignoreFn (BaseClass &arg1, BaseClass &arg2)
 

Protected Member Functions

 SingletonFnDispatcher ()
 
- Protected Member Functions inherited from sofa::helper::BasicDispatcher< BaseClass, ResulT >
virtual ~BasicDispatcher ()
 

Additional Inherited Members

- Protected Attributes inherited from sofa::helper::BasicDispatcher< BaseClass, ResulT >
MapType callBackMap
 
- Public Member Functions inherited from sofa::helper::FnDispatcher< BaseClass, ResulT >
template<class ConcreteClass1 , class ConcreteClass2 , ResulT(*)(ConcreteClass1 &, ConcreteClass2 &) F, bool symetric>
void add ()
 
template<class ConcreteClass1 , class ConcreteClass2 , bool symetric>
void ignore ()
 
- Public Member Functions inherited from sofa::helper::BasicDispatcher< BaseClass, ResulT >
void add (const std::type_info &class1, const std::type_info &class2, F fun)
 
void ignore (const std::type_info &class1, const std::type_info &class2)
 
template<class ConcreteClass1 , class ConcreteClass2 , ResulT(*)(ConcreteClass1 &, ConcreteClass2 &) F, bool symetric>
void ignore ()
 
virtual ResulT defaultFn (BaseClass &arg1, BaseClass &arg2)
 
ResulT go (BaseClass &arg1, BaseClass &arg2)
 
bool isSupported (BaseClass &arg1, BaseClass &arg2)
 Return true if a pair of argument correspond to a callback function (different than ignoreFn) More...
 

Constructor details

template<class BaseClass , typename ResulT >
sofa::helper::SingletonFnDispatcher< BaseClass, ResulT >::SingletonFnDispatcher ( )
protected

Function details

template<class BaseClass , typename ResulT >
SingletonFnDispatcher< BaseClass, ResulT > * sofa::helper::SingletonFnDispatcher< BaseClass, ResulT >::getInstance ( )
static