ACE_Intrusive_Auto_Ptr< X > Class Template ReferenceThis class implements support for a reference counted auto_ptr. It assumes reference counting abilities of the parameterizing class. More...
Collaboration diagram for ACE_Intrusive_Auto_Ptr< X >:
Detailed Descriptiontemplate<class X>
This class implements support for a reference counted auto_ptr. It assumes reference counting abilities of the parameterizing class.
|
typedef void(* ACE_Intrusive_Auto_Ptr< X >::unspecified_bool_type)(ACE_Intrusive_Auto_Ptr< X > ***) [protected] |
ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE ACE_Intrusive_Auto_Ptr< X >::ACE_Intrusive_Auto_Ptr | ( | X * | p = 0 , |
|
bool | addref = true | |||
) | [inline] |
Constructor that initializes an ACE_Intrusive_Auto_Ptr to the specified pointer value.
ACE_INLINE ACE_Intrusive_Auto_Ptr< X >::ACE_Intrusive_Auto_Ptr | ( | const ACE_Intrusive_Auto_Ptr< X > & | r | ) | [inline] |
Copy constructor binds the new ACE_Intrusive_Auto_Ptr to the representation object referenced by r. An ACE_Intrusive_Auto_Ptr_Rep is created if necessary.
ACE_INLINE ACE_Intrusive_Auto_Ptr< X >::ACE_Intrusive_Auto_Ptr | ( | const ACE_Intrusive_Auto_Ptr< U > & | rhs | ) | [inline] |
ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_Intrusive_Auto_Ptr< X >::~ACE_Intrusive_Auto_Ptr | ( | void | ) | [inline, virtual] |
Destructor. Releases the reference to the underlying representation. If the release of that reference causes its reference count to reach 0, the representation object will also be destroyed.
static void ACE_Intrusive_Auto_Ptr< X >::unspecified_bool | ( | ACE_Intrusive_Auto_Ptr< X > *** | ) | [inline, static, protected] |
Used to define a proper boolean conversion for "if (sp) ...".
ACE_Intrusive_Auto_Ptr< X >::operator unspecified_bool_type | ( | ) | const [inline] |
Enables "if (sp) ...".
ACE_INLINE void ACE_Intrusive_Auto_Ptr< X >::operator= | ( | const ACE_Intrusive_Auto_Ptr< X > & | r | ) | [inline] |
Assignment operator that binds the current object and r to the same ACE_Intrusive_Auto_Ptr_Rep. An ACE_Intrusive_Auto_Ptr_Rep is created if necessary.
ACE_INLINE X * ACE_Intrusive_Auto_Ptr< X >::operator-> | ( | void | ) | const [inline] |
Redirection operator.
ACE_INLINE X & ACE_Intrusive_Auto_Ptr< X >::operator* | ( | ) | const [inline] |
Accessor method.
ACE_INLINE X * ACE_Intrusive_Auto_Ptr< X >::release | ( | void | ) | [inline] |
Releases the reference to the underlying representation object.
The | pointer value prior to releasing it. |
ACE_INLINE void ACE_Intrusive_Auto_Ptr< X >::reset | ( | X * | p = 0 |
) | [inline] |
Releases the current pointer value and then sets a new pointer value specified by p.
ACE_INLINE X * ACE_Intrusive_Auto_Ptr< X >::get | ( | void | ) | const [inline] |
Get the pointer value.
long ACE_Intrusive_Auto_Ptr< X >::count | ( | void | ) | const |
Get the reference count value.
ACE_Intrusive_Auto_Ptr< X >::ACE_ALLOC_HOOK_DECLARE |
Returns true
if this object does not contain a valid pointer.
Declare the dynamic allocation hooks.
X* ACE_Intrusive_Auto_Ptr< X >::rep_ [protected] |
Protect operations on the ACE_Intrusive_Auto_Ptr.