Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

immer::unsafe_refcount_policy Struct Reference

#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

Constructor & Destructor Documentation

◆ unsafe_refcount_policy() [1/2]

immer::unsafe_refcount_policy::unsafe_refcount_policy ( )
inline

Definition at line 28 of file unsafe_refcount_policy.hpp.

◆ unsafe_refcount_policy() [2/2]

immer::unsafe_refcount_policy::unsafe_refcount_policy ( disowned  )
inline

Definition at line 29 of file unsafe_refcount_policy.hpp.

Member Function Documentation

◆ dec()

bool immer::unsafe_refcount_policy::dec ( )
inline

Definition at line 32 of file unsafe_refcount_policy.hpp.

References refcount.

◆ dec_unsafe()

void immer::unsafe_refcount_policy::dec_unsafe ( )
inline

Definition at line 33 of file unsafe_refcount_policy.hpp.

References refcount.

◆ inc()

void immer::unsafe_refcount_policy::inc ( )
inline

Definition at line 31 of file unsafe_refcount_policy.hpp.

References refcount.

◆ unique()

bool immer::unsafe_refcount_policy::unique ( )
inline

Definition at line 34 of file unsafe_refcount_policy.hpp.

References refcount.

Member Data Documentation

◆ refcount

int immer::unsafe_refcount_policy::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:
Released under the MIT license