#include <Iguana/Utilities/classlib/utils/Range.h>
Public Member Functions | |
bool | contains (const Range< T > &other) const |
bool | contains (const T &value) const |
bool | containsStrictly (const Range< T > &other) const |
bool | empty (void) const |
void | high (const T &value) |
T | high (void) const |
Range | intersection (const Range &other) const |
bool | intersects (const Range &other) const |
void | low (const T &value) |
T | low (void) const |
Range (const T &x, const T &y) | |
Range (void) | |
T | width (void) const |
Private Attributes | |
T | m_high |
T | m_low |
Definition at line 18 of file Range.h.
lat::Range< T >::Range | ( | void | ) | [inline] |
lat::Range< T >::Range | ( | const T & | x, | |
const T & | y | |||
) | [inline] |
bool lat::Range< T >::contains | ( | const Range< T > & | other | ) | const [inline] |
Definition at line 107 of file Range.h.
References lat::Range< T >::m_high, and lat::Range< T >::m_low.
bool lat::Range< T >::contains | ( | const T & | value | ) | const [inline] |
Definition at line 103 of file Range.h.
References lat::Range< T >::m_high, and lat::Range< T >::m_low.
bool lat::Range< T >::containsStrictly | ( | const Range< T > & | other | ) | const [inline] |
Definition at line 111 of file Range.h.
References lat::Range< T >::m_high, and lat::Range< T >::m_low.
bool lat::Range< T >::empty | ( | void | ) | const [inline] |
Definition at line 83 of file Range.h.
References lat::Range< T >::m_high, and lat::Range< T >::m_low.
void lat::Range< T >::high | ( | const T & | value | ) | [inline] |
T lat::Range< T >::high | ( | void | ) | const [inline] |
Definition at line 95 of file Range.h.
References lat::Range< T >::m_high.
Referenced by lat::Sequence< T >::limits(), and lat::operator==().
00096 { return m_high; }
Range< T > lat::Range< T >::intersection | ( | const Range< T > & | other | ) | const [inline] |
Definition at line 119 of file Range.h.
References lat::Range< T >::m_high, lat::Range< T >::m_low, lat::MakeRange(), max, and min.
00120 { return MakeRange (std::min (m_high, std::max (m_low, other.m_low)), 00121 std::min (m_high, other.m_high)); }
bool lat::Range< T >::intersects | ( | const Range< T > & | other | ) | const [inline] |
Definition at line 115 of file Range.h.
References lat::Range< T >::m_high, and lat::Range< T >::m_low.
void lat::Range< T >::low | ( | const T & | value | ) | [inline] |
T lat::Range< T >::low | ( | void | ) | const [inline] |
Definition at line 87 of file Range.h.
References lat::Range< T >::m_low.
Referenced by lat::Sequence< T >::limits(), and lat::operator==().
00088 { return m_low; }
T lat::Range< T >::width | ( | void | ) | const [inline] |
Definition at line 79 of file Range.h.
References lat::Range< T >::m_high, and lat::Range< T >::m_low.
T lat::Range< T >::m_high [private] |
Definition at line 42 of file Range.h.
Referenced by lat::Range< T >::contains(), lat::Range< T >::containsStrictly(), lat::Range< T >::empty(), lat::Range< T >::high(), lat::Range< T >::intersection(), lat::Range< T >::intersects(), and lat::Range< T >::width().
T lat::Range< T >::m_low [private] |
Definition at line 41 of file Range.h.
Referenced by lat::Range< T >::contains(), lat::Range< T >::containsStrictly(), lat::Range< T >::empty(), lat::Range< T >::intersection(), lat::Range< T >::intersects(), lat::Range< T >::low(), and lat::Range< T >::width().