Value Iterator for values above a certain weight. More...
#include <weights.hpp>
Constructors and initialization | |
OverweightValues (void) | |
Default constructor. | |
OverweightValues (int t, SharedArray< int > &elements0, SharedArray< int > &weights0, I &i) | |
Initialize with elements/weights pairs, threshold t and iterator i. | |
void | init (int t, SharedArray< int > &elements0, SharedArray< int > &weights0, I &i) |
Initialize with elements/weights pairs, threshold t and iterator i. | |
Iteration control | |
bool | operator() (void) const |
Test whether iterator is still at a value or done. | |
void | operator++ (void) |
Move iterator to next value (if possible) | |
Value access | |
int | val (void) const |
Return current value. | |
Value Iterator for values above a certain weight.
Definition at line 45 of file weights.hpp.
|
inline |
Default constructor.
Definition at line 105 of file weights.hpp.
|
inline |
Initialize with elements/weights pairs, threshold t and iterator i.
Definition at line 109 of file weights.hpp.
|
inline |
Initialize with elements/weights pairs, threshold t and iterator i.
Definition at line 122 of file weights.hpp.
|
inline |
Test whether iterator is still at a value or done.
Definition at line 134 of file weights.hpp.
|
inline |
Move iterator to next value (if possible)
Definition at line 138 of file weights.hpp.
|
inline |
Return current value.
Definition at line 142 of file weights.hpp.