Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

Auto_IncDec_T.i

Go to the documentation of this file.
00001 /* -*- C++ -*- */
00002 // $Id: Auto_IncDec_T.i,v 1.1.1.2 2001/12/04 14:32:59 chad Exp $
00003 
00004 // Implicitly and automatically increment the counter.
00005 
00006 template <class ACE_SAFELY_INCREMENTABLE_DECREMENTABLE> ACE_INLINE
00007 ACE_Auto_IncDec<ACE_SAFELY_INCREMENTABLE_DECREMENTABLE>::ACE_Auto_IncDec
00008   (ACE_SAFELY_INCREMENTABLE_DECREMENTABLE &counter)
00009   : counter_ (counter)
00010 {
00011   ++this->counter_;
00012 }
00013 
00014 // Implicitly and automatically decrement the counter.
00015 
00016 template <class ACE_SAFELY_INCREMENTABLE_DECREMENTABLE> ACE_INLINE
00017 ACE_Auto_IncDec<ACE_SAFELY_INCREMENTABLE_DECREMENTABLE>::~ACE_Auto_IncDec (void)
00018 {
00019   --this->counter_;
00020 }
00021 

Generated on Mon Jun 16 11:19:11 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002