File range.hxx

class RangeIterator

Public Functions

RangeIterator()

Can be given a single range.

RangeIterator(int start, int end, RangeIterator *join = nullptr)
RangeIterator(int start, int end, const RangeIterator &join)
RangeIterator(const RangeIterator &r)
~RangeIterator()
void first()
void next()
bool isDone() const
int operator*()
RangeIterator &operator++()
RangeIterator operator++(int)
bool operator==(const RangeIterator &x) const
bool operator!=(const RangeIterator &x) const
bool intersects(const RangeIterator &other, bool all = true) const
bool intersects(int ind, bool all = true) const
RangeIterator &operator=(const RangeIterator &r)
RangeIterator &operator+=(const RangeIterator &r)
RangeIterator &operator-=(const RangeIterator &r)
int min() const
int max() const
RangeIterator *nextRange() const

Public Members

int ind

Public Static Functions

static RangeIterator end()

Private Members

int is = {1}
int ie = {0}
RangeIterator *n = {nullptr}
RangeIterator *cur = {nullptr}
int curend
bool delete_next = false