Auto_IncDec_T.inl

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // $Id: Auto_IncDec_T.inl 80826 2008-03-04 14:51:23Z wotte $
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 Tue Feb 2 17:18:38 2010 for ACE by  doxygen 1.4.7