TAO_Intrusive_Ref_Count_Base< ACE_LOCK > Class Template Reference

#include <Intrusive_Ref_Count_Base_T.h>

Collaboration diagram for TAO_Intrusive_Ref_Count_Base< ACE_LOCK >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual ~TAO_Intrusive_Ref_Count_Base (void)
void _add_ref (void)
void _remove_ref (void)

Protected Member Functions

 TAO_Intrusive_Ref_Count_Base (void)

Private Member Functions

 TAO_Intrusive_Ref_Count_Base (const TAO_Intrusive_Ref_Count_Base &)
TAO_Intrusive_Ref_Count_Baseoperator= (const TAO_Intrusive_Ref_Count_Base &)

Private Attributes

ACE_Atomic_Op< ACE_LOCK, long > ref_count_

template<class ACE_LOCK>
class TAO_Intrusive_Ref_Count_Base< ACE_LOCK >


Constructor & Destructor Documentation

template<typename T>
TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_Intrusive_Ref_Count_Base< T >::~TAO_Intrusive_Ref_Count_Base void   )  [virtual]
 

Definition at line 15 of file Intrusive_Ref_Count_Base_T.cpp.

00016 {
00017 }

template<typename T>
TAO_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE TAO_Intrusive_Ref_Count_Base< T >::TAO_Intrusive_Ref_Count_Base void   )  [protected]
 

Definition at line 9 of file Intrusive_Ref_Count_Base_T.inl.

00010   : ref_count_(1)
00011 {}

template<class ACE_LOCK>
TAO_Intrusive_Ref_Count_Base< ACE_LOCK >::TAO_Intrusive_Ref_Count_Base const TAO_Intrusive_Ref_Count_Base< ACE_LOCK > &   )  [private]
 


Member Function Documentation

template<typename T>
ACE_INLINE void TAO_Intrusive_Ref_Count_Base< T >::_add_ref void   ) 
 

Definition at line 17 of file Intrusive_Ref_Count_Base_T.inl.

00018 {
00019   ++this->ref_count_;
00020 }

template<typename T>
ACE_INLINE void TAO_Intrusive_Ref_Count_Base< T >::_remove_ref void   ) 
 

Definition at line 26 of file Intrusive_Ref_Count_Base_T.inl.

00027 {
00028   long const new_count = --this->ref_count_;
00029 
00030   if (new_count != 0)
00031     {
00032       return;
00033     }
00034 
00035   delete this;
00036 }

template<class ACE_LOCK>
TAO_Intrusive_Ref_Count_Base& TAO_Intrusive_Ref_Count_Base< ACE_LOCK >::operator= const TAO_Intrusive_Ref_Count_Base< ACE_LOCK > &   )  [private]
 


Member Data Documentation

template<class ACE_LOCK>
ACE_Atomic_Op<ACE_LOCK, long> TAO_Intrusive_Ref_Count_Base< ACE_LOCK >::ref_count_ [private]
 

Definition at line 57 of file Intrusive_Ref_Count_Base_T.h.


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 12:14:59 2006 for TAO by doxygen 1.3.6