#include <counter.h>
Public Methods | |
| Counter () | |
| Construct and initialize a counter to zero. More... | |
| Counter (const Counter &counter) | |
| Construct a counter with an initial value set for another counter. More... | |
| Counter (T initial) | |
| Construct a counter with an initial value of the specified data type. More... | |
| T& | operator= (T c) |
| operator T () | |
Protected Attributes | |
| T | count |
Each time the object is accessed, the underlying counted data type is incremented.
|
||||
|
Construct and initialize a counter to zero.
|
|
||||
|
Construct a counter with an initial value set for another counter.
|
|
||||
|
Construct a counter with an initial value of the specified data type.
|
|
||||
|
|
|
||||
|
|
|
|||
|
|
1.2.8.1 written by Dimitri van Heesch,
© 1997-2001