#include <datatypes_AMOS.hh>
Public Member Functions | |
Range_t () | |
Constructs an empty Range_t object. | |
Range_t (const Range_t &source) | |
Copy constructor. | |
Range_t (Pos_t b, Pos_t e) | |
Constructs a Range_t object. | |
~Range_t () | |
Destroys a Range_t object. | |
void | clear () |
Clears the range to an empty range [0,0). | |
Pos_t | getBegin () const |
Get the beginning of the range. | |
Pos_t | getLo () const |
Get the lo range position, (begin < end ? begin : end). | |
Pos_t | getHi () const |
Get the hi range position, (begin > end ? begin : end). | |
Pos_t | getEnd () const |
Get the end of the range. | |
Size_t | getLength () const |
Get the length of the range. | |
bool | isReverse () const |
Returns true if begin > end, otherwise false. | |
void | setBegin (Pos_t b) |
Set the beginning of the range. | |
void | setEnd (Pos_t e) |
Set the end of the range. | |
void | setRange (Pos_t b, Pos_t e) |
Set the whole range. | |
void | swap () |
Exchange the beginning and end of the range. | |
Public Attributes | |
Pos_t | begin |
The begin of the range. | |
Pos_t | end |
The end of the range. |
A range of values defined by the start and end gap numbers that bracket the requested values with gap counting starting at 0 (the gap before the first value). The minimum value points to the leftmost value in the list, while the maximum value points to one after the rightmost value in the list. For example, the range [2,5) for the list 0,1,2,3,4,5,6 would define the sublist 2,3,4. Reversed ranges are also allowed, for example (5,2] would define the subset 4,3,2.
Definition at line 120 of file datatypes_AMOS.hh.
|
Constructs an empty Range_t object. Sets begin and end to zero, thus creating a zero length range Definition at line 132 of file datatypes_AMOS.hh. References clear(). |
|
Copy constructor.
|
|
Constructs a Range_t object. Sets begin and end to the parameter values
References begin, end, and AMOS::Pos_t. |
|
Destroys a Range_t object. Definition at line 167 of file datatypes_AMOS.hh. |
|
Clears the range to an empty range [0,0). Definition at line 176 of file datatypes_AMOS.hh. Referenced by Range_t(). |
|
Get the beginning of the range. Definition at line 185 of file datatypes_AMOS.hh. References begin, and AMOS::Pos_t. |
|
Get the end of the range. Definition at line 212 of file datatypes_AMOS.hh. References end, and AMOS::Pos_t. |
|
Get the hi range position, (begin > end ? begin : end). Definition at line 203 of file datatypes_AMOS.hh. References begin, end, and AMOS::Pos_t. |
|
Get the length of the range.
References begin, end, and AMOS::Size_t. |
|
Get the lo range position, (begin < end ? begin : end). Definition at line 194 of file datatypes_AMOS.hh. References begin, end, and AMOS::Pos_t. |
|
Returns true if begin > end, otherwise false.
|
|
Set the beginning of the range. Definition at line 243 of file datatypes_AMOS.hh. References begin, and AMOS::Pos_t. |
|
Set the end of the range. Definition at line 252 of file datatypes_AMOS.hh. References end, and AMOS::Pos_t. |
|
Set the whole range. Definition at line 261 of file datatypes_AMOS.hh. References begin, end, and AMOS::Pos_t. |
|
Exchange the beginning and end of the range. Definition at line 271 of file datatypes_AMOS.hh. References begin, end, and AMOS::Pos_t. |
|
The begin of the range. Definition at line 123 of file datatypes_AMOS.hh. Referenced by clear(), getBegin(), getHi(), getLength(), getLo(), isReverse(), AMOS::operator<<(), Range_t(), setBegin(), setRange(), and swap(). |
|
The end of the range. Definition at line 124 of file datatypes_AMOS.hh. Referenced by clear(), getEnd(), getHi(), getLength(), getLo(), isReverse(), AMOS::operator<<(), Range_t(), setEnd(), setRange(), and swap(). |