Range iterator for appending a singleton with a range iterator More...
#include <ranges-singleton-append.hpp>
Protected Attributes | |
J | j |
Iterator to be appended. | |
![]() | |
int | mi |
Minimum of current range. | |
int | ma |
Maximum of current range. | |
Constructors and initialization | |
SingletonAppend (void) | |
Default constructor. | |
SingletonAppend (int i0, int i1, J &j) | |
Initialize with singleton (i0, i1) and iterator j. | |
void | init (int i0, int i1, J &j) |
Initialize with singleton (i0, i1) and iterator j. | |
Iteration control | |
void | operator++ (void) |
Move iterator to next range (if possible) | |
Additional Inherited Members | |
![]() | |
MinMax (void) | |
Default constructor. | |
MinMax (int min, int max) | |
Initialize with range min to max. | |
bool | operator() (void) const |
Test whether iterator is still at a range or done. | |
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) | |
![]() | |
void | finish (void) |
Set range such that iteration stops | |
Range iterator for appending a singleton with a range iterator
The singleton is not allowed to be adjacent to the iterator.
Definition at line 47 of file ranges-singleton-append.hpp.
|
inline |
Default constructor.
Definition at line 89 of file ranges-singleton-append.hpp.
|
inline |
Initialize with singleton (i0, i1) and iterator j.
Definition at line 93 of file ranges-singleton-append.hpp.
|
inline |
Initialize with singleton (i0, i1) and iterator j.
Definition at line 100 of file ranges-singleton-append.hpp.
|
inline |
Move iterator to next range (if possible)
Definition at line 77 of file ranges-singleton-append.hpp.
|
protected |
Iterator to be appended.
Definition at line 50 of file ranges-singleton-append.hpp.