#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.
| AMOS::Range_t::Range_t | ( | ) | [inline] |
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().
| AMOS::Range_t::Range_t | ( | const Range_t & | source | ) | [inline] |
Copy constructor.
| source | The range to be copied |
Definition at line 143 of file datatypes_AMOS.hh.
Constructs a Range_t object.
Sets begin and end to the parameter values
| b | Construct value of begin | |
| e | Construct value of end |
Definition at line 157 of file datatypes_AMOS.hh.
| AMOS::Range_t::~Range_t | ( | ) | [inline] |
| void AMOS::Range_t::clear | ( | ) | [inline] |
Clears the range to an empty range [0,0).
Definition at line 176 of file datatypes_AMOS.hh.
Referenced by Range_t().
| Pos_t AMOS::Range_t::getBegin | ( | ) | const [inline] |
| Pos_t AMOS::Range_t::getEnd | ( | ) | const [inline] |
| Pos_t AMOS::Range_t::getHi | ( | ) | const [inline] |
Get the hi range position, (begin > end ? begin : end).
Definition at line 203 of file datatypes_AMOS.hh.
Referenced by AMOS::Sequence_t::getGCContent(), and AMOS::Contig_t::getGCContent().
| Size_t AMOS::Range_t::getLength | ( | ) | const [inline] |
Get the length of the range.
Definition at line 223 of file datatypes_AMOS.hh.
Referenced by AMOS::Tile_t::getRightOffset().
| Pos_t AMOS::Range_t::getLo | ( | ) | const [inline] |
Get the lo range position, (begin < end ? begin : end).
Definition at line 194 of file datatypes_AMOS.hh.
Referenced by AMOS::Sequence_t::getGCContent(), and AMOS::Contig_t::getGCContent().
| bool AMOS::Range_t::isReverse | ( | ) | const [inline] |
Returns true if begin > end, otherwise false.
Definition at line 234 of file datatypes_AMOS.hh.
Referenced by AMOS::TiledRead_t::TiledRead_t().
| void AMOS::Range_t::setBegin | ( | Pos_t | b | ) | [inline] |
| void AMOS::Range_t::setEnd | ( | Pos_t | e | ) | [inline] |
| void AMOS::Range_t::swap | ( | ) | [inline] |
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().
1.4.7