#include <SharedPtr.hpp>
Inheritance diagram for Core::SharedPtr< T >:

Public Member Functions | |
| SharedPtr () | |
| Default constructor. | |
| SharedPtr (T *pPointer) | |
| Construction from a raw pointer. | |
| SharedPtr (const SharedPtr< T > &oPointer) | |
| Copy constructor. | |
| ~SharedPtr () | |
| Destructor. | |
| SharedPtr & | operator= (const SharedPtr< T > &oPointer) |
| Assignment operator. | |
| void | Reset (T *pPointer=nullptr) |
| Change pointer ownership. | |
Private Attributes | |
| long * | m_pRefCnt |
| The pointer reference count. | |
| Core::SharedPtr< T >::SharedPtr | ( | ) | [inline] |
Default constructor.
Sets pointer and reference count to NULL.
| Core::SharedPtr< T >::SharedPtr | ( | T * | pPointer | ) | [inline, explicit] |
Construction from a raw pointer.
Takes ownership of a new pointer.
| Core::SharedPtr< T >::SharedPtr | ( | const SharedPtr< T > & | oPointer | ) | [inline] |
Copy constructor.
Takes shared ownership of another pointer.
| Core::SharedPtr< T >::~SharedPtr | ( | ) | [inline] |
Destructor.
Frees the pointer if the last reference.
| SharedPtr< T > & Core::SharedPtr< T >::operator= | ( | const SharedPtr< T > & | oPointer | ) | [inline] |
Assignment operator.
Frees the current pointer if the last reference and takes shared ownership of another pointer.
| void Core::SharedPtr< T >::Reset | ( | T * | pPointer = nullptr |
) | [inline] |
Change pointer ownership.
Frees the current pointer if the last reference and takes shared ownership of another pointer, if provided.
long* Core::SharedPtr< T >::m_pRefCnt [private] |
The pointer reference count.
1.5.2