00001 /* -*- C++ -*- */ 00002 //$Id: Refcountable.inl,v 1.1.1.1 2003/02/21 18:36:32 chad Exp $ 00003 ACE_INLINE 00004 ACE_Refcountable::ACE_Refcountable (int refcount) 00005 : refcount_ (refcount) 00006 { 00007 } 00008 00009 ACE_INLINE 00010 ACE_Refcountable::~ACE_Refcountable (void) 00011 { 00012 } 00013 00014 ACE_INLINE int 00015 ACE_Refcountable::increment (void) 00016 { 00017 return ++this->refcount_; 00018 } 00019 00020 ACE_INLINE int 00021 ACE_Refcountable::decrement (void) 00022 { 00023 return --this->refcount_; 00024 } 00025 00026 ACE_INLINE int 00027 ACE_Refcountable::refcount (void) const 00028 { 00029 return this->refcount_; 00030 }
1.2.14 written by Dimitri van Heesch,
© 1997-2002