#include <SimpleFunctors.h>
Public Member Functions | |
FcnFunctor1 (Result(*fcn)(Arg1)) | |
Result | operator() (const Arg1 &a) const |
Public Member Functions inherited from npstat::Functor1< Result, Arg1 > | |
virtual | ~Functor1 () |
Private Member Functions | |
FcnFunctor1 ()=delete | |
Private Attributes | |
Result(* | fcn_ )(Arg1) |
Additional Inherited Members | |
Public Types inherited from npstat::Functor1< Result, Arg1 > | |
typedef Arg1 | first_argument_type |
typedef Result | result_type |
Adaptation for using single-argument functors with simple cmath-style functions. Do not use this struct as a base class.
Definition at line 135 of file SimpleFunctors.h.
|
inlineexplicit |
Definition at line 136 of file SimpleFunctors.h.
|
privatedelete |
|
inlinevirtual |
Implements npstat::Functor1< Result, Arg1 >.
Definition at line 138 of file SimpleFunctors.h.
References a, and npstat::FcnFunctor1< Result, Arg1 >::fcn_.
|
private |
Definition at line 142 of file SimpleFunctors.h.
Referenced by npstat::FcnFunctor1< Result, Arg1 >::operator()().