|
SObjectizer
5.5
|
The base class for the object with a reference counting. More...
#include <atomic_refcounted.hpp>
Public Member Functions | |
| atomic_refcounted_t (const atomic_refcounted_t &)=delete | |
| atomic_refcounted_t & | operator= (const atomic_refcounted_t &)=delete |
| atomic_refcounted_t () noexcept | |
| Default constructor. More... | |
| ~atomic_refcounted_t () noexcept=default | |
| Destructor. More... | |
| void | inc_ref_count () noexcept |
| Increments reference count. More... | |
| unsigned long | dec_ref_count () noexcept |
| Decrement reference count. More... | |
Private Attributes | |
| atomic_counter_t | m_ref_counter |
| Object reference count. More... | |
The base class for the object with a reference counting.
Should be used as a base class. The smart reference for such objects should be defined for derived classes (for example agent_ref_t).
|
delete |
Disabled.
|
inlinenoexcept |
Default constructor.
Sets reference counter to 0.
|
defaultnoexcept |
Destructor.
Do nothing.
|
inlinenoexcept |
Decrement reference count.
|
inlinenoexcept |
Increments reference count.
|
delete |
Disabled.
|
private |
Object reference count.
1.8.14