#include <Refcounted_Auto_Ptr.h>
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 <ace_refcounted_auto_ptr>. | |
|
|||||
|
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 |
|
||||||||||
|
|
|
||||||||||
|
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>.
|
1.3.9.1