#include <Refcounted_Auto_Ptr.h>
Collaboration diagram for ACE_Refcounted_Auto_Ptr:
Public Methods | |
ACE_Refcounted_Auto_Ptr (X *p=0) | |
Constructor that initializes an ACE_Refcounted_Auto_Ptr to point to the result immediately. More... | |
ACE_Refcounted_Auto_Ptr (const ACE_Refcounted_Auto_Ptr< X, ACE_LOCK > &r) | |
Copy constructor binds the created object and r to the same ACE_Refcounted_Auto_Ptr_Rep . An ACE_Refcounted_Auto_Ptr_Rep is created if necessary. More... | |
virtual | ~ACE_Refcounted_Auto_Ptr (void) |
Destructor. More... | |
void | operator= (const ACE_Refcounted_Auto_Ptr< X, ACE_LOCK > &r) |
Assignment operator that binds the current object and r to the same ACE_Refcounted_Auto_Ptr_Rep . An ACE_Refcounted_Auto_Ptr_Rep is created if necessary. More... | |
int | operator== (const ACE_Refcounted_Auto_Ptr< X, ACE_LOCK > &r) const |
Equality operator that returns 1 if both ACE_Refcounted_Auto_Ptr<X, ACE_LOCK> objects point to the same ACE_Refcounted_Auto_Ptr_Rep<X, ACE_LOCK> object. Attention: It also returns 1 if both objects have just been instantiated and not used yet. More... | |
int | operator!= (const ACE_Refcounted_Auto_Ptr< X, ACE_LOCK > &r) const |
Inequality operator, which is the opposite of equality. More... | |
X * | operator-> (void) const |
Redirection operator. More... | |
X & | operator * () const |
X * | release (void) |
Sets the pointer value to 0 and returns its old value. More... | |
void | reset (X *p=0) |
Invokes delete on the previous pointer value and then sets the pointer value to the specified value. More... | |
X * | get (void) |
Get the pointer value. More... | |
int | count (void) const |
Get the reference count value. More... | |
int | null (void) const |
Allows us to check for NULL on all ACE_Refcounted_Auto_Ptr objects. More... | |
Public Attributes | |
ACE_ALLOC_HOOK_DECLARE | |
Declare the dynamic allocation hooks. More... | |
Protected Types | |
typedef ACE_Refcounted_Auto_Ptr_Rep< X, ACE_LOCK > | AUTO_REFCOUNTED_PTR_REP |
the ACE_Refcounted_Auto_Ptr_Rep. More... | |
Protected Attributes | |
AUTO_REFCOUNTED_PTR_REP * | rep_ |
Protect operations on the <ACE_Refcounted_Auto_Ptr>. More... |
|
the ACE_Refcounted_Auto_Ptr_Rep.
|
|
Constructor that initializes an
|
|
Copy constructor binds the created object and
|
|
Destructor.
|
|
Get the reference count value.
|
|
Get the pointer value.
|
|
Allows us to check for NULL on all ACE_Refcounted_Auto_Ptr objects.
|
|
|
|
Inequality operator, which is the opposite of equality.
|
|
Redirection operator.
|
|
Assignment operator that binds the current object and
|
|
Equality operator that returns 1 if both ACE_Refcounted_Auto_Ptr<X, ACE_LOCK> objects point to the same ACE_Refcounted_Auto_Ptr_Rep<X, ACE_LOCK> object. Attention: It also returns 1 if both objects have just been instantiated and not used yet.
|
|
Sets the pointer value to 0 and returns its old value.
|
|
Invokes delete on the previous pointer value and then sets the pointer value to the specified value.
|
|
Declare the dynamic allocation hooks.
|
|
Protect operations on the <ACE_Refcounted_Auto_Ptr>.
|