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 103 of file function_objects.hpp.

Member Typedef Documentation

◆ first_argument_type

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 108 of file function_objects.hpp.

◆ result_type

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

The result type.

Definition at line 107 of file function_objects.hpp.

◆ second_argument_type

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 109 of file function_objects.hpp.

Constructor & Destructor Documentation

◆ ~BinaryFunction()

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

Definition at line 118 of file function_objects.hpp.

Member Function Documentation

◆ operator()()

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::UnaryMemberFunction< C, A, void >, ecl::UnaryMemberFunction< C, A, R >, and ecl::PartiallyBoundBinaryMemberFunction< C, A, B, R >.


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


ecl_utilities
Author(s): Daniel Stonier
autogenerated on Sun Aug 2 2020 03:12:13