Aria  2.8.0
ArRetFunctor< Ret > Class Template Referenceabstract

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

#include <ArFunctor.h>

Inherits ArFunctor.

Inherited by ArConstRetFunctorC< Ret, T >, ArGlobalRetFunctor< Ret >, ArRetFunctor1< Ret, P1 >, and ArRetFunctorC< Ret, T >.

Public Member Functions

virtual void invoke (void)
 Invokes the functor.
 
virtual Ret invokeR (void)=0
 Invokes the functor with return value.
 
virtual ~ArRetFunctor ()
 Destructor.
 
- Public Member Functions inherited from ArFunctor
virtual const char * getName (void)
 Gets the name of the functor.
 
virtual void setName (const char *name)
 Sets the name of the functor.
 
virtual void setNameVar (const char *name,...)
 Sets the name of the functor with formatting. More...
 
virtual ~ArFunctor ()
 Destructor.
 

Additional Inherited Members

- Protected Attributes inherited from ArFunctor
std::string myName
 

Detailed Description

template<class Ret>
class ArRetFunctor< Ret >

Base class for functors with a return value.

This is the base class for functors with a return value. Code that has a reference to a functor that returns a value 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.

Java Wrapper Library: To create the equivalent of ArRetFunctor<bool>, you can subclass ArRetFunctor_Bool and override invoke(bool)


The documentation for this class was generated from the following file: