|
msl 1.3.0
|
Counter from 0 (included) to end (excluded).
#include <Counter.h>
Public Member Functions | |
| Counter (std::size_t end) | |
| Initialize index to 0. | |
| std::size_t | index () const |
| Return the current index. | |
| std::size_t | end () const |
| Return the end value. | |
| Counter & | setEnd (std::size_t end) |
| Set the end value. | |
| Counter & | reset () |
| Set the index to 0. | |
| Counter & | operator++ () |
| Increment the index. | |
| bool | first () const |
| Test if the index is 0. | |
| bool | last () const |
| Test if the index is equal to end-1. | |
| bool | done () const |
| Test if the index is equal to end. | |
| Counter & msl::Counter::operator++ | ( | ) |
Increment the index.