#include <SimpleFunctors.h>
Public Member Functions | |
FcnFunctor2 (Result(*fcn)(Arg1, Arg2)) | |
Result | operator() (const Arg1 &x, const Arg2 &y) const |
Private Member Functions | |
FcnFunctor2 () | |
Private Attributes | |
Result(* | fcn_ )(Arg1, Arg2) |
Adaptation for using two-argument functors with simple cmath-style functions. Do not use this struct as a base class.
Definition at line 166 of file SimpleFunctors.h.
npstat::FcnFunctor2< Result, Arg1, Arg2 >::FcnFunctor2 | ( | Result(*)(Arg1, Arg2) | fcn | ) | [inline, explicit] |
Definition at line 168 of file SimpleFunctors.h.
npstat::FcnFunctor2< Result, Arg1, Arg2 >::FcnFunctor2 | ( | ) | [private] |
Result npstat::FcnFunctor2< Result, Arg1, Arg2 >::operator() | ( | const Arg1 & | x, |
const Arg2 & | y | ||
) | const [inline, virtual] |
Implements npstat::Functor2< Result, Arg1, Arg2 >.
Definition at line 170 of file SimpleFunctors.h.
References npstat::FcnFunctor2< Result, Arg1, Arg2 >::fcn_.
Result(* npstat::FcnFunctor2< Result, Arg1, Arg2 >::fcn_)(Arg1, Arg2) [private] |
Definition at line 175 of file SimpleFunctors.h.
Referenced by npstat::FcnFunctor2< Result, Arg1, Arg2 >::operator()().