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>
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.
◆ ACE_Refcounted_Auto_Ptr_Rep()
ACE_Refcounted_Auto_Ptr_Rep::ACE_Refcounted_Auto_Ptr_Rep |
( |
X * |
p = 0 | ) |
|
|
inlineprivate |
◆ ~ACE_Refcounted_Auto_Ptr_Rep()
ACE_Refcounted_Auto_Ptr_Rep::~ACE_Refcounted_Auto_Ptr_Rep |
( |
void |
| ) |
|
|
inlineprivate |
◆ attach()
Increase the reference count on rep.
- Return values
-
◆ count()
long ACE_Refcounted_Auto_Ptr_Rep::count |
( |
void |
| ) |
const |
|
inlineprivate |
Get the reference count value.
◆ create()
Create a ACE_Refcounted_Auto_Ptr_Rep<X, ACE_LOCK> and initialize the reference count.
◆ detach()
Decreases the reference count and and deletes rep if there are no more references to rep.
Precondition (rep != 0)
◆ get()
X * ACE_Refcounted_Auto_Ptr_Rep::get |
( |
void |
| ) |
const |
|
inlineprivate |
◆ internal_create()
Allocate a new ACE_Refcounted_Auto_Ptr_Rep<X, ACE_LOCK> instance, returning NULL if it cannot be created.
◆ ACE_Refcounted_Auto_Ptr< X, ACE_LOCK >
◆ ACE_ALLOC_HOOK_DECLARE
ACE_Refcounted_Auto_Ptr_Rep::ACE_ALLOC_HOOK_DECLARE |
|
private |
Declare the dynamic allocation hooks.
◆ ptr_
◆ ref_count_
ACE_Atomic_Op<ACE_LOCK, long> ACE_Refcounted_Auto_Ptr_Rep::ref_count_ |
|
mutableprivate |
The documentation for this class was generated from the following files: