Template class for evaluating interpolated values between a start and end value. More...
#include <TypeEvaluator.h>
Public Member Functions | |
| TypeEvaluator () | |
| Default constructor. | |
| TypeEvaluator (T start, T end) | |
| Constructor initializing the start and end values. | |
| void | setRange (T start, T end) |
| Sets the range for the interpolation. | |
| void | copy (const TypeEvaluator< T > *src) |
| Copies the properties of another TypeEvaluator. | |
| T | evaluate (float fraction) const |
| Evaluates the interpolated value between the start and end values. | |
Public Member Functions inherited from TObjRefImpl< IObjRef > | |
| TObjRefImpl () | |
| Constructor that initializes the reference count to 1. | |
| virtual | ~TObjRefImpl () |
| Virtual destructor. | |
| long | AddRef () override |
| Increments the reference count. | |
| long | Release () override |
| Decrements the reference count and deletes the object if the count reaches zero. | |
| void | OnFinalRelease () override |
| Deletes the object. | |
Public Member Functions inherited from IObjRef | |
| long | AddRef () PURE |
| Increases the reference count. | |
| long | Release () PURE |
| Decreases the reference count. | |
| void | OnFinalRelease () PURE |
| Called when the reference count reaches zero and the object is about to be released. | |
Public Attributes | |
| T | mStart |
| Starting value for the interpolation. | |
| T | mEnd |
| Ending value for the interpolation. | |
Additional Inherited Members | |
Protected Attributes inherited from TObjRefImpl< IObjRef > | |
| LONG | m_cRef |
| Reference count. | |
Template class for evaluating interpolated values between a start and end value.
| T | The type of the values to evaluate. |
Definition at line 40 of file TypeEvaluator.h.
|
inline |
Default constructor.
Definition at line 56 of file TypeEvaluator.h.
|
inline |
Constructor initializing the start and end values.
| start | The starting value. |
| end | The ending value. |
Definition at line 65 of file TypeEvaluator.h.
|
inline |
Copies the properties of another TypeEvaluator.
| src | The source TypeEvaluator to copy from. |
Definition at line 86 of file TypeEvaluator.h.
|
inline |
Evaluates the interpolated value between the start and end values.
| fraction | The fraction from the starting to the ending values. |
Definition at line 97 of file TypeEvaluator.h.
|
inline |
Sets the range for the interpolation.
| start | The starting value. |
| end | The ending value. |
Definition at line 76 of file TypeEvaluator.h.
| T TypeEvaluator< T >::mEnd |
Ending value for the interpolation.
Definition at line 50 of file TypeEvaluator.h.
| T TypeEvaluator< T >::mStart |
Starting value for the interpolation.
Definition at line 45 of file TypeEvaluator.h.