GUI::GenericFunctor< base_class_t, return_t, argument_t > Class Template Reference

Generic class for functor object. More...

#include <Functors.h>

Inheritance diagram for GUI::GenericFunctor< base_class_t, return_t, argument_t >:

GUI::AbstractFunctor< return_t, argument_t > GUI::EventHandler< class_t > List of all members.

Public Member Functions

 GenericFunctor (base_class_t *obj_ptr, return_t(base_class_t::*function_ptr)(argument_t))
 Contruct a new GenericFunctor.
virtual return_t operator() (argument_t arg)
 Execute member function.
virtual return_t execute (argument_t arg)
 Execute member function.

Detailed Description

template<class base_class_t, class return_t, class argument_t>
class GUI::GenericFunctor< base_class_t, return_t, argument_t >

Generic class for functor object.

Parameters:
base_class_t class of the member function
return_t return type of the member function
argument_T argument type of the member function


Constructor & Destructor Documentation

template<class base_class_t, class return_t, class argument_t>
GUI::GenericFunctor< base_class_t, return_t, argument_t >::GenericFunctor ( base_class_t *  obj_ptr,
return_t(base_class_t::*)(argument_t)  function_ptr 
) [inline, explicit]

Contruct a new GenericFunctor.

Parameters:
obj_ptr pointer to the object
function_ptr pointer to the desired member function


Member Function Documentation

template<class base_class_t, class return_t, class argument_t>
virtual return_t GUI::GenericFunctor< base_class_t, return_t, argument_t >::execute ( argument_t  arg  )  [inline, virtual]

Execute member function.

Parameters:
arg Argument of the function

Implements GUI::AbstractFunctor< return_t, argument_t >.

template<class base_class_t, class return_t, class argument_t>
virtual return_t GUI::GenericFunctor< base_class_t, return_t, argument_t >::operator() ( argument_t  arg  )  [inline, virtual]

Execute member function.

Parameters:
arg Argument of the function

Implements GUI::AbstractFunctor< return_t, argument_t >.


The documentation for this class was generated from the following file:
Generated on Wed Nov 15 22:21:10 2006 for Win32 by  doxygen 1.4.7