Value iterator for selecting only negative values. More...
#include <values-negative.hpp>
Protected Attributes | |
I | i |
Input iterator. More... | |
Constructors and initialization | |
Negative (void) | |
Default constructor. More... | |
Negative (I &i) | |
Initialize with values from i. More... | |
void | init (I &i) |
Initialize with values from i. More... | |
Iteration control | |
bool | operator() (void) const |
Test whether iterator is still at a value or done. More... | |
void | operator++ (void) |
Move iterator to next value (if possible) More... | |
Value access | |
int | val (void) const |
Return current value. More... | |
Value iterator for selecting only negative values.
If strict is true, zero is excluded.
Definition at line 47 of file values-negative.hpp.
|
inline |
Default constructor.
Definition at line 80 of file values-negative.hpp.
|
inline |
Initialize with values from i.
Definition at line 90 of file values-negative.hpp.
|
inline |
Initialize with values from i.
Definition at line 84 of file values-negative.hpp.
|
inline |
Test whether iterator is still at a value or done.
Definition at line 99 of file values-negative.hpp.
|
inline |
Move iterator to next value (if possible)
Definition at line 94 of file values-negative.hpp.
|
inline |
Return current value.
Definition at line 109 of file values-negative.hpp.
|
protected |
Input iterator.
Definition at line 50 of file values-negative.hpp.