Unix and Linux Discussions Tagged with counter |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
5 |
2,247 |
Shell Programming and Scripting |
|
|
|
4 |
1,838 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
11,652 |
Shell Programming and Scripting |
|
|
|
6 |
3,243 |
Shell Programming and Scripting |
|
|
|
1 |
1,900 |
Shell Programming and Scripting |
|
|
|
3 |
2,185 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
1,433 |
Software Releases - RSS News |
|
|
|
0 |
1,833 |
Software Releases - RSS News |
|
|
|
3 |
11,166 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
1,074 |
Software Releases - RSS News |
|
|
|
3 |
1,568 |
Shell Programming and Scripting |
|
|
|
7 |
4,527 |
Shell Programming and Scripting |
|
|
|
5 |
62,807 |
Shell Programming and Scripting |
|
|
|
0 |
2,476 |
Programming |
|
|
|
2 |
6,051 |
Shell Programming and Scripting |
|
|
|
2 |
2,474 |
Shell Programming and Scripting |
|
|
|
1 |
1,828 |
Shell Programming and Scripting |
|
|
|
3 |
4,176 |
Shell Programming and Scripting |
|
|
|
4 |
5,257 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
3,310 |
Programming |
|
|
|
5 |
3,346 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,802 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,251 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
12,930 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
5,232 |
Programming |
|
|
|
2 |
5,819 |
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)