Template Class UnaryFunctionCopy
Defined in File function_objects.hpp
Inheritance Relationships
Base Type
public ecl::UnaryFunction< T, void >
(Template Class UnaryFunction)
Class Documentation
-
template<typename FunctionObject, typename T, typename Result = void>
class UnaryFunctionCopy : public ecl::UnaryFunction<T, void> Create a UnaryFunction object composited from an existing function object.
Takes a unary function object (strictly by definition) and creates a UnaryFunction child object. This is useful in utilising the inheritance from UnaryFunction (needed for slots and similar classes).
See also
FunctionObjects.
- Template Parameters:
FunctionObject – : type of the function object to be wrapped.
T – : the unary data type.
R – : the return type.
Public Functions
-
inline UnaryFunctionCopy(const FunctionObject &f_o)
UnaryFunction child constructor for unary function objects.
Creates a child of the UnaryFunction class by copying a unary function object (one that is purely by definition).
- Parameters:
f_o – : the function object to be assigned to the UnaryFunction child.
-
inline virtual ~UnaryFunctionCopy()