Main Page   Class Hierarchy   Compound List   Compound Members  

ArGlobalRetFunctor1 Class Template Reference

Functor for a global function with 1 parameter and return value. More...

#include <ArFunctor.h>

Inheritance diagram for ArGlobalRetFunctor1::

ArRetFunctor1 ArRetFunctor ArFunctor List of all members.

Public Methods

 ArGlobalRetFunctor1 (void)
 Constructor.

 ArGlobalRetFunctor1 (Ret(*func)(P1))
 Constructor - supply function pointer. More...

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

virtual ~ArGlobalRetFunctor1 (void)
 Destructor.

virtual Ret invokeR (void)
 Invokes the functor with return value.

virtual Ret invokeR (P1 p1)
 Invokes the functor with return value. More...

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


Detailed Description

template<class Ret, class P1>
class ArGlobalRetFunctor1< Ret, P1 >

Functor for a global function with 1 parameter and return value.

This is a class for global functions which take 1 parameter and return a value. 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 Ret, class P1>
ArGlobalRetFunctor1< Ret, P1 >::ArGlobalRetFunctor1 Ret(*    func)(P1) [inline]
 

Constructor - supply function pointer.

Parameters:
func  global function pointer

template<class Ret, class P1>
ArGlobalRetFunctor1< Ret, P1 >::ArGlobalRetFunctor1 Ret(*    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 Ret, class P1>
virtual Ret ArGlobalRetFunctor1< Ret, P1 >::invokeR P1    p1 [inline, virtual]
 

Invokes the functor with return value.

Parameters:
p1  first parameter

Reimplemented from ArRetFunctor1.

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