Main Page   Class Hierarchy   Compound List   Compound Members  

ArRetFunctor2 Class Template Reference

Base class for functors with a return value with 2 parameters. More...

#include <ArFunctor.h>

Inheritance diagram for ArRetFunctor2::

ArRetFunctor ArFunctor ArGlobalRetFunctor2 ArRetFunctor2C List of all members.

Public Methods

virtual ~ArRetFunctor2 (void)
 Destructor.

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

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

virtual Ret invokeR (P1 p1, P2 p2)=0
 Invokes the functor with return value. More...


Detailed Description

template<class Ret, class P1, class P2>
class ArRetFunctor2< Ret, P1, P2 >

Base class for functors with a return value with 2 parameters.

This is the base class for functors with a return value and take 2 parameters. Code that has a reference to a functor that returns a value and takes 2 parameters should use this class name. This allows the code to know how to invoke the functor without knowing which class the member function is in.

For an overall description of functors, see ArFunctor.


Member Function Documentation

template<class Ret, class P1, class P2>
virtual Ret ArRetFunctor2< Ret, P1, P2 >::invokeR P1    p1,
P2    p2
[pure virtual]
 

Invokes the functor with return value.

Parameters:
p1  first parameter
p2  second parameter

Reimplemented in ArGlobalRetFunctor2, and ArRetFunctor2C.

template<class Ret, class P1, class P2>
virtual Ret ArRetFunctor2< Ret, P1, P2 >::invokeR P1    p1 [pure virtual]
 

Invokes the functor with return value.

Parameters:
p1  first parameter

Reimplemented in ArGlobalRetFunctor2, and ArRetFunctor2C.


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