A simple class containing value and position attributes. More...
Public Member Functions | |
float | Value (void) |
Return the value of the element. | |
int | Position (void) |
Return the position of the element. | |
void | setContent (int position1, float value1) |
Set the position and value of the element. | |
void | operator= (PositionElement< T > t) |
Assign the content of another element to this element. | |
Protected Attributes | |
int | position |
The position of the element. | |
float | value |
The value of the element. |
A simple class containing value and position attributes.
This class allows the user to store the value and position of an element, hence loosing the need to store items in a particular order.