|
ACE 7.0.9
|
An ACE_Refcounted_Auto_Ptr_Rep object encapsulates a pointer to an object of type X. It uses a lock object of type ACE_LOCK to protect access to the reference count. More...
#include <Refcounted_Auto_Ptr.h>

Private Member Functions | |
| X * | get () const |
| Get the pointer value. More... | |
| long | count () const |
| Get the reference count value. More... | |
| ACE_Refcounted_Auto_Ptr_Rep (X *p=0) | |
| ~ACE_Refcounted_Auto_Ptr_Rep () | |
Static Private Member Functions | |
| static ACE_Refcounted_Auto_Ptr_Rep< X, ACE_LOCK > * | internal_create (X *p) |
| static ACE_Refcounted_Auto_Ptr_Rep< X, ACE_LOCK > * | create (X *p) |
| static ACE_Refcounted_Auto_Ptr_Rep< X, ACE_LOCK > * | attach (ACE_Refcounted_Auto_Ptr_Rep< X, ACE_LOCK > *&rep) |
| static void | detach (ACE_Refcounted_Auto_Ptr_Rep< X, ACE_LOCK > *&rep) |
Private Attributes | |
| ACE_ALLOC_HOOK_DECLARE | |
| Declare the dynamic allocation hooks. More... | |
| ACE_Auto_Basic_Ptr< X > | ptr_ |
| Pointer to the result. More... | |
| ACE_Atomic_Op< ACE_LOCK, long > | ref_count_ |
| Reference count. More... | |
Friends | |
| class | ACE_Refcounted_Auto_Ptr< X, ACE_LOCK > |
An ACE_Refcounted_Auto_Ptr_Rep object encapsulates a pointer to an object of type X. It uses a lock object of type ACE_LOCK to protect access to the reference count.
ACE_Refcounted_Auto_Ptr_Rep is used internally by the ACE_Refcounted_Auto_Ptr class and is only accessible through it.
|
inlineprivate |
|
inlineprivate |
|
inlinestaticprivate |
Increase the reference count on rep.
a rep if success, 0 if there's an error obtaining the lock on rep.
|
inlineprivate |
Get the reference count value.
|
inlinestaticprivate |
Create a ACE_Refcounted_Auto_Ptr_Rep<X, ACE_LOCK> and initialize the reference count.
|
inlinestaticprivate |
Decreases the reference count and and deletes rep if there are no more references to rep.
Precondition (rep != 0)
|
inlineprivate |
Get the pointer value.
|
inlinestaticprivate |
Allocate a new ACE_Refcounted_Auto_Ptr_Rep<X, ACE_LOCK> instance, returning NULL if it cannot be created.
|
friend |
|
private |
Declare the dynamic allocation hooks.
|
private |
Pointer to the result.
|
mutableprivate |
Reference count.