00001 // -*- C++ -*- 00002 // 00003 // ESF_RefCount_Guard.i,v 1.3 2005/11/10 06:47:23 ossama Exp 00004 00005 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00006 00007 template<class T> ACE_INLINE 00008 TAO_ESF_RefCount_Guard<T>:: 00009 TAO_ESF_RefCount_Guard (T &refcount) 00010 : refcount_ (refcount) 00011 { 00012 this->refcount_++; 00013 } 00014 00015 template<class T> ACE_INLINE 00016 TAO_ESF_RefCount_Guard<T>:: 00017 ~TAO_ESF_RefCount_Guard (void) 00018 { 00019 this->refcount_--; 00020 } 00021 00022 TAO_END_VERSIONED_NAMESPACE_DECL