#include <SimpleFunctors.h>
Public Member Functions | |
FcnFunctor1 (Result(*fcn)(Arg1)) | |
Result | operator() (const Arg1 &a) const |
Private Member Functions | |
FcnFunctor1 () | |
Private Attributes | |
Result(* | fcn_ )(Arg1) |
Adaptation for using single-argument functors with simple cmath-style functions. Do not use this struct as a base class.
Definition at line 150 of file SimpleFunctors.h.
npstat::FcnFunctor1< Result, Arg1 >::FcnFunctor1 | ( | Result(*)(Arg1) | fcn | ) | [inline, explicit] |
Definition at line 152 of file SimpleFunctors.h.
npstat::FcnFunctor1< Result, Arg1 >::FcnFunctor1 | ( | ) | [private] |
Result npstat::FcnFunctor1< Result, Arg1 >::operator() | ( | const Arg1 & | a | ) | const [inline, virtual] |
Implements npstat::Functor1< Result, Arg1 >.
Definition at line 154 of file SimpleFunctors.h.
References npstat::FcnFunctor1< Result, Arg1 >::fcn_.
Result(* npstat::FcnFunctor1< Result, Arg1 >::fcn_)(Arg1) [private] |
Definition at line 158 of file SimpleFunctors.h.
Referenced by npstat::FcnFunctor1< Result, Arg1 >::operator()().