Specialized mapping of ranges for non-strict maps. More...
#include <ranges-map.hpp>
Protected Member Functions | |
void | next (void) |
Find next mapped range. More... | |
![]() | |
void | finish (void) |
Set range such that iteration stops More... | |
Protected Attributes | |
I | i |
Input range. More... | |
M | m |
Map for ranges. More... | |
![]() | |
int | mi |
Minimum of current range. More... | |
int | ma |
Maximum of current range. More... | |
Constructors and initialization | |
Map (void) | |
Default constructor. More... | |
Map (I &i) | |
Initialize with ranges from i. More... | |
Map (I &i, const M &m) | |
Initialize with ranges from i and map m. More... | |
void | init (I &i) |
Initialize with ranges from i. More... | |
void | init (I &i, const M &m) |
Initialize with ranges from i and map m. 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... | |
Specialized mapping of ranges for non-strict maps.
Definition at line 86 of file ranges-map.hpp.
|
inline |
Default constructor.
Definition at line 161 of file ranges-map.hpp.
|
inline |
Initialize with ranges from i.
Definition at line 191 of file ranges-map.hpp.
|
inline |
Initialize with ranges from i and map m.
Definition at line 196 of file ranges-map.hpp.
|
inlineprotected |
Find next mapped range.
Definition at line 165 of file ranges-map.hpp.
|
inline |
Initialize with ranges from i.
Definition at line 180 of file ranges-map.hpp.
|
inline |
Initialize with ranges from i and map m.
Definition at line 185 of file ranges-map.hpp.
|
inline |
Move iterator to next range (if possible)
Definition at line 202 of file ranges-map.hpp.
|
protected |
Input range.
Definition at line 89 of file ranges-map.hpp.
|
protected |
Map for ranges.
Definition at line 91 of file ranges-map.hpp.