Manages the reference count for a shared pointer. More...
#include <SSharedPtr.hpp>
Public Member Functions | |
| SSharedCount (T *ptr) | |
| Constructor. | |
| ~SSharedCount () | |
| Destructor. | |
| void | incRefCount () |
| Increments the reference count. | |
| void | decRefCount () |
| Decrements the reference count. | |
Manages the reference count for a shared pointer.
| T | The type of the pointer. |
| Disposer | The disposer class used to delete the pointer. |
This class maintains the reference count and ensures that the pointer is deleted when the reference count reaches zero.
Definition at line 61 of file SSharedPtr.hpp.
|
inline |
|
inline |
Destructor.
Deletes the managed pointer using the disposer.
Definition at line 76 of file SSharedPtr.hpp.
|
inline |
Decrements the reference count.
Deletes the managed pointer if the reference count reaches zero.
Definition at line 95 of file SSharedPtr.hpp.
|
inline |
Increments the reference count.
Definition at line 85 of file SSharedPtr.hpp.