#include <Refcountable_T.h>
Inheritance diagram for ACE_Refcountable_T< ACE_LOCK >:
Public Member Functions | |
virtual | ~ACE_Refcountable_T (void) |
Destructor. | |
long | increment (void) |
long | decrement (void) |
long | refcount (void) const |
Returns the current refcount. | |
Protected Member Functions | |
ACE_Refcountable_T (long refcount) | |
Protected constructor. | |
Protected Attributes | |
ACE_Atomic_Op< ACE_LOCK, long > | refcount_ |
Current refcount. |
Definition at line 29 of file Refcountable_T.h.
ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_Refcountable_T< ACE_LOCK >::~ACE_Refcountable_T | ( | void | ) | [virtual] |
ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE ACE_Refcountable_T< ACE_LOCK >::ACE_Refcountable_T | ( | long | refcount | ) | [protected] |
ACE_INLINE long ACE_Refcountable_T< ACE_LOCK >::decrement | ( | void | ) |
Definition at line 23 of file Refcountable_T.inl.
References ACE_Refcountable_T< ACE_LOCK >::refcount_.
00024 { 00025 return --this->refcount_; 00026 }
ACE_INLINE long ACE_Refcountable_T< ACE_LOCK >::increment | ( | void | ) |
Definition at line 16 of file Refcountable_T.inl.
References ACE_Refcountable_T< ACE_LOCK >::refcount_.
00017 { 00018 return ++this->refcount_; 00019 }
ACE_INLINE long ACE_Refcountable_T< ACE_LOCK >::refcount | ( | void | ) | const |
Returns the current refcount.
Definition at line 30 of file Refcountable_T.inl.
References ACE_Refcountable_T< ACE_LOCK >::refcount_, and ACE_Atomic_Op< ACE_LOCK, TYPE >::value().
ACE_Atomic_Op<ACE_LOCK, long> ACE_Refcountable_T< ACE_LOCK >::refcount_ [protected] |
Current refcount.
Definition at line 47 of file Refcountable_T.h.
Referenced by ACE_Refcountable_T< ACE_LOCK >::decrement(), ACE_Refcountable_T< ACE_LOCK >::increment(), and ACE_Refcountable_T< ACE_LOCK >::refcount().