Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages | Examples

ArGlobalRetFunctor< Ret > Class Template Reference

#include <ArFunctor.h>

Inheritance diagram for ArGlobalRetFunctor< Ret >:

ArRetFunctor< Ret > ArFunctor List of all members.

Detailed Description

template<class Ret>
class ArGlobalRetFunctor< Ret >

Functor for a global function with return value.

This is a class for global functions which 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.

Examples:

soundsQueueExample.cpp.


Public Member Functions

 ArGlobalRetFunctor (Ret(*func)(void))
 Constructor - supply function pointer.
 ArGlobalRetFunctor ()
 Constructor.
virtual Ret invokeR (void)
 Invokes the functor with return value.
virtual ~ArGlobalRetFunctor ()
 Destructor.

Protected Attributes

Ret(* myFunc )(void)


Constructor & Destructor Documentation

template<class Ret>
ArGlobalRetFunctor< Ret >::ArGlobalRetFunctor Ret(*)(void)  func  )  [inline]
 

Constructor - supply function pointer.

Parameters:
func global function pointer


The documentation for this class was generated from the following file:
Generated on Thu Jan 7 10:34:41 2010 for Aria by  doxygen 1.4.2