#include <SharedPointer.h> [code]
Collaboration diagram for Utils::Memory::SharedPointer< T >:

SharedPointer is a smart pointer to a polymorphic object of base class T. SharedPointer implements implicit sharing of the object. This means that copying the SharedPointer increases the internal reference count instead of copying the object. However the object is copied automatically when the shared pointer is used in non-const context.
Definition at line 60 of file SharedPointer.h.
Public Member Functions | |
| void | detach () |
| T & | operator * () |
| const T & | operator * () const |
| T * | operator-> () |
| const T * | operator-> () const |
| operator T * () | |
| operator const T * () const | |
| T * | data () |
| const T * | data () const |
| const T * | constData () const |
| bool | operator== (const SharedPointer &other) const |
| bool | operator!= (const SharedPointer &other) const |
| SharedPointer () | |
| SharedPointer (T *data) | |
| ~SharedPointer () | |
| SharedPointer (const SharedPointer &o) | |
| SharedPointer & | operator= (const SharedPointer &o) |
| bool | operator! () const |
Private Member Functions | |
| void | detach_helper () |
Private Attributes | |
| SharedData * | d |
Classes | |
| class | SharedData |
|
|||||||||
|
Definition at line 77 of file SharedPointer.h. |
|
||||||||||
|
Definition at line 118 of file SharedPointer.h. |
|
|||||||||
|
Definition at line 79 of file SharedPointer.h. |
|
||||||||||
|
Definition at line 81 of file SharedPointer.h. |
|
|||||||||
|
Definition at line 72 of file SharedPointer.h. |
|
|||||||||
|
Definition at line 71 of file SharedPointer.h. |
|
|||||||||
|
Definition at line 70 of file SharedPointer.h. |
|
|||||||||
|
Definition at line 63 of file SharedPointer.h. |
|
|||||||||
|
Definition at line 122 of file SharedPointer.h. |
|
|||||||||
|
Definition at line 65 of file SharedPointer.h. |
|
|||||||||
|
Definition at line 64 of file SharedPointer.h. |
|
|||||||||
|
Definition at line 69 of file SharedPointer.h. |
|
|||||||||
|
Definition at line 68 of file SharedPointer.h. |
|
|||||||||
|
Definition at line 93 of file SharedPointer.h. |
|
||||||||||
|
Definition at line 75 of file SharedPointer.h. |
|
|||||||||
|
Definition at line 67 of file SharedPointer.h. |
|
|||||||||
|
Definition at line 66 of file SharedPointer.h. |
|
||||||||||
|
Definition at line 82 of file SharedPointer.h. |
|
||||||||||
|
Definition at line 74 of file SharedPointer.h. |
|
|||||
|
Definition at line 114 of file SharedPointer.h. |