CMS 3D CMS Logo

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 ()=delete
 

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 120 of file SimpleFunctors.h.

Constructor & Destructor Documentation

◆ FcnFunctor0() [1/2]

template<typename Result >
npstat::FcnFunctor0< Result >::FcnFunctor0 ( Result(*)()  fcn)
inlineexplicit

Definition at line 121 of file SimpleFunctors.h.

121 : fcn_(fcn) {}

◆ FcnFunctor0() [2/2]

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

Member Function Documentation

◆ operator()()

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

Implements npstat::Functor0< Result >.

Definition at line 123 of file SimpleFunctors.h.

123 { return fcn_(); }

References npstat::FcnFunctor0< Result >::fcn_.

Member Data Documentation

◆ fcn_

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

Definition at line 127 of file SimpleFunctors.h.

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

npstat::FcnFunctor0::fcn_
Result(* fcn_)()
Definition: SimpleFunctors.h:127
fcn
void fcn(int &, double *, double &, double *, int)
Definition: LASBarrelAlgorithm.cc:388