1 #ifndef MHO_TransformingOperator_HH__
2 #define MHO_TransformingOperator_HH__
19 template<
class XArgType1,
class XArgType2 >
26 void SetArgs(
const XArgType1* in, XArgType2* out) { this->
fArgs = std::make_tuple(in, out); }
30 return this->
Apply([
this](
const XArgType1* in, XArgType2* out) {
return InitializeImpl(in, out); });
35 return this->
Apply([
this](
const XArgType1* in, XArgType2* out) {
return ExecuteImpl(in, out); });
41 virtual bool ExecuteImpl(
const XArgType1* in, XArgType2* out) = 0;
Variadic base that stores an operator's typed arguments (pointers expected) in a tuple and exposes a ...
Definition: MHO_ArgumentCarrier.hh:22
std::tuple< Args... > fArgs
Definition: MHO_ArgumentCarrier.hh:24
auto Apply(Func &&func) -> decltype(mho_tuple_apply(std::forward< Func >(func), fArgs))
Definition: MHO_ArgumentCarrier.hh:26
Definition: MHO_AdhocFlagging.hh:18