h o m e d o c u m e n t a t i o n c l a s s h i e r a r c h y

UnaryFunction0D Class Template Reference

#include <Functions0D.h>

Inheritance diagram for UnaryFunction0D:

CurveNatureF0D List of all members.

Detailed Description

template<class T>
class UnaryFunction0D< T >

Base class for Unary Functions (functors) working on Interface0DIterator. A unary function will be used by calling its operator() on an Interface0DIterator.
Attention:
In the scripting language, there exists several prototypes depending on the returned value type. For example, you would inherit from a UnaryFunction0DDouble if you wish to define a function that returns a double. The different existing prototypes are:
  • UnaryFunction0DVoid
  • UnaryFunction0DUnsigned
  • UnaryFunction0DReal
  • UnaryFunction0DFloat
  • UnaryFunction0DDouble
  • UnaryFunction0DVec2f
  • UnaryFunction0DVec3f


Public Types

typedef T ReturnedValueType

Public Member Functions

 UnaryFunction0D ()
virtual ~UnaryFunction0D ()
virtual string getName () const
virtual T operator() (Interface0DIterator &iter)

Member Typedef Documentation

typedef T ReturnedValueType

The type of the value returned by the functor.


Constructor & Destructor Documentation

UnaryFunction0D (  )  [inline]

Default constructor.

virtual ~UnaryFunction0D (  )  [inline, virtual]

Destructor;


Member Function Documentation

virtual string getName (  )  const [inline, virtual]

virtual T operator() ( Interface0DIterator iter  )  [inline, virtual]


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