
Range iterator for pointwise product with a positive integer. More...
#include <ranges-scale.hpp>
Protected Attributes | |
| I | i |
| Iterator to be scaled. More... | |
| int | a |
| Scale-factor. More... | |
| Val | cur |
| Current value of range. More... | |
| Val | end |
| Last value of scaled range of i. More... | |
Constructors and initialization | |
| ScaleUp (void) | |
| Default constructor. More... | |
| ScaleUp (I &i, int a) | |
| Initialize with ranges from i and scale factor a. More... | |
| void | init (I &i, int a) |
| Initialize with ranges from i and scale factor a. 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 | |
| Val | min (void) const |
| Return smallest value of range. More... | |
| Val | max (void) const |
| Return largest value of range. More... | |
| UnsVal | width (void) const |
| Return width of range (distance between minimum and maximum) More... | |
Range iterator for pointwise product with a positive integer.
Note that this iterator has a different interface as it can be used for both integer precision as well as double precision (depending on the type Val (int or double) and on the type UnsVal (unsigned int or double).
Definition at line 53 of file ranges-scale.hpp.
|
inline |
Default constructor.
Definition at line 127 of file ranges-scale.hpp.
|
inline |
Initialize with ranges from i and scale factor a.
Definition at line 144 of file ranges-scale.hpp.
|
inline |
Initialize with ranges from i and scale factor a.
Definition at line 131 of file ranges-scale.hpp.
|
inline |
Test whether iterator is still at a range or done.
Definition at line 172 of file ranges-scale.hpp.
|
inline |
Move iterator to next range (if possible)
Definition at line 156 of file ranges-scale.hpp.
|
inline |
Return smallest value of range.
Definition at line 178 of file ranges-scale.hpp.
|
inline |
Return largest value of range.
Definition at line 183 of file ranges-scale.hpp.
|
inline |
Return width of range (distance between minimum and maximum)
Definition at line 188 of file ranges-scale.hpp.
|
protected |
Iterator to be scaled.
Definition at line 56 of file ranges-scale.hpp.
|
protected |
Scale-factor.
Definition at line 58 of file ranges-scale.hpp.
|
protected |
Current value of range.
Definition at line 60 of file ranges-scale.hpp.
|
protected |
Last value of scaled range of i.
Definition at line 62 of file ranges-scale.hpp.