ACE  6.2.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
ACE_Auto_IncDec< ACE_SAFELY_INCREMENTABLE_DECREMENTABLE > Class Template Reference

This class automatically increments and decrements a parameterized counter. More...

#include <Auto_IncDec_T.h>

Inheritance diagram for ACE_Auto_IncDec< ACE_SAFELY_INCREMENTABLE_DECREMENTABLE >:
Inheritance graph
[legend]
Collaboration diagram for ACE_Auto_IncDec< ACE_SAFELY_INCREMENTABLE_DECREMENTABLE >:
Collaboration graph
[legend]

Public Member Functions

 ACE_Auto_IncDec (ACE_SAFELY_INCREMENTABLE_DECREMENTABLE &counter)
 Implicitly increment the counter. More...
 
 ~ACE_Auto_IncDec (void)
 Implicitly decrement the counter. More...
 
void dump (void) const
 Dump the state of an object. More...
 

Protected Attributes

ACE_SAFELY_INCREMENTABLE_DECREMENTABLE & counter_
 

Additional Inherited Members

- Private Member Functions inherited from ACE_Copy_Disabled
 ACE_Copy_Disabled (void)
 Default constructor. More...
 

Detailed Description

template<class ACE_SAFELY_INCREMENTABLE_DECREMENTABLE>
class ACE_Auto_IncDec< ACE_SAFELY_INCREMENTABLE_DECREMENTABLE >

This class automatically increments and decrements a parameterized counter.

This data structure is meant to be used within a method, function, or scope. The actual parameter given for the ACE_SAFELY_INCREMENTABLE_DECREMENTABLE template parameter must provide at least operators ++ and –.

Constructor & Destructor Documentation

template<class ACE_SAFELY_INCREMENTABLE_DECREMENTABLE >
ACE_Auto_IncDec< ACE_SAFELY_INCREMENTABLE_DECREMENTABLE >::ACE_Auto_IncDec ( ACE_SAFELY_INCREMENTABLE_DECREMENTABLE &  counter)
inline

Implicitly increment the counter.

template<class ACE_SAFELY_INCREMENTABLE_DECREMENTABLE >
ACE_Auto_IncDec< ACE_SAFELY_INCREMENTABLE_DECREMENTABLE >::~ACE_Auto_IncDec ( void  )
inline

Implicitly decrement the counter.

Member Function Documentation

template<class ACE_SAFELY_INCREMENTABLE_DECREMENTABLE >
void ACE_Auto_IncDec< ACE_SAFELY_INCREMENTABLE_DECREMENTABLE >::dump ( void  ) const

Dump the state of an object.

Member Data Documentation

template<class ACE_SAFELY_INCREMENTABLE_DECREMENTABLE >
ACE_SAFELY_INCREMENTABLE_DECREMENTABLE& ACE_Auto_IncDec< ACE_SAFELY_INCREMENTABLE_DECREMENTABLE >::counter_
protected

Reference to the ACE_SAFELY_INCREMENTABLE_DECREMENTABLE counter we're incrementing/decrementing.


The documentation for this class was generated from the following files: