Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
#include <unsafe_refcount_policy.hpp>
Public Types | |
using | spinlock_type = no_spinlock |
Public Member Functions | |
unsafe_refcount_policy () | |
unsafe_refcount_policy (disowned) | |
void | inc () |
bool | dec () |
void | dec_unsafe () |
bool | unique () |
Public Attributes | |
int | refcount |
Detailed Description
A reference counting policy implemented using a raw int
count. It is not thread-safe.
Definition at line 22 of file unsafe_refcount_policy.hpp.
Member Typedef Documentation
◆ spinlock_type
Definition at line 24 of file unsafe_refcount_policy.hpp.
Constructor & Destructor Documentation
◆ unsafe_refcount_policy() [1/2]
|
inline |
Definition at line 28 of file unsafe_refcount_policy.hpp.
◆ unsafe_refcount_policy() [2/2]
|
inline |
Definition at line 29 of file unsafe_refcount_policy.hpp.
Member Function Documentation
◆ dec()
|
inline |
Definition at line 32 of file unsafe_refcount_policy.hpp.
References refcount.
◆ dec_unsafe()
|
inline |
Definition at line 33 of file unsafe_refcount_policy.hpp.
References refcount.
◆ inc()
|
inline |
Definition at line 31 of file unsafe_refcount_policy.hpp.
References refcount.
◆ unique()
|
inline |
Definition at line 34 of file unsafe_refcount_policy.hpp.
References refcount.
Member Data Documentation
◆ refcount
|
mutable |
Definition at line 26 of file unsafe_refcount_policy.hpp.
Referenced by dec(), dec_unsafe(), inc(), and unique().
The documentation for this struct was generated from the following file:
- src/immer/refcount/unsafe_refcount_policy.hpp