CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | 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 >

Public Member Functions

 FcnFunctor0 (Result(*fcn)())
 
Result operator() () const
 
- Public Member Functions inherited from npstat::Functor0< Result >
virtual ~Functor0 ()
 

Private Member Functions

 FcnFunctor0 ()
 

Private Attributes

Result(* fcn_ )()
 

Additional Inherited Members

- Public Types inherited from npstat::Functor0< Result >
typedef Result result_type
 

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)
inlineexplicit

Definition at line 136 of file SimpleFunctors.h.

template<typename Result >
npstat::FcnFunctor0< Result >::FcnFunctor0 ( )
private

Member Function Documentation

template<typename Result >
Result npstat::FcnFunctor0< Result >::operator() ( ) const
inlinevirtual

Implements npstat::Functor0< Result >.

Definition at line 138 of file SimpleFunctors.h.

Member Data Documentation

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

Definition at line 142 of file SimpleFunctors.h.