Stxxl
1.4.0
|
Behaves much like a Pointer, plus deleteing the referred object with it's last reference and ability to unify, i.e. make and refer a copy if the original object was shared. More...
#include <shared_object.h>
Public Member Functions | |
const_shared_object_pointer (const shared_object_pointer< C > &shared_pointer) | |
const_shared_object_pointer () | |
const_shared_object_pointer (const C *pointer) | |
const_shared_object_pointer (const const_shared_object_pointer &shared_pointer) | |
const_shared_object_pointer & | operator= (const const_shared_object_pointer &shared_pointer) |
const_shared_object_pointer & | operator= (const C *pointer) |
~const_shared_object_pointer () | |
const C & | operator* () const |
const C * | operator-> () const |
operator const C * () const | |
const C * | get () const |
bool | operator== (const const_shared_object_pointer &shared_pointer) const |
operator bool () const | |
bool | valid () const |
bool | empty () const |
bool | unique () const |
if the object is referred by this shared_object_pointer only | |
Private Member Functions | |
void | new_reference () |
void | new_reference (const C *o) |
void | delete_reference () |
Private Attributes | |
const C * | ptr |
Behaves much like a Pointer, plus deleteing the referred object with it's last reference and ability to unify, i.e. make and refer a copy if the original object was shared.
Use with objects derived from shared_object. Similar to boost/shared_ptr.
Definition at line 114 of file shared_object.h.
stxxl::const_shared_object_pointer< C >::const_shared_object_pointer | ( | const shared_object_pointer< C > & | shared_pointer | ) | [inline] |
Definition at line 128 of file shared_object.h.
stxxl::const_shared_object_pointer< C >::const_shared_object_pointer | ( | ) | [inline] |
Definition at line 132 of file shared_object.h.
stxxl::const_shared_object_pointer< C >::const_shared_object_pointer | ( | const C * | pointer | ) | [inline] |
Definition at line 135 of file shared_object.h.
stxxl::const_shared_object_pointer< C >::const_shared_object_pointer | ( | const const_shared_object_pointer< C > & | shared_pointer | ) | [inline] |
Definition at line 139 of file shared_object.h.
stxxl::const_shared_object_pointer< C >::~const_shared_object_pointer | ( | ) | [inline] |
Definition at line 154 of file shared_object.h.
void stxxl::const_shared_object_pointer< C >::delete_reference | ( | ) | [inline, private] |
Definition at line 124 of file shared_object.h.
bool stxxl::const_shared_object_pointer< C >::empty | ( | ) | const [inline] |
Definition at line 184 of file shared_object.h.
const C* stxxl::const_shared_object_pointer< C >::get | ( | ) | const [inline] |
Definition at line 172 of file shared_object.h.
void stxxl::const_shared_object_pointer< C >::new_reference | ( | ) | [inline, private] |
Definition at line 118 of file shared_object.h.
References stxxl::const_shared_object_pointer< C >::new_reference().
Referenced by stxxl::const_shared_object_pointer< C >::new_reference().
void stxxl::const_shared_object_pointer< C >::new_reference | ( | const C * | o | ) | [inline, private] |
Definition at line 121 of file shared_object.h.
stxxl::const_shared_object_pointer< C >::operator bool | ( | ) | const [inline] |
Definition at line 178 of file shared_object.h.
stxxl::const_shared_object_pointer< C >::operator const C * | ( | ) | const [inline] |
Definition at line 169 of file shared_object.h.
const C& stxxl::const_shared_object_pointer< C >::operator* | ( | ) | const [inline] |
Definition at line 157 of file shared_object.h.
const C* stxxl::const_shared_object_pointer< C >::operator-> | ( | ) | const [inline] |
Definition at line 163 of file shared_object.h.
const_shared_object_pointer& stxxl::const_shared_object_pointer< C >::operator= | ( | const const_shared_object_pointer< C > & | shared_pointer | ) | [inline] |
Definition at line 143 of file shared_object.h.
References stxxl::const_shared_object_pointer< C >::ptr.
const_shared_object_pointer& stxxl::const_shared_object_pointer< C >::operator= | ( | const C * | pointer | ) | [inline] |
Definition at line 146 of file shared_object.h.
bool stxxl::const_shared_object_pointer< C >::operator== | ( | const const_shared_object_pointer< C > & | shared_pointer | ) | const [inline] |
Definition at line 175 of file shared_object.h.
References stxxl::const_shared_object_pointer< C >::ptr.
bool stxxl::const_shared_object_pointer< C >::unique | ( | ) | const [inline] |
if the object is referred by this shared_object_pointer only
Definition at line 188 of file shared_object.h.
bool stxxl::const_shared_object_pointer< C >::valid | ( | ) | const [inline] |
Definition at line 181 of file shared_object.h.
const C* stxxl::const_shared_object_pointer< C >::ptr [private] |
Definition at line 116 of file shared_object.h.
Referenced by stxxl::const_shared_object_pointer< C >::operator=(), and stxxl::const_shared_object_pointer< C >::operator==().