CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

npstat::FcnFunctor3< Result, Arg1, Arg2, Arg3 > Struct Template Reference

#include <SimpleFunctors.h>

Inheritance diagram for npstat::FcnFunctor3< Result, Arg1, Arg2, Arg3 >:
npstat::Functor3< Result, Arg1, Arg2, Arg3 >

List of all members.

Public Member Functions

 FcnFunctor3 (Result(*fcn)(Arg1, Arg2, Arg3))
Result operator() (const Arg1 &x, const Arg2 &y, const Arg3 &z) const

Private Member Functions

 FcnFunctor3 ()

Private Attributes

Result(* fcn_ )(Arg1, Arg2, Arg3)

Detailed Description

template<typename Result, typename Arg1, typename Arg2, typename Arg3>
struct npstat::FcnFunctor3< Result, Arg1, Arg2, Arg3 >

Adaptation for using three-argument functors with simple cmath-style functions. Do not use this struct as a base class.

Definition at line 183 of file SimpleFunctors.h.


Constructor & Destructor Documentation

template<typename Result , typename Arg1 , typename Arg2 , typename Arg3 >
npstat::FcnFunctor3< Result, Arg1, Arg2, Arg3 >::FcnFunctor3 ( Result(*)(Arg1, Arg2, Arg3)  fcn) [inline, explicit]

Definition at line 185 of file SimpleFunctors.h.

:fcn_(fcn) {}
template<typename Result , typename Arg1 , typename Arg2 , typename Arg3 >
npstat::FcnFunctor3< Result, Arg1, Arg2, Arg3 >::FcnFunctor3 ( ) [private]

Member Function Documentation

template<typename Result , typename Arg1 , typename Arg2 , typename Arg3 >
Result npstat::FcnFunctor3< Result, Arg1, Arg2, Arg3 >::operator() ( const Arg1 &  x,
const Arg2 &  y,
const Arg3 &  z 
) const [inline, virtual]

Member Data Documentation

template<typename Result , typename Arg1 , typename Arg2 , typename Arg3 >
Result(* npstat::FcnFunctor3< Result, Arg1, Arg2, Arg3 >::fcn_)(Arg1, Arg2, Arg3) [private]