|
|
delpi
0.0.1
DElta-complete LP solver
|
Utility class to be inherited from to obtain compatibility with the intrusive_ptr. More...
#include <SelfReferenceCountingObject.hpp>
Protected Member Functions | |
| virtual | ~SelfReferenceCountingObject ()=default |
| Virtual destructor for the SelfReferenceCountingObject. | |
Private Attributes | |
| std::size_t | ref_count_ {0} |
| Reference counter. | |
Utility class to be inherited from to obtain compatibility with the intrusive_ptr.
It implements both AddRef and Release methods and supports both thread safe and unsafe reference counting. This class (and its subclasses) are meant to be initialised and used through an intrusive_ptr.
Definition at line 34 of file SelfReferenceCountingObject.hpp.
|
protectedvirtualdefault |
Virtual destructor for the SelfReferenceCountingObject.
Needed to ensure that the derived classes are deleted correctly.