Public Types | Public Member Functions | List of all members
ecl::BinaryFunction< A1, A2, R > Class Template Referenceabstract

Virtual interface definition for binary function objects. More...

#include <function_objects.hpp>

Public Types

typedef A1 first_argument_type
 The first argument type. More...
 
typedef R result_type
 The result type. More...
 
typedef A2 second_argument_type
 The second argument type. More...
 

Public Member Functions

virtual result_type operator() (first_argument_type arg1, second_argument_type arg2)=0
 Virtual function call required by binary function objects. More...
 
virtual ~BinaryFunction ()
 

Detailed Description

template<typename A1, typename A2, typename R = void>
class ecl::BinaryFunction< A1, A2, R >

Virtual interface definition for binary function objects.

Virtual interface definition for binary function objects (i.e. functions that take a pair of arguments).

Template Parameters
R: the return type.
A1: the first argument type.
A2: the second argument type.
See also
FunctionObjects.

Definition at line 97 of file function_objects.hpp.

Member Typedef Documentation

template<typename A1, typename A2, typename R = void>
typedef A1 ecl::BinaryFunction< A1, A2, R >::first_argument_type

The first argument type.

Definition at line 100 of file function_objects.hpp.

template<typename A1, typename A2, typename R = void>
typedef R ecl::BinaryFunction< A1, A2, R >::result_type

The result type.

Definition at line 99 of file function_objects.hpp.

template<typename A1, typename A2, typename R = void>
typedef A2 ecl::BinaryFunction< A1, A2, R >::second_argument_type

The second argument type.

Definition at line 101 of file function_objects.hpp.

Constructor & Destructor Documentation

template<typename A1, typename A2, typename R = void>
virtual ecl::BinaryFunction< A1, A2, R >::~BinaryFunction ( )
inlinevirtual

Definition at line 110 of file function_objects.hpp.

Member Function Documentation

template<typename A1, typename A2, typename R = void>
virtual result_type ecl::BinaryFunction< A1, A2, R >::operator() ( first_argument_type  arg1,
second_argument_type  arg2 
)
pure virtual

Virtual function call required by binary function objects.

Virtual function call required by binary function objects.

Parameters
arg1: the first argument.
arg2: the second argument.Virtual function call required by binary function objects.

Implemented in ecl::PartiallyBoundBinaryMemberFunction< C, A, B, R >, ecl::UnaryMemberFunction< C, A, void >, and ecl::UnaryMemberFunction< C, A, R >.


The documentation for this class was generated from the following file:


ecl_utilities
Author(s): Daniel Stonier
autogenerated on Mon Jun 10 2019 13:08:28