Main Page   Class Hierarchy   Compound List   Compound Members  

ArFunctor1C Class Template Reference

Functor for a member function with 1 parameter. More...

#include <ArFunctor.h>

Inheritance diagram for ArFunctor1C::

ArFunctor1 ArFunctor List of all members.

Public Methods

 ArFunctor1C (void)
 Constructor.

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

 ArFunctor1C (T &obj, void(T::*func)(P1), P1 p1)
 Constructor - supply function pointer, default parameters. More...

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

 ArFunctor1C (T *obj, void(T::*func)(P1), P1 p1)
 Constructor - supply function pointer, default parameters. More...

virtual ~ArFunctor1C (void)
 Destructor.

virtual void invoke (void)
 Invokes the functor.

virtual void invoke (P1 p1)
 Invokes the functor. More...

virtual void operator() ()
 Invokes the functor.

virtual void operator() (P1 p1)
 Invokes the functor. More...

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

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

virtual void setP1 (P1 p1)
 Set the default parameter. More...


Detailed Description

template<class T, class P1>
class ArFunctor1C< T, P1 >

Functor for a member function with 1 parameter.

This is a class for member functions which take 1 parameter. 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, class P1>
ArFunctor1C< T, P1 >::ArFunctor1C T &    obj,
void(T::*    func)(P1)
[inline]
 

Constructor - supply function pointer.

Parameters:
func  member function pointer

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

Constructor - supply function pointer, default parameters.

Parameters:
func  member function pointer
p1  default first parameter

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

Constructor - supply function pointer.

Parameters:
func  member function pointer

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

Constructor - supply function pointer, default parameters.

Parameters:
func  member function pointer
p1  default first parameter


Member Function Documentation

template<class T, class P1>
virtual void ArFunctor1C< T, P1 >::invoke P1    p1 [inline, virtual]
 

Invokes the functor.

Parameters:
p1  first parameter

Reimplemented from ArFunctor1.

template<class T, class P1>
virtual void ArFunctor1C< T, P1 >::operator() P1    p1 [inline, virtual]
 

Invokes the functor.

Parameters:
p1  first parameter

Reimplemented from ArFunctor1.

template<class T, class P1>
virtual void ArFunctor1C< T, P1 >::setP1 P1    p1 [inline, virtual]
 

Set the default parameter.

Parameters:
p1  default first parameter

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

Set the 'this' pointer.

Parameters:
obj  the 'this' pointer

template<class T, class P1>
virtual void ArFunctor1C< T, P1 >::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:53 2002 for Aria by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001