Public Types | Public Member Functions | List of all members
ecl::UnaryFunction< A, R > Class Template Referenceabstract

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

#include <function_objects.hpp>

Public Types

typedef A argument_type
 The first argument type. More...
 
typedef R result_type
 The result type. More...
 

Public Member Functions

virtual result_type operator() (argument_type arg)=0
 Virtual function call required by unary function objects. More...
 
virtual ~UnaryFunction ()
 

Detailed Description

template<typename A, typename R = void>
class ecl::UnaryFunction< A, R >

Virtual interface definition for unary function objects.

Virtual interface definition for unary function objects (i.e. functions that take a single arguments).

Template Parameters
A: the argument type.
R: the return type.
See also
FunctionObjects.

Definition at line 75 of file function_objects.hpp.

Member Typedef Documentation

◆ argument_type

template<typename A , typename R = void>
typedef A ecl::UnaryFunction< A, R >::argument_type

The first argument type.

Definition at line 80 of file function_objects.hpp.

◆ result_type

template<typename A , typename R = void>
typedef R ecl::UnaryFunction< A, R >::result_type

The result type.

Definition at line 79 of file function_objects.hpp.

Constructor & Destructor Documentation

◆ ~UnaryFunction()

template<typename A , typename R = void>
virtual ecl::UnaryFunction< A, R >::~UnaryFunction ( )
inlinevirtual

Definition at line 86 of file function_objects.hpp.

Member Function Documentation

◆ operator()()

template<typename A , typename R = void>
virtual result_type ecl::UnaryFunction< A, R >::operator() ( argument_type  arg)
pure virtual

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