CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

npstat::FcnFunctor0< Result > Struct Template Reference

#include <SimpleFunctors.h>

Inheritance diagram for npstat::FcnFunctor0< Result >:
npstat::Functor0< Result >

List of all members.

Public Member Functions

 FcnFunctor0 (Result(*fcn)())
Result operator() () const

Private Member Functions

 FcnFunctor0 ()

Private Attributes

Result(* fcn_ )()

Detailed Description

template<typename Result>
struct npstat::FcnFunctor0< Result >

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.


Constructor & Destructor Documentation

template<typename Result >
npstat::FcnFunctor0< Result >::FcnFunctor0 ( Result(*)()  fcn) [inline, explicit]

Definition at line 136 of file SimpleFunctors.h.

: fcn_(fcn) {}
template<typename Result >
npstat::FcnFunctor0< Result >::FcnFunctor0 ( ) [private]

Member Function Documentation

template<typename Result >
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_();}

Member Data Documentation

template<typename Result >
Result(* npstat::FcnFunctor0< Result >::fcn_)() [private]

Definition at line 142 of file SimpleFunctors.h.

Referenced by npstat::FcnFunctor0< Result >::operator()().