CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions
npstat::Functor2< Result, Arg1, Arg2 > Struct Template Referenceabstract

#include <SimpleFunctors.h>

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

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

Member Typedef Documentation

◆ first_argument_type

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

Definition at line 39 of file SimpleFunctors.h.

◆ result_type

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

Definition at line 38 of file SimpleFunctors.h.

◆ second_argument_type

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

Definition at line 40 of file SimpleFunctors.h.

Constructor & Destructor Documentation

◆ ~Functor2()

template<typename Result , typename Arg1 , typename Arg2 >
virtual npstat::Functor2< Result, Arg1, Arg2 >::~Functor2 ( )
inlinevirtual

Definition at line 42 of file SimpleFunctors.h.

42 {}

Member Function Documentation

◆ operator()()

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