ACE
6.1.0
|
This class automatically increments and decrements a parameterized counter. More...
#include <Auto_IncDec_T.h>
Public Member Functions | |
ACE_Auto_IncDec (ACE_SAFELY_INCREMENTABLE_DECREMENTABLE &counter) | |
Implicitly increment the counter. | |
~ACE_Auto_IncDec (void) | |
Implicitly decrement the counter. | |
void | dump (void) const |
Dump the state of an object. | |
Protected Attributes | |
ACE_SAFELY_INCREMENTABLE_DECREMENTABLE & | counter_ |
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 --.
ACE_Auto_IncDec< ACE_SAFELY_INCREMENTABLE_DECREMENTABLE >::ACE_Auto_IncDec | ( | ACE_SAFELY_INCREMENTABLE_DECREMENTABLE & | counter | ) | [inline] |
Implicitly increment the counter.
ACE_Auto_IncDec< ACE_SAFELY_INCREMENTABLE_DECREMENTABLE >::~ACE_Auto_IncDec | ( | void | ) | [inline] |
Implicitly decrement the counter.
void ACE_Auto_IncDec< ACE_SAFELY_INCREMENTABLE_DECREMENTABLE >::dump | ( | void | ) | const |
Dump the state of an object.
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.