
Value iterator for single value. More...
#include <values-singleton.hpp>
Protected Attributes | |
| bool | done |
| Whether the iterator is done. More... | |
| int | v |
| The single value. More... | |
Constructors and initialization | |
| Singleton (void) | |
| Default constructor. More... | |
| Singleton (int v) | |
| Initialize with value v. More... | |
| void | init (int v) |
| Initialize with value v. 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 single value.
Definition at line 46 of file values-singleton.hpp.
|
inline |
Default constructor.
Definition at line 80 of file values-singleton.hpp.
|
inline |
Initialize with value v.
Definition at line 83 of file values-singleton.hpp.
|
inline |
Initialize with value v.
Definition at line 87 of file values-singleton.hpp.
|
inline |
Test whether iterator is still at a value or done.
Definition at line 96 of file values-singleton.hpp.
|
inline |
Move iterator to next value (if possible)
Definition at line 92 of file values-singleton.hpp.
|
inline |
Return current value.
Definition at line 101 of file values-singleton.hpp.
|
protected |
Whether the iterator is done.
Definition at line 49 of file values-singleton.hpp.
|
protected |
The single value.
Definition at line 51 of file values-singleton.hpp.