#include <Bound_Ptr.h>
Collaboration diagram for ACE_Strong_Bound_Ptr:
Public Methods | |
ACE_EXPLICIT | ACE_Strong_Bound_Ptr (X *p=0) |
Constructor that initializes an ACE_Strong_Bound_Ptr to point to the object <p> immediately. More... | |
ACE_EXPLICIT | ACE_Strong_Bound_Ptr (auto_ptr< X > p) |
Constructor that initializes an ACE_Strong_Bound_Ptr by stealing ownership of an object from an auto_ptr. More... | |
ACE_Strong_Bound_Ptr (const ACE_Strong_Bound_Ptr< X, ACE_LOCK > &r) | |
Copy constructor binds <this> and <r> to the same object. More... | |
ACE_Strong_Bound_Ptr (const ACE_Weak_Bound_Ptr< X, ACE_LOCK > &r) | |
Constructor binds <this> and <r> to the same object. More... | |
~ACE_Strong_Bound_Ptr (void) | |
Destructor. More... | |
void | operator= (const ACE_Strong_Bound_Ptr< X, ACE_LOCK > &r) |
Assignment operator that binds <this> and <r> to the same object. More... | |
void | operator= (const ACE_Weak_Bound_Ptr< X, ACE_LOCK > &r) |
Assignment operator that binds <this> and <r> to the same object. More... | |
int | operator== (const ACE_Strong_Bound_Ptr< X, ACE_LOCK > &r) const |
Equality operator that returns 1 if both ACE_Strong_Bound_Ptr instances point to the same underlying object. More... | |
int | operator== (const ACE_Weak_Bound_Ptr< X, ACE_LOCK > &r) const |
Equality operator that returns 1 if the ACE_Strong_Bound_Ptr and ACE_Weak_Bound_Ptr objects point to the same underlying object. More... | |
int | operator== (X *p) const |
Equality operator that returns 1 if the ACE_Strong_Bound_Ptr and the raw pointer point to the same underlying object. More... | |
int | operator!= (const ACE_Strong_Bound_Ptr< X, ACE_LOCK > &r) const |
Inequality operator, which is the opposite of equality. More... | |
int | operator!= (const ACE_Weak_Bound_Ptr< X, ACE_LOCK > &r) const |
Inequality operator, which is the opposite of equality. More... | |
int | operator!= (X *p) const |
Inequality operator, which is the opposite of equality. More... | |
X * | operator-> (void) const |
Redirection operator. More... | |
X & | operator * (void) const |
Dereference operator. More... | |
X * | get (void) |
Get the pointer value. More... | |
void | reset (X *p=0) |
Resets the ACE_Strong_Bound_Ptr to refer to a different underlying object. More... | |
void | reset (auto_ptr< X > p) |
Resets the ACE_Strong_Bound_Ptr to refer to a different underlying object, ownership of which is stolen from the auto_ptr. More... | |
int | null (void) const |
Allows us to check for NULL on all ACE_Strong_Bound_Ptr objects. More... | |
Public Attributes | |
ACE_ALLOC_HOOK_DECLARE | |
Declare the dynamic allocation hooks. More... | |
Private Types | |
typedef ACE_Bound_Ptr_Counter< ACE_LOCK > | COUNTER |
The ACE_Bound_Ptr_Counter type. More... | |
Private Attributes | |
COUNTER * | counter_ |
The reference counter. More... | |
X * | ptr_ |
The underlying object. More... | |
Friends | |
class | ACE_Weak_Bound_Ptr< X, ACE_LOCK > |
Assigning or copying instances of an ACE_Strong_Bound_Ptr will automatically increment the reference count of the underlying object. When the last instance of an ACE_Strong_Bound_Ptr that references a particular object is destroyed or overwritten, it will invoke delete on its underlying pointer.
|
The ACE_Bound_Ptr_Counter type.
|
|
Constructor that initializes an ACE_Strong_Bound_Ptr to point to the object <p> immediately.
|
|
Constructor that initializes an ACE_Strong_Bound_Ptr by stealing ownership of an object from an auto_ptr.
|
|
Copy constructor binds <this> and <r> to the same object.
|
|
Constructor binds <this> and <r> to the same object.
|
|
Destructor.
|
|
Get the pointer value.
|
|
Allows us to check for NULL on all ACE_Strong_Bound_Ptr objects.
|
|
Dereference operator.
|
|
Inequality operator, which is the opposite of equality.
|
|
Inequality operator, which is the opposite of equality.
|
|
Inequality operator, which is the opposite of equality.
|
|
Redirection operator.
|
|
Assignment operator that binds <this> and <r> to the same object.
|
|
Assignment operator that binds <this> and <r> to the same object.
|
|
Equality operator that returns 1 if the ACE_Strong_Bound_Ptr and the raw pointer point to the same underlying object.
|
|
Equality operator that returns 1 if the ACE_Strong_Bound_Ptr and ACE_Weak_Bound_Ptr objects point to the same underlying object.
|
|
Equality operator that returns 1 if both ACE_Strong_Bound_Ptr instances point to the same underlying object.
|
|
Resets the ACE_Strong_Bound_Ptr to refer to a different underlying object, ownership of which is stolen from the auto_ptr.
|
|
Resets the ACE_Strong_Bound_Ptr to refer to a different underlying object.
|
|
|
|
Declare the dynamic allocation hooks.
|
|
The reference counter.
|
|
The underlying object.
|