ACE  6.0.6
Public Member Functions | Protected Attributes
ACE_Auto_IncDec Class Reference

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

#include <Auto_IncDec_T.h>

Inheritance diagram for ACE_Auto_IncDec:
Inheritance graph
Collaboration diagram for ACE_Auto_IncDec:
Collaboration graph

List of all members.

Public Member Functions

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

Protected Attributes


Detailed Description

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

ACE_Auto_IncDec::ACE_Auto_IncDec ( ACE_SAFELY_INCREMENTABLE_DECREMENTABLE &  counter) [inline]

Implicitly increment the counter.

ACE_Auto_IncDec::~ACE_Auto_IncDec ( void  ) [inline]

Implicitly decrement the counter.

Member Function Documentation

void ACE_Auto_IncDec::dump ( void  ) const

Dump the state of an object.

Member Data Documentation


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

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines