#include <common.h>
Public Member Functions | |
| ValueRange (int low, int high) | |
| Constructor. | |
| bool | operator< (ValueRange r) const |
| Compare this range to another. | |
| int | difference () const |
| Compute the difference between the two range values. | |
| bool | inRange (int val, bool inclusive=true) const |
| See if a value is in this range. | |
| int | getLowValue () const |
| Get the lower value. | |
| int | getHighValue () const |
| Get the higher value. | |
Private Attributes | |
| int | m_Low |
| int | m_High |
| ValueRange::ValueRange | ( | int | low, | |
| int | high | |||
| ) | [inline] |
Constructor.
| low | The lesser value | |
| high | The greater value |
| bool ValueRange::operator< | ( | ValueRange | r | ) | const [inline] |
Compare this range to another.
| int ValueRange::difference | ( | ) | const [inline] |
Compute the difference between the two range values.
| bool ValueRange::inRange | ( | int | val, | |
| bool | inclusive = true | |||
| ) | const [inline] |
See if a value is in this range.
| val | The value to test | |
| inclusive | Flag whether or not to include the range values themselves |
| int ValueRange::getLowValue | ( | ) | const [inline] |
Get the lower value.
| int ValueRange::getHighValue | ( | ) | const [inline] |
Get the higher value.
1.5.3