Iterator over range lists. More...
#include <ranges-list.hpp>
Classes | |
class | RangeList |
Range list class. More... | |
class | RLIO |
Shared object for allocation. More... | |
Public Member Functions | |
~RangeListIter (void) | |
Destructor. More... | |
Protected Member Functions | |
void | set (RangeList *l) |
Set range lists. More... | |
RangeList * | get (void) const |
Get head of current range list. More... | |
RangeList * | range (int min, int max, RangeList *&f) |
Create new range possibly from freelist f and init. More... | |
RangeList * | range (int min, int max) |
Create new range possibly and init. More... | |
template<class I > | |
RangeList * | range (I &i, RangeList *&f) |
Create new range possibly from freelist f and init. More... | |
template<class I > | |
RangeList * | range (I &i) |
Create new range possibly and init. More... | |
template<class I > | |
RangeList * | copy (I &i) |
Copy the iterator i to a range list. More... | |
Protected Attributes | |
RLIO * | rlio |
Reference to shared object. More... | |
RangeList * | h |
Head of range list. More... | |
RangeList * | c |
Current list element. More... | |
Constructors and initialization | |
RangeListIter (void) | |
Default constructor. More... | |
RangeListIter (const RangeListIter &i) | |
Copy constructor. More... | |
RangeListIter (Region &r) | |
Initialize. More... | |
void | init (Region &r) |
Initialize. More... | |
RangeListIter & | operator= (const RangeListIter &i) |
Assignment operator. More... | |
Iteration control | |
bool | operator() (void) const |
Test whether iterator is still at a range or done. More... | |
void | operator++ (void) |
Move iterator to next range (if possible) More... | |
void | reset (void) |
Reset iterator to start. More... | |
Range access | |
int | min (void) const |
Return smallest value of range. More... | |
int | max (void) const |
Return largest value of range. More... | |
unsigned int | width (void) const |
Return width of range (distance between minimum and maximum) More... | |
Iterator over range lists.
Definition at line 45 of file ranges-list.hpp.
|
inline |
Default constructor.
Definition at line 132 of file ranges-list.hpp.
|
inline |
Copy constructor.
Definition at line 146 of file ranges-list.hpp.
|
inline |
Initialize.
Definition at line 136 of file ranges-list.hpp.
|
inline |
Destructor.
Definition at line 169 of file ranges-list.hpp.
|
inlineprotected |
Set range lists.
Definition at line 179 of file ranges-list.hpp.
|
inlineprotected |
Get head of current range list.
Definition at line 184 of file ranges-list.hpp.
|
inlineprotected |
Create new range possibly from freelist f and init.
Definition at line 189 of file ranges-list.hpp.
|
inlineprotected |
Create new range possibly and init.
Definition at line 202 of file ranges-list.hpp.
|
inlineprotected |
Create new range possibly from freelist f and init.
Definition at line 210 of file ranges-list.hpp.
|
inlineprotected |
Create new range possibly and init.
Definition at line 216 of file ranges-list.hpp.
|
inlineprotected |
Copy the iterator i to a range list.
Definition at line 222 of file ranges-list.hpp.
|
inline |
Initialize.
Definition at line 140 of file ranges-list.hpp.
|
inline |
Assignment operator.
Definition at line 153 of file ranges-list.hpp.
|
inline |
Test whether iterator is still at a range or done.
Definition at line 234 of file ranges-list.hpp.
|
inline |
Move iterator to next range (if possible)
Definition at line 239 of file ranges-list.hpp.
|
inline |
Reset iterator to start.
Definition at line 244 of file ranges-list.hpp.
|
inline |
Return smallest value of range.
Definition at line 249 of file ranges-list.hpp.
|
inline |
Return largest value of range.
Definition at line 253 of file ranges-list.hpp.
|
inline |
Return width of range (distance between minimum and maximum)
Definition at line 257 of file ranges-list.hpp.
|
protected |
Reference to shared object.
Definition at line 64 of file ranges-list.hpp.
|
protected |
Head of range list.
Definition at line 66 of file ranges-list.hpp.
|
protected |
Current list element.
Definition at line 68 of file ranges-list.hpp.