The counter template is used for generic objects which act as automatic counters.
More...
#include <counter.h>
Collaboration diagram for Counter< T >:
Public Member Functions
Construct and initialize a counter to zero.
More...
Construct a counter with an initial value set for another counter.
More...
Construct a counter with an initial value of the specified data type.
More...
Protected Attributes
Detailed Description
template<typename T>
class Counter< T >
The counter template is used for generic objects which act as automatic counters.
Each time the object is accessed, the underlying counted data type is incremented.
- Author
- David Sugar dyfet.nosp@m.@gnu.nosp@m.telep.nosp@m.hony.nosp@m..org Automatic counter template class.
Definition at line 63 of file counter.h.
Constructor & Destructor Documentation
Construct and initialize a counter to zero.
Definition at line 72 of file counter.h.
Construct a counter with an initial value set for another counter.
- Parameters
-
counter to copy from.
Definition at line 80 of file counter.h.
Construct a counter with an initial value of the specified data type.
- Parameters
-
initial value to set.
Definition at line 89 of file counter.h.
Member Function Documentation
Field Documentation
The documentation for this class was generated from the following file: