Range iterator for computing the complement (described by template arguments) More...
#include <ranges-compl.hpp>
Protected Member Functions | |
void | start (void) |
Initialize. More... | |
![]() | |
void | finish (void) |
Set range such that iteration stops More... | |
Protected Attributes | |
I | i |
Iterator to compute complement for. More... | |
![]() | |
int | mi |
Minimum of current range. More... | |
int | ma |
Maximum of current range. More... | |
Constructors and initialization | |
Compl (void) | |
Default constructor. More... | |
Compl (I &i) | |
Initialize with iterator i. More... | |
void | init (I &i) |
Initialize with iterator i. More... | |
Iteration control | |
void | operator++ (void) |
Move iterator to next range (if possible) More... | |
Additional Inherited Members | |
![]() | |
MinMax (void) | |
Default constructor. More... | |
MinMax (int min, int max) | |
Initialize with range min to max. More... | |
bool | operator() (void) const |
Test whether iterator is still at a range or done. More... | |
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... | |
Range iterator for computing the complement (described by template arguments)
The complement is computed with respect to a given universe set provided as template arguments (UMIN ... UMAX). The universe must always be a superset!
Definition at line 53 of file ranges-compl.hpp.
|
inline |
Default constructor.
Definition at line 139 of file ranges-compl.hpp.
|
inline |
Initialize with iterator i.
Definition at line 143 of file ranges-compl.hpp.
|
inlineprotected |
Initialize.
Definition at line 118 of file ranges-compl.hpp.
|
inline |
Initialize with iterator i.
Definition at line 149 of file ranges-compl.hpp.
|
inline |
Move iterator to next range (if possible)
Definition at line 155 of file ranges-compl.hpp.
|
protected |
Iterator to compute complement for.
Definition at line 56 of file ranges-compl.hpp.