Base helper class, used internally by shared_ptr.
More...
#include </home/travis/build/forGGe/theCore/lib/cpp/export/ecl/memory.hpp>
|
| aux () |
| Constructs auxilary object. More...
|
|
size_t | inc () |
| Incremets reference counter and returns new value. More...
|
|
size_t | dec () |
| Decrements reference counter and returns new value. More...
|
|
size_t | ref () |
| Returns reference counter. More...
|
|
size_t | weak_inc () |
| Incremets weak reference counter and returns new value. More...
|
|
size_t | weak_dec () |
| Decrements weak reference counter and returns new value. More...
|
|
size_t | weak_ref () |
| Returns wek reference counter. More...
|
|
virtual void | destroy ()=0 |
| Destroys aux and deallocates memory if both shared and weak counter is zero. More...
|
|
Base helper class, used internally by shared_ptr.
◆ aux()
Constructs auxilary object.
◆ inc()
Incremets reference counter and returns new value.
◆ dec()
Decrements reference counter and returns new value.
◆ ref()
Returns reference counter.
◆ weak_inc()
size_t ecl::aux::weak_inc |
( |
| ) |
|
|
inline |
Incremets weak reference counter and returns new value.
◆ weak_dec()
size_t ecl::aux::weak_dec |
( |
| ) |
|
|
inline |
Decrements weak reference counter and returns new value.
◆ weak_ref()
size_t ecl::aux::weak_ref |
( |
| ) |
|
|
inline |
Returns wek reference counter.
◆ destroy()
virtual void ecl::aux::destroy |
( |
| ) |
|
|
pure virtual |
Destroys aux and deallocates memory if both shared and weak counter is zero.
Destructor of the managed object must not be called here. Must be called to destroy whole object.
Implemented in mock_aux.
◆ m_cnt
◆ m_weak
The documentation for this class was generated from the following file: