Public Member Functions | Private Attributes
ecl::BoundNullaryMemberFunction< C, void > Class Template Reference

Specialisation of the bound nullary member function for void functions. More...

#include <function_objects.hpp>

Inheritance diagram for ecl::BoundNullaryMemberFunction< C, void >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 BoundNullaryMemberFunction (void(C::*function)(), C &class_object)
 Binds a unary member function and creates a nullary function object.
void operator() ()
 This ensures any children objects are deleted correctly.
virtual ~BoundNullaryMemberFunction ()

Private Attributes

C & member_class
void(C::* member_function )()

Detailed Description

template<typename C>
class ecl::BoundNullaryMemberFunction< C, void >

Specialisation of the bound nullary member function for void functions.

Binds the class instance for a nullary member function and uses this to construct a nullary function object. This is the specialisation for nullary member functions with void return type.

Template Parameters:
C: the member function's class type.
See also:
ecl::utilities::BoundNullaryMemberFunction, generateFunctionObject, FunctionObjects.

Definition at line 628 of file function_objects.hpp.


Constructor & Destructor Documentation

template<typename C >
ecl::BoundNullaryMemberFunction< C, void >::BoundNullaryMemberFunction ( void(C::*)()  function,
C &  class_object 
) [inline]

Binds a unary member function and creates a nullary function object.

Accepts the function pointer and class instance, binds them and creates a nullary function object.

Parameters:
function: the void member function.
class_object: the member function's class instance.

Definition at line 638 of file function_objects.hpp.

template<typename C >
virtual ecl::BoundNullaryMemberFunction< C, void >::~BoundNullaryMemberFunction ( ) [inline, virtual]

Definition at line 643 of file function_objects.hpp.


Member Function Documentation

template<typename C >
void ecl::BoundNullaryMemberFunction< C, 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 member function.

Implements ecl::NullaryFunction< void >.

Definition at line 649 of file function_objects.hpp.


Member Data Documentation

template<typename C >
C& ecl::BoundNullaryMemberFunction< C, void >::member_class [private]

Definition at line 652 of file function_objects.hpp.

template<typename C >
void(C::* ecl::BoundNullaryMemberFunction< C, void >::member_function)() [private]

Definition at line 653 of file function_objects.hpp.


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


ecl_utilities
Author(s): Daniel Stonier
autogenerated on Thu Jun 6 2019 21:17:40