#include <SimpleFunctors.h>
Public Member Functions | |
FcnFunctor0 (Result(*fcn)()) | |
Result | operator() () const |
Private Member Functions | |
FcnFunctor0 () | |
Private Attributes | |
Result(* | fcn_ )() |
Adaptation for using functors without arguments with simple cmath-style functions. Do not use this struct as a base class.
Definition at line 134 of file SimpleFunctors.h.
npstat::FcnFunctor0< Result >::FcnFunctor0 | ( | Result(*)() | fcn | ) | [inline, explicit] |
Definition at line 136 of file SimpleFunctors.h.
npstat::FcnFunctor0< Result >::FcnFunctor0 | ( | ) | [private] |
Result npstat::FcnFunctor0< Result >::operator() | ( | ) | const [inline, virtual] |
Implements npstat::Functor0< Result >.
Definition at line 138 of file SimpleFunctors.h.
References npstat::FcnFunctor0< Result >::fcn_.
{return fcn_();}
Result(* npstat::FcnFunctor0< Result >::fcn_)() [private] |
Definition at line 142 of file SimpleFunctors.h.
Referenced by npstat::FcnFunctor0< Result >::operator()().