CMS 3D CMS Logo

Public Types | Public Member Functions

npstat::Functor2< Result, Arg1, Arg2 > Struct Template Reference

#include <SimpleFunctors.h>

Inheritance diagram for npstat::Functor2< Result, Arg1, Arg2 >:
npstat::DefaultConstructor2< Result, Arg1, Arg2 > npstat::FcnFunctor2< Result, Arg1, Arg2 >

List of all members.

Public Types

typedef Arg1 first_argument_type
typedef Result result_type
typedef Arg2 second_argument_type

Public Member Functions

virtual Result operator() (const Arg1 &, const Arg2 &) const =0
virtual ~Functor2 ()

Detailed Description

template<typename Result, typename Arg1, typename Arg2>
struct npstat::Functor2< Result, Arg1, Arg2 >

Base class for a functor that takes two arguments

Definition at line 39 of file SimpleFunctors.h.


Member Typedef Documentation

template<typename Result , typename Arg1 , typename Arg2 >
typedef Arg1 npstat::Functor2< Result, Arg1, Arg2 >::first_argument_type

Definition at line 42 of file SimpleFunctors.h.

template<typename Result , typename Arg1 , typename Arg2 >
typedef Result npstat::Functor2< Result, Arg1, Arg2 >::result_type

Definition at line 41 of file SimpleFunctors.h.

template<typename Result , typename Arg1 , typename Arg2 >
typedef Arg2 npstat::Functor2< Result, Arg1, Arg2 >::second_argument_type

Definition at line 43 of file SimpleFunctors.h.


Constructor & Destructor Documentation

template<typename Result , typename Arg1 , typename Arg2 >
virtual npstat::Functor2< Result, Arg1, Arg2 >::~Functor2 ( ) [inline, virtual]

Definition at line 45 of file SimpleFunctors.h.

{}

Member Function Documentation

template<typename Result , typename Arg1 , typename Arg2 >
virtual Result npstat::Functor2< Result, Arg1, Arg2 >::operator() ( const Arg1 &  ,
const Arg2 &   
) const [pure virtual]