Class to manage the local pointer instance. More...
#include <RefCountedPointer.hpp>
Public Member Functions | |
| Instance (const std::shared_ptr< RefCountedPointer< T > > &parent) | |
| Constructor. More... | |
| ~Instance () | |
| Destructor. More... | |
| Instance (const Instance &)=delete | |
| Instance & | operator= (const Instance &)=delete |
| Instance (Instance &&)=default | |
| Instance & | operator= (Instance &&)=default |
| operator bool () const | |
| operator to check if the pointer is valid. More... | |
| T * | operator-> () const |
| operator to call the T methods. More... | |
Class to manage the local pointer instance.
It will increase the reference count on construction and decrease it on destruction. Provides a facade to access the pointee.
|
inlineexplicit |
Constructor.
| parent | Shared pointer reference to its RefCountedPointer. |
|
inline |
Destructor.
|
inline |
operator to check if the pointer is valid.
|
inline |
operator to call the T methods.