Iterator over range lists. More...
#include <ranges-list.hpp>
Classes | |
class | RangeList |
Range list class. More... | |
class | RLIO |
Shared object for allocation. 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... | |
~RangeListIter (void) | |
Destructor. More... | |
Iterator over range lists.
Definition at line 41 of file ranges-list.hpp.
|
inline |
Default constructor.
Definition at line 128 of file ranges-list.hpp.
|
inline |
Copy constructor.
Definition at line 142 of file ranges-list.hpp.
|
inline |
Initialize.
Definition at line 132 of file ranges-list.hpp.
|
inline |
Destructor.
Definition at line 165 of file ranges-list.hpp.
|
inlineprotected |
Set range lists.
Definition at line 175 of file ranges-list.hpp.
|
inlineprotected |
Get head of current range list.
Definition at line 180 of file ranges-list.hpp.
|
inlineprotected |
Create new range possibly from freelist f and init.
Definition at line 185 of file ranges-list.hpp.
|
inlineprotected |
Create new range possibly and init.
Definition at line 198 of file ranges-list.hpp.
|
inlineprotected |
Create new range possibly from freelist f and init.
Definition at line 206 of file ranges-list.hpp.
|
inlineprotected |
Create new range possibly and init.
Definition at line 212 of file ranges-list.hpp.
|
inlineprotected |
Copy the iterator i to a range list.
Definition at line 218 of file ranges-list.hpp.
|
inline |
Initialize.
Definition at line 136 of file ranges-list.hpp.
|
inline |
Assignment operator.
Definition at line 149 of file ranges-list.hpp.
|
inline |
Test whether iterator is still at a range or done.
Definition at line 230 of file ranges-list.hpp.
|
inline |
Move iterator to next range (if possible)
Definition at line 235 of file ranges-list.hpp.
|
inline |
Reset iterator to start.
Definition at line 240 of file ranges-list.hpp.
|
inline |
Return smallest value of range.
Definition at line 245 of file ranges-list.hpp.
|
inline |
Return largest value of range.
Definition at line 249 of file ranges-list.hpp.
|
inline |
Return width of range (distance between minimum and maximum)
Definition at line 253 of file ranges-list.hpp.
|
protected |
Reference to shared object.
Definition at line 60 of file ranges-list.hpp.
|
protected |
Head of range list.
Definition at line 62 of file ranges-list.hpp.
|
protected |
Current list element.
Definition at line 64 of file ranges-list.hpp.