|
| | MinMax () |
| |
| | MinMax (float min, float max) |
| | Constructs a MinMax object which holds two value (min, max), and initializes the min value as the lowest numeric limit and the max value as the maximum numeric limit.
|
| |
| | MinMax (const MinMax &other) |
| |
| const float & | operator[] (int index) const |
| | Provides read-only access to the element at a specific index(position) within the MinMax object.
|
| |
| float & | operator[] (int index) |
| | Provides read-write access to the element at a specific index(position) within the MinMax object.
|
| |
| MinMax & | operator+= (const MinMax &other) |
| | Expands the current MinMax to emcompass the minimum and maximum value of the other MinMax.
|
| |
| MinMax & | operator+= (float value) |
| | Expands the current MinMax to emcompass the given value.
|
| |
| void | set (float min, float max) |
| | Sets the min and max value of this MinMax object.
|
| |
| float | min () const |
| | Gets the min value.
|
| |
| void | setMin (float min) |
| | Sets the min value.
|
| |
| float | max () const |
| | Gets the max value.
|
| |
| void | setMax (float max) |
| | Sets the max value.
|
| |
| bool | isValid () const |
| | Check if the MinMax is valid, which means that the minimum value should be less than or equal to the maximum value.
|
| |
| float | center () const |
| | Gets the mean value of the minimum and maximum values.
|
| |
| float | length () const |
| | Gets the extent of this MinMax.
|
| |
| bool | inRange (float value) const |
| | Check if a value is in the range of the MinMax.
|
| |
| | Tuple (int size) |
| | Constructs a Tuple object with a specified number of elements, and initialize all elements to 0.
|
| |
| virtual | ~Tuple () |
| |
| int | size () const |
| | Gets the number of elements of the Tuple.
|
| |
| float * | data () |
| | Gets the data array of the Tuple.
|
| |
| const float * | data () const |
| | Gets the data array of the Tuple, and the data could not be modified upon which this function is called.
|
| |
| void | setData (const float *data) |
| | Sets the data array of the Variant.
|
| |
| Tuple< float > & | operator= (const Tuple &other) |
| | Copys the data of another Tuple to the one on which the operator is invoked.
|
| |
| bool | operator== (const Tuple &other) const |
| | Compares the Tuple with another one, and returns true if they are equal, otherwise returns false.
|
| |
| bool | operator!= (const Tuple &other) const |
| | Compares the Tuple with another one, and returns false if they are equal, otherwise returns true.
|
| |
| | Variant () |
| |
| virtual | ~Variant () |
| |
| const std::string & | type () const |
| |
The MinMax class inherits from Tuple, specilizing the template parameters to float for element type.