ACE_Refcountable_T< ACE_LOCK > Class Template Reference

#include <Refcountable_T.h>

Inheritance diagram for ACE_Refcountable_T< ACE_LOCK >:

Inheritance graph
[legend]
Collaboration diagram for ACE_Refcountable_T< ACE_LOCK >:

Collaboration graph
[legend]
List of all members.

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.

Detailed Description

template<class ACE_LOCK>
class ACE_Refcountable_T< ACE_LOCK >

Definition at line 29 of file Refcountable_T.h.


Constructor & Destructor Documentation

template<class ACE_LOCK>
ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_Refcountable_T< ACE_LOCK >::~ACE_Refcountable_T ( void   )  [virtual]

Destructor.

Definition at line 19 of file Refcountable_T.cpp.

00020 {
00021 }

template<class ACE_LOCK>
ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE ACE_Refcountable_T< ACE_LOCK >::ACE_Refcountable_T ( long  refcount  )  [protected]

Protected constructor.

Definition at line 9 of file Refcountable_T.inl.

00010   : refcount_ (refcount)
00011 {
00012 }


Member Function Documentation

template<class ACE_LOCK>
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 }

template<class ACE_LOCK>
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 }

template<class ACE_LOCK>
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().

00031 {
00032   return this->refcount_.value ();
00033 }


Member Data Documentation

template<class ACE_LOCK>
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().


The documentation for this class was generated from the following files:
Generated on Tue Feb 2 17:35:30 2010 for ACE by  doxygen 1.4.7