Range iterator for positive part of a range iterator. More...
#include <ranges-positive.hpp>
Protected Attributes | |
I | i |
Input iterator. | |
Constructors and initialization | |
Positive (void) | |
Default constructor. | |
Positive (I &i) | |
Initialize with ranges from i. | |
void | init (I &i) |
Initialize with ranges from i. | |
Iteration control | |
bool | operator() (void) const |
Test whether iterator is still at a range or done. | |
void | operator++ (void) |
Move iterator to next range (if possible) | |
Range access | |
int | min (void) const |
Return smallest value of range. | |
int | max (void) const |
Return largest value of range. | |
unsigned int | width (void) const |
Return width of range (distance between minimum and maximum) | |
Range iterator for positive part of a range iterator.
If strict is true, zero is excluded.
Definition at line 46 of file ranges-positive.hpp.
|
inline |
Default constructor.
Definition at line 83 of file ranges-positive.hpp.
|
inline |
Initialize with ranges from i.
Definition at line 98 of file ranges-positive.hpp.
|
inline |
Initialize with ranges from i.
Definition at line 87 of file ranges-positive.hpp.
|
inline |
Test whether iterator is still at a range or done.
Definition at line 109 of file ranges-positive.hpp.
|
inline |
Move iterator to next range (if possible)
Definition at line 104 of file ranges-positive.hpp.
|
inline |
Return smallest value of range.
Definition at line 115 of file ranges-positive.hpp.
|
inline |
Return largest value of range.
Definition at line 124 of file ranges-positive.hpp.
|
inline |
Return width of range (distance between minimum and maximum)
Definition at line 129 of file ranges-positive.hpp.
|
protected |
Input iterator.
Definition at line 49 of file ranges-positive.hpp.