Range iterator for computing set difference. More...
#include <ranges-diff.hpp>
Protected Attributes | |
I | i |
Iterator from which to subtract. More... | |
J | j |
Iterator to be subtracted. More... | |
![]() | |
int | mi |
Minimum of current range. More... | |
int | ma |
Maximum of current range. More... | |
Constructors and initialization | |
Diff (void) | |
Default constructor. More... | |
Diff (I &i, J &j) | |
Initialize with iterator i and j. More... | |
void | init (I &i, J &j) |
Initialize with iterator i and j. 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... | |
![]() | |
void | finish (void) |
Set range such that iteration stops More... | |
Range iterator for computing set difference.
Definition at line 47 of file ranges-diff.hpp.
|
inline |
Default constructor.
Definition at line 113 of file ranges-diff.hpp.
|
inline |
Initialize with iterator i and j.
Definition at line 117 of file ranges-diff.hpp.
|
inline |
Initialize with iterator i and j.
Definition at line 129 of file ranges-diff.hpp.
|
inline |
Move iterator to next range (if possible)
Definition at line 75 of file ranges-diff.hpp.
|
protected |
Iterator from which to subtract.
Definition at line 50 of file ranges-diff.hpp.
|
protected |
Iterator to be subtracted.
Definition at line 52 of file ranges-diff.hpp.