Specialized mapping of ranges for strict maps. More...
#include <ranges-map.hpp>
Protected Attributes | |
I | i |
Input range iterator. More... | |
M | m |
Map object. 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 | |
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... | |
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... | |
Specialized mapping of ranges for strict maps.
Definition at line 118 of file ranges-map.hpp.
|
inline |
Default constructor.
Definition at line 210 of file ranges-map.hpp.
|
inline |
Initialize with ranges from i.
Definition at line 225 of file ranges-map.hpp.
|
inline |
Initialize with ranges from i and map m.
Definition at line 228 of file ranges-map.hpp.
|
inline |
Initialize with ranges from i.
Definition at line 214 of file ranges-map.hpp.
|
inline |
Initialize with ranges from i and map m.
Definition at line 219 of file ranges-map.hpp.
|
inline |
Test whether iterator is still at a range or done.
Definition at line 232 of file ranges-map.hpp.
|
inline |
Move iterator to next range (if possible)
Definition at line 237 of file ranges-map.hpp.
|
inline |
Return smallest value of range.
Definition at line 243 of file ranges-map.hpp.
|
inline |
Return largest value of range.
Definition at line 248 of file ranges-map.hpp.
|
inline |
Return width of range (distance between minimum and maximum)
Definition at line 253 of file ranges-map.hpp.
|
protected |
Input range iterator.
Definition at line 121 of file ranges-map.hpp.
|
protected |
Map object.
Definition at line 123 of file ranges-map.hpp.