SOFA API  1c8b807d
Open source framework for multi-physics simuation
sofa::helper::FnDispatcher< BaseClass, ResulT > Class Template Reference

#include <FnDispatcher.h>

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

Public Member Functions

template<class ConcreteClass1 , class ConcreteClass2 , ResulT(*)(ConcreteClass1 &, ConcreteClass2 &) F, bool symmetric>
void add ()
 
template<class ConcreteClass1 , class ConcreteClass2 , bool symmetric>
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)
 
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...
 

Additional Inherited Members

- Protected Attributes inherited from sofa::helper::BasicDispatcher< BaseClass, ResulT >
MapType callBackMap
 
- Static Public Member Functions inherited from sofa::helper::BasicDispatcher< BaseClass, ResulT >
static ResulT ignoreFn (BaseClass &arg1, BaseClass &arg2)
 
- Protected Member Functions inherited from sofa::helper::BasicDispatcher< BaseClass, ResulT >
virtual ~BasicDispatcher ()
 

Function details

◆ add()

template<class BaseClass , typename ResulT >
template<class ConcreteClass1 , class ConcreteClass2 , ResulT(*)(ConcreteClass1 &, ConcreteClass2 &) F, bool symmetric>
void sofa::helper::FnDispatcher< BaseClass, ResulT >::add ( )
inline

◆ ignore()

template<class BaseClass , typename ResulT >
template<class ConcreteClass1 , class ConcreteClass2 , bool symmetric>
void sofa::helper::FnDispatcher< BaseClass, ResulT >::ignore ( )
inline