#include <Refcounted_Auto_Ptr.h>
Collaboration diagram for ACE_Refcounted_Auto_Ptr< X, ACE_LOCK >:

Public Member Functions | |
| ACE_Refcounted_Auto_Ptr (X *p=0) | |
| ACE_Refcounted_Auto_Ptr (const ACE_Refcounted_Auto_Ptr< X, ACE_LOCK > &r) | |
| virtual | ~ACE_Refcounted_Auto_Ptr (void) | 
| Destructor.   | |
| void | operator= (const ACE_Refcounted_Auto_Ptr< X, ACE_LOCK > &r) | 
| bool | operator== (const ACE_Refcounted_Auto_Ptr< X, ACE_LOCK > &r) const | 
| bool | operator!= (const ACE_Refcounted_Auto_Ptr< X, ACE_LOCK > &r) const | 
| Inequality operator, which is the opposite of equality.   | |
| X * | operator-> (void) const | 
| Redirection operator.   | |
| X & | operator * () const | 
| X * | release (void) | 
| Sets the pointer value to 0 and returns its old value.   | |
| void | reset (X *p=0) | 
| X * | get (void) const | 
| Get the pointer value.   | |
| int | count (void) const | 
| Get the reference count value.   | |
| int | null (void) const | 
| Allows us to check for NULL on all ACE_Refcounted_Auto_Ptr objects.   | |
Public Attributes | |
| ACE_ALLOC_HOOK_DECLARE | |
| Declare the dynamic allocation hooks.   | |
Protected Types | |
| typedef ACE_Refcounted_Auto_Ptr_Rep< X, ACE_LOCK >  | AUTO_REFCOUNTED_PTR_REP | 
| the ACE_Refcounted_Auto_Ptr_Rep   | |
Protected Attributes | |
| AUTO_REFCOUNTED_PTR_REP * | rep_ | 
| Protect operations on the .   | |
Definition at line 41 of file Refcounted_Auto_Ptr.h.
      
  | 
  |||||
| 
 the ACE_Refcounted_Auto_Ptr_Rep 
 Definition at line 106 of file Refcounted_Auto_Ptr.h. Referenced by ACE_Refcounted_Auto_Ptr< X, ACE_LOCK >::ACE_Refcounted_Auto_Ptr().  | 
  
      
  | 
  ||||||||||
| 
 
Constructor that initializes an  Definition at line 151 of file Refcounted_Auto_Ptr.inl. References ACE_Refcounted_Auto_Ptr< X, ACE_LOCK >::AUTO_REFCOUNTED_PTR_REP. 
 00152 : rep_ (AUTO_REFCOUNTED_PTR_REP::create (p)) 00153 { 00154 }  | 
  
      
  | 
  ||||||||||
| 
 
Copy constructor binds the created object and  Definition at line 157 of file Refcounted_Auto_Ptr.inl. References ACE_Refcounted_Auto_Ptr< X, ACE_LOCK >::AUTO_REFCOUNTED_PTR_REP. 
 00158 : rep_ (AUTO_REFCOUNTED_PTR_REP::attach (((ACE_Refcounted_Auto_Ptr<X, ACE_LOCK> &) r).rep_)) 00159 { 00160 }  | 
  
      
  | 
  ||||||||||
| 
 Destructor. 
 Definition at line 11 of file Refcounted_Auto_Ptr.cpp. 
 00012 {
00013   AUTO_REFCOUNTED_PTR_REP::detach (rep_);
00014 }
 | 
  
      
  | 
  ||||||||||
| 
 Get the reference count value. 
 Definition at line 18 of file Refcounted_Auto_Ptr.inl. References ACE_Refcounted_Auto_Ptr_Rep< X, ACE_LOCK >::count(). 
  | 
  
      
  | 
  ||||||||||
      
  | 
  ||||||||||
| 
 Allows us to check for NULL on all ACE_Refcounted_Auto_Ptr objects. 
 Definition at line 32 of file Refcounted_Auto_Ptr.inl. References ACE_Refcounted_Auto_Ptr_Rep< X, ACE_LOCK >::null(). 
  | 
  
      
  | 
  |||||||||
| 
 
 Definition at line 181 of file Refcounted_Auto_Ptr.inl. References ACE_Refcounted_Auto_Ptr_Rep< X, ACE_LOCK >::get(). 
  | 
  
      
  | 
  ||||||||||
| 
 Inequality operator, which is the opposite of equality. 
 Definition at line 169 of file Refcounted_Auto_Ptr.inl. References ACE_Refcounted_Auto_Ptr< X, ACE_LOCK >::rep_. 
  | 
  
      
  | 
  ||||||||||
| 
 Redirection operator. 
 Definition at line 175 of file Refcounted_Auto_Ptr.inl. References ACE_Refcounted_Auto_Ptr_Rep< X, ACE_LOCK >::get(). 
  | 
  
      
  | 
  ||||||||||
| 
 
Assignment operator that binds the current object and  Definition at line 206 of file Refcounted_Auto_Ptr.inl. References ACE_Refcounted_Auto_Ptr< X, ACE_LOCK >::rep_. 
 00207 {
00208   // assignment:
00209   //
00210   //  bind <this> to the same <ACE_Refcounted_Auto_Ptr_Rep> as <r>.
00211 
00212   // This will work if &r == this, by first increasing the ref count
00213   ACE_Refcounted_Auto_Ptr<X, ACE_LOCK> &r = (ACE_Refcounted_Auto_Ptr<X, ACE_LOCK> &) rhs;
00214   AUTO_REFCOUNTED_PTR_REP::assign (this->rep_,
00215                                    AUTO_REFCOUNTED_PTR_REP::attach (r.rep_));
00216 }
 | 
  
      
  | 
  ||||||||||
| 
 
 
 Definition at line 163 of file Refcounted_Auto_Ptr.inl. References ACE_Refcounted_Auto_Ptr< X, ACE_LOCK >::rep_. 
  | 
  
      
  | 
  ||||||||||
| 
 Sets the pointer value to 0 and returns its old value. 
 Definition at line 194 of file Refcounted_Auto_Ptr.inl. References ACE_Refcounted_Auto_Ptr_Rep< X, ACE_LOCK >::release(). 
  | 
  
      
  | 
  ||||||||||
| 
 Invokes delete on the previous pointer value and then sets the pointer value to the specified value. Definition at line 200 of file Refcounted_Auto_Ptr.inl. References ACE_Refcounted_Auto_Ptr_Rep< X, ACE_LOCK >::reset(). 
  | 
  
      
  | 
  |||||
| 
 Declare the dynamic allocation hooks. 
 Definition at line 102 of file Refcounted_Auto_Ptr.h.  | 
  
      
  | 
  |||||
| 
 Protect operations on the . 
 Definition at line 109 of file Refcounted_Auto_Ptr.h. Referenced by ACE_Refcounted_Auto_Ptr< X, ACE_LOCK >::operator!=(), ACE_Refcounted_Auto_Ptr< X, ACE_LOCK >::operator=(), and ACE_Refcounted_Auto_Ptr< X, ACE_LOCK >::operator==().  | 
  
 
1.3.6