|
SObjectizer
5.8
|
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. | |
| ~atomic_refcounted_t () noexcept=default | |
| Destructor. | |
| void | inc_ref_count () noexcept |
| Increments reference count. | |
| unsigned long | dec_ref_count () noexcept |
| Decrement reference count. | |
Private Attributes | |
| atomic_counter_t | m_ref_counter |
| Object reference count. | |
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).
Definition at line 34 of file atomic_refcounted.hpp.
|
delete |
Disabled.
|
inlinenoexcept |
Default constructor.
Sets reference counter to 0.
Definition at line 50 of file atomic_refcounted.hpp.
|
defaultnoexcept |
Destructor.
Do nothing.
|
inlinenoexcept |
Decrement reference count.
Definition at line 70 of file atomic_refcounted.hpp.
|
inlinenoexcept |
Increments reference count.
Definition at line 60 of file atomic_refcounted.hpp.
|
delete |
Disabled.
|
private |
Object reference count.
Definition at line 77 of file atomic_refcounted.hpp.