Unix and Linux Discussions Tagged with counter |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
5 |
1,607 |
Shell Programming and Scripting |
|
|
|
4 |
1,576 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
11,179 |
Shell Programming and Scripting |
|
|
|
6 |
3,018 |
Shell Programming and Scripting |
|
|
|
1 |
1,736 |
Shell Programming and Scripting |
|
|
|
3 |
2,041 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
1,198 |
Software Releases - RSS News |
|
|
|
0 |
1,658 |
Software Releases - RSS News |
|
|
|
3 |
10,784 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
958 |
Software Releases - RSS News |
|
|
|
3 |
1,485 |
Shell Programming and Scripting |
|
|
|
7 |
4,199 |
Shell Programming and Scripting |
|
|
|
5 |
62,591 |
Shell Programming and Scripting |
|
|
|
0 |
2,370 |
Programming |
|
|
|
2 |
5,926 |
Shell Programming and Scripting |
|
|
|
2 |
2,313 |
Shell Programming and Scripting |
|
|
|
1 |
1,767 |
Shell Programming and Scripting |
|
|
|
3 |
4,055 |
Shell Programming and Scripting |
|
|
|
4 |
5,059 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
3,211 |
Programming |
|
|
|
5 |
3,033 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,402 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,079 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
12,411 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
4,730 |
Programming |
|
|
|
2 |
5,253 |
UNIX for Dummies Questions & Answers |
ost::Counter< T >(3) Library Functions Manual ost::Counter< T >(3)
NAME
ost::Counter< T > -
The counter template is used for generic objects which act as automatic counters.
SYNOPSIS
#include <counter.h>
Public Member Functions
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 ()
Protected Attributes
T count
Detailed Description
template<typename T>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:
David Sugar dyfet@gnutelephony.org Automatic counter template class.
Constructor & Destructor Documentation
template<typename T > ost::Counter< T >::Counter () [inline]
Construct and initialize a counter to zero.
References ost::Counter< T >::count.
template<typename T > ost::Counter< T >::Counter (const Counter< T > &counter) [inline]
Construct a counter with an initial value set for another counter. Parameters:
counter to copy from.
References ost::Counter< T >::count.
template<typename T > ost::Counter< T >::Counter (Tinitial) [inline]
Construct a counter with an initial value of the specified data type. Parameters:
initial value to set.
References ost::Counter< T >::count.
Member Function Documentation
template<typename T > ost::Counter< T >::operator T () [inline]
References ost::Counter< T >::count.
template<typename T > T& ost::Counter< T >::operator= (Tc) [inline]
Member Data Documentation
template<typename T > T ost::Counter< T >::count [protected]
Referenced by ost::Counter< T >::Counter(), and ost::Counter< T >::operator T().
Author
Generated automatically by Doxygen for GNU CommonC++ from the source code.
GNU CommonC++ Sat Jun 23 2012 ost::Counter< T >(3)