Main Page   Class Hierarchy   Compound List   Compound Members  

ArGlobalFunctor1 Class Template Reference

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

#include <ArFunctor.h>

Inheritance diagram for ArGlobalFunctor1::

ArFunctor1 ArFunctor List of all members.

Public Methods

 ArGlobalFunctor1 (void)
 Constructor.

 ArGlobalFunctor1 (void(*func)(P1))
 Constructor - supply function pointer. More...

 ArGlobalFunctor1 (void(*func)(P1), P1 p1)
 Constructor - supply function pointer, default parameters. More...

virtual ~ArGlobalFunctor1 (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 setP1 (P1 p1)
 Set the default parameter. More...


Detailed Description

template<class P1>
class ArGlobalFunctor1< P1 >

Functor for a global function with 1 parameter.

This is a class for global functions which take 1 parameter. This ties a C style function pointer into the functor class hierarchy as a convience. Code that has a reference to this class and treat it as an ArFunctor can use it like any other functor.

For an overall description of functors, see ArFunctor.


Constructor & Destructor Documentation

template<class P1>
ArGlobalFunctor1< P1 >::ArGlobalFunctor1 void(*    func)(P1) [inline]
 

Constructor - supply function pointer.

Parameters:
func  global function pointer

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

Constructor - supply function pointer, default parameters.

Parameters:
func  global function pointer
p1  default first parameter


Member Function Documentation

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

Invokes the functor.

Parameters:
p1  first parameter

Reimplemented from ArFunctor1.

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

Invokes the functor.

Parameters:
p1  first parameter

Reimplemented from ArFunctor1.

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

Set the default parameter.

Parameters:
p1  default first parameter


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