Unix and Linux Discussions Tagged with counter |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
5 |
1,578 |
Shell Programming and Scripting |
|
|
|
4 |
1,564 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
11,147 |
Shell Programming and Scripting |
|
|
|
6 |
3,006 |
Shell Programming and Scripting |
|
|
|
1 |
1,728 |
Shell Programming and Scripting |
|
|
|
3 |
2,041 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
1,196 |
Software Releases - RSS News |
|
|
|
0 |
1,647 |
Software Releases - RSS News |
|
|
|
3 |
10,773 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
955 |
Software Releases - RSS News |
|
|
|
3 |
1,481 |
Shell Programming and Scripting |
|
|
|
7 |
4,187 |
Shell Programming and Scripting |
|
|
|
5 |
62,567 |
Shell Programming and Scripting |
|
|
|
0 |
2,362 |
Programming |
|
|
|
2 |
5,924 |
Shell Programming and Scripting |
|
|
|
2 |
2,306 |
Shell Programming and Scripting |
|
|
|
1 |
1,761 |
Shell Programming and Scripting |
|
|
|
3 |
4,053 |
Shell Programming and Scripting |
|
|
|
4 |
5,055 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
3,201 |
Programming |
|
|
|
5 |
3,012 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,366 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,065 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
12,361 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
4,697 |
Programming |
|
|
|
2 |
5,218 |
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)