Main Page   Class Hierarchy   Compound List   Compound Members  

ArFunctorC Class Template Reference

Functor for a member function. More...

#include <ArFunctor.h>

Inheritance diagram for ArFunctorC::

ArFunctor List of all members.

Public Methods

 ArFunctorC (void)
 Constructor.

 ArFunctorC (T &obj, void(T::*func)(void))
 Constructor - supply function pointer. More...

 ArFunctorC (T *obj, void(T::*func)(void))
 Constructor - supply function pointer. More...

virtual ~ArFunctorC (void)
 Destructor.

virtual void invoke (void)
 Invokes the functor.

virtual void operator() ()
 Invokes the functor.

virtual void setThis (T *obj)
 Set the 'this' pointer. More...

virtual void setThis (T &obj)
 Set the 'this' pointer. More...


Detailed Description

template<class T>
class ArFunctorC< T >

Functor for a member function.

This is a class for member functions. This class contains the knowledge on how to call a member function on a particular instance of a class. This class should be instantiated by code that wishes to pass off a functor to another piece of code.

For an overall description of functors, see ArFunctor.


Constructor & Destructor Documentation

template<class T>
ArFunctorC< T >::ArFunctorC T &    obj,
void(T::*    func)(void)
[inline]
 

Constructor - supply function pointer.

Parameters:
func  member function pointer

template<class T>
ArFunctorC< T >::ArFunctorC T *    obj,
void(T::*    func)(void)
[inline]
 

Constructor - supply function pointer.

Parameters:
func  member function pointer


Member Function Documentation

template<class T>
virtual void ArFunctorC< T >::setThis T &    obj [inline, virtual]
 

Set the 'this' pointer.

Parameters:
obj  the 'this' pointer

template<class T>
virtual void ArFunctorC< T >::setThis T *    obj [inline, virtual]
 

Set the 'this' pointer.

Parameters:
obj  the 'this' pointer


The documentation for this class was generated from the following file:
Generated on Tue Nov 12 17:43:54 2002 for Aria by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001