00001 // -*- C++ -*- 00002 // 00003 //Refcountable.inl,v 4.3 2005/10/28 16:14:55 ossama Exp 00004 00005 ACE_BEGIN_VERSIONED_NAMESPACE_DECL 00006 00007 ACE_INLINE 00008 ACE_Refcountable::ACE_Refcountable (int refcount) 00009 : refcount_ (refcount) 00010 { 00011 } 00012 00013 ACE_INLINE int 00014 ACE_Refcountable::increment (void) 00015 { 00016 return ++this->refcount_; 00017 } 00018 00019 ACE_INLINE int 00020 ACE_Refcountable::decrement (void) 00021 { 00022 return --this->refcount_; 00023 } 00024 00025 ACE_INLINE int 00026 ACE_Refcountable::refcount (void) const 00027 { 00028 return this->refcount_; 00029 } 00030 00031 ACE_END_VERSIONED_NAMESPACE_DECL