#include <pointer.hpp>


When the last shared pointer goes out of scope, the object it's pointing to will be deleted. Assigning a new pointer value to a shared pointer object will break its link to the old object.
Definition at line 189 of file pointer.hpp.
Public Member Functions | |
| operator const T * () const | |
| operator T * () | |
| T & | operator* () |
| const T & | operator* () const |
| T * | operator-> () |
| const T * | operator-> () const |
| shared_pointer & | operator= (T *data) |
| shared_pointer & | operator= (const shared_pointer &p) |
| bool | operator== (const shared_pointer &p) const |
| T * | ptr () |
| const T * | ptr () const |
| shared_pointer (const shared_pointer &p) | |
| shared_pointer (T *data=0) | |
| T & | value () |
| const T & | value () const |
| ~shared_pointer () | |
Private Attributes | |
| shared_pointer_impl< T, ARRAY_PTR > * | impl |
| shared_pointer | ( | T * | data = 0 |
) | [inline] |
| shared_pointer | ( | const shared_pointer< T, ARRAY_PTR > & | p | ) | [inline] |
| ~shared_pointer | ( | ) | [inline] |
| operator const T * | ( | ) | const [inline] |
| operator T * | ( | ) | [inline] |
| T & operator* | ( | ) | [inline] |
| const T & operator* | ( | ) | const [inline] |
| T * operator-> | ( | ) | [inline] |
| const T * operator-> | ( | ) | const [inline] |
| shared_pointer< T, ARRAY_PTR > & operator= | ( | T * | data | ) | [inline] |
| shared_pointer< T, ARRAY_PTR > & operator= | ( | const shared_pointer< T, ARRAY_PTR > & | p | ) | [inline] |
| bool operator== | ( | const shared_pointer< T, ARRAY_PTR > & | p | ) | const [inline] |
| T * ptr | ( | ) | [inline] |
| const T * ptr | ( | ) | const [inline] |
| T & value | ( | ) | [inline] |
| const T & value | ( | ) | const [inline] |
shared_pointer_impl<T, ARRAY_PTR>* impl [private] |
Definition at line 192 of file pointer.hpp.
Referenced by shared_pointer::operator const T *(), shared_pointer::operator T *(), shared_pointer::operator*(), shared_pointer::operator->(), shared_pointer::operator=(), shared_pointer::operator==(), shared_pointer::ptr(), shared_pointer::shared_pointer(), shared_pointer::value(), and shared_pointer::~shared_pointer().
1.5.5