OpenStructure
|
#include <dispatch.hh>
Public Member Functions | |
void | operator() (ImageStateBase *lhs, const ImageStateBase *rhs) |
template<typename T1 , class D1 > | |
void | left (ImageStateImpl< T1, D1 > *lhs, const ImageStateBase *rhs) |
template<typename T1 , class D1 , typename T2 , class D2 > | |
void | right (ImageStateImpl< T1, D1 > *lhs, const ImageStateImpl< T2, D2 > *rhs) |
in-place binary dispatch
the template parameter is expected to be a class with the following specifications:
template<typename T1, class D1, typename T2, class D2> struct FNC { void operator()(ImageStateImpl<T1,D1>* lhs, const ImageStateImpl<T2,D2>* rhs); };
Note that the first parameter, lhs, is non-const; it is expected to be modified by the function object.
Note also that partial specialization is possible.
Definition at line 151 of file dispatch.hh.
|
inline |
Definition at line 175 of file dispatch.hh.
|
inline |
Definition at line 156 of file dispatch.hh.
|
inline |
Definition at line 191 of file dispatch.hh.