each range value has a start and end point. Optionally range can be marked as Range::all(), which indicates a full range
More...
#include <dataobj.h>
each range value has a start and end point. Optionally range can be marked as Range::all(), which indicates a full range
start always indicates the first zero-based index of a range, end is the excluded index of the range, hence one item after the last item in the range.
◆ Range() [1/2]
empty constructor. start = end = 0
◆ Range() [2/2]
ito::Range::Range |
( |
int | _start, |
|
|
int | _end ) |
|
inline |
constructor with given start and end value
◆ all()
static Range ito::Range::all |
( |
| ) |
|
|
inlinestatic |
static method which returns a new Range object with full range
◆ empty()
bool ito::Range::empty |
( |
| ) |
const |
|
inline |
returns true if range is empty, that means if the start index is equal to the end index
◆ size()
unsigned int ito::Range::size |
( |
| ) |
const |
|
inline |
returns number of elements between the given range boundaries
◆ end
member, end-index (zero-based)
◆ start
member, start-index (zero-based)
The documentation for this class was generated from the following file:
- C:/Workspace/itom_development_VS2019_Qt5.15.2_x64/itomProject/itom/DataObject/dataobj.h