$search

ecl::BoundUnaryFreeFunction< A, void > Class Template Reference

Specialisation for bound void unary functions. More...

#include <function_objects.hpp>

Inheritance diagram for ecl::BoundUnaryFreeFunction< A, void >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 BoundUnaryFreeFunction (void(*function)(A), A a)
 Binds a unary function and creates a nullary function object.
void operator() ()
 This ensures any children objects are deleted correctly.
virtual ~BoundUnaryFreeFunction ()

Private Attributes

A argument
void(* free_function )(A)

Detailed Description

template<typename A>
class ecl::BoundUnaryFreeFunction< A, void >

Specialisation for bound void unary functions.

Specialises BoundUnaryFreeFunction for functions with no return type.

Template Parameters:
A : the type of the argument to be bound.
See also:
ecl::utilities::BoundUnaryFreeFunction, generateFunctionObject, FunctionObjects.

Definition at line 324 of file function_objects.hpp.


Constructor & Destructor Documentation

template<typename A >
ecl::BoundUnaryFreeFunction< A, void >::BoundUnaryFreeFunction ( void(*)(A function,
A  a 
) [inline]

Binds a unary function and creates a nullary function object.

Accepts both the function and a value for its single argument, binds them and creates a nullary function object.

Parameters:
function : the unary global/static function.
a : the argument to bind.

Definition at line 335 of file function_objects.hpp.

template<typename A >
virtual ecl::BoundUnaryFreeFunction< A, void >::~BoundUnaryFreeFunction (  )  [inline, virtual]

Definition at line 336 of file function_objects.hpp.


Member Function Documentation

template<typename A >
void ecl::BoundUnaryFreeFunction< A, void >::operator() (  )  [inline, virtual]

This ensures any children objects are deleted correctly.

A nullary function object call. Redirects the nullary function object call to the bound global/static function.

Returns:
void : the function's return value.

Implements ecl::NullaryFunction< void >.

Definition at line 344 of file function_objects.hpp.


Member Data Documentation

template<typename A >
A ecl::BoundUnaryFreeFunction< A, void >::argument [private]

Definition at line 348 of file function_objects.hpp.

template<typename A >
void(* ecl::BoundUnaryFreeFunction< A, void >::free_function)(A) [private]

Definition at line 347 of file function_objects.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends


ecl_utilities
Author(s): Daniel Stonier (d.stonier@gmail.com)
autogenerated on Fri Mar 1 15:21:00 2013