Auto_IncDec_T.inl

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // Auto_IncDec_T.inl,v 4.2 2005/10/28 16:14:51 ossama Exp
00004 
00005 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00006 
00007 // Implicitly and automatically increment the counter.
00008 
00009 template <class ACE_SAFELY_INCREMENTABLE_DECREMENTABLE> ACE_INLINE
00010 ACE_Auto_IncDec<ACE_SAFELY_INCREMENTABLE_DECREMENTABLE>::ACE_Auto_IncDec
00011   (ACE_SAFELY_INCREMENTABLE_DECREMENTABLE &counter)
00012   : counter_ (counter)
00013 {
00014   ++this->counter_;
00015 }
00016 
00017 // Implicitly and automatically decrement the counter.
00018 
00019 template <class ACE_SAFELY_INCREMENTABLE_DECREMENTABLE> ACE_INLINE
00020 ACE_Auto_IncDec<ACE_SAFELY_INCREMENTABLE_DECREMENTABLE>::~ACE_Auto_IncDec (void)
00021 {
00022   --this->counter_;
00023 }
00024 
00025 ACE_END_VERSIONED_NAMESPACE_DECL

Generated on Thu Nov 9 09:41:46 2006 for ACE by doxygen 1.3.6