ost::Counter< T >(3) | Library Functions Manual | ost::Counter< T >(3) |
ost::Counter< T > - The counter template is used for generic objects which act as automatic counters.
#include <counter.h>
Counter ()
Construct and initialize a counter to zero. Counter (const
Counter &counter)
Construct a counter with an initial value set for another counter.
Counter (T initial)
Construct a counter with an initial value of the specified data type. T &
operator= (T c)
operator T ()
T count
class ost::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
Automatic counter template class.
Construct and initialize a counter to zero.
References ost::Counter< T >::count.
Construct a counter with an initial value set for another counter.
Parameters
References ost::Counter< T >::count.
Construct a counter with an initial value of the specified data type.
Parameters
References ost::Counter< T >::count.
References ost::Counter< T >::count.
Referenced by ost::Counter< T >::Counter(), and ost::Counter< T >::operator T().
Generated automatically by Doxygen for GNU CommonC++ from the source code.
Sun Dec 27 2020 | GNU CommonC++ |