vrecko
virtual reality framework
|
#include <Interval.h>
Public Member Functions | |
Interval (tref lowerBound, tref upperBound) | |
Interval (tref lowerBound, tref upperBound, bool lowerInclusive, bool upperInclusive) | |
tref | getLowerBound () const |
tref | getUpperBound () const |
bool | isLowerInclusive () const |
bool | isUpperInclusive () const |
bool | includesValue (tref value) const |
Public Member Functions inherited from vrecko::Range | |
bool | isInterval () const |
bool | isEnumeration () const |
Additional Inherited Members | |
Public Types inherited from vrecko::Range | |
enum | RangeType { RANGE_INTERVAL, RANGE_ENUMERATION } |
Protected Member Functions inherited from vrecko::Range | |
Range (RangeType rangeType) | |
Range (const Range &range) | |
Represents an immutable interval.
This class uses templates. Specialized classes are prepared for int, long, float and double data types. No other specializations should be used. Specialized classes are listed below definition of this class.
tval | data type used for values storage |
tref | data type used for arguments and results passing |
|
inline |
Constructs an implicitly closed Interval object.
lowerBound | value of the lower bound of the interval |
upperBound | value of the upper bound of the interval |
|
inline |
Constructs an Interval object.
lowerBound | value of the lower bound of the interval |
upperBound | value of the upper bound of the interval |
lowerInclusive | inclusion flag for the lower bound |
upperInclusive | inclusion flag for the upper bound |
|
inline |
Returns the lower bound.
|
inline |
Returns the upper bound.
|
inline |
"Includes value" predicate.
value | value to be checked |
|
inline |
"Is lower inclusive" predicate.
|
inline |
"Is upper inclusive" predicate.