Reference counter for various OpenFOAM components. More...
Classes | |
struct | zero |
A non-counting (dummy) refCount. More... | |
Public Member Functions | |
constexpr | refCount () noexcept |
Construct null initializing count to 0. More... | |
int | count () const noexcept |
Return the current reference count. More... | |
bool | unique () const noexcept |
Return true if the reference count is zero. More... | |
void | operator++ () noexcept |
Increment the reference count. More... | |
void | operator++ (int) noexcept |
Increment the reference count. More... | |
void | operator-- () noexcept |
Decrement the reference count. More... | |
void | operator-- (int) noexcept |
Decrement the reference count. More... | |
Reference counter for various OpenFOAM components.
Definition at line 50 of file refCount.H.
|
inlineconstexprnoexcept |
Construct null initializing count to 0.
Definition at line 65 of file refCount.H.
|
inlinenoexcept |
Return the current reference count.
Definition at line 74 of file refCount.H.
|
inlinenoexcept |
Return true if the reference count is zero.
Definition at line 80 of file refCount.H.
|
inlinenoexcept |
Increment the reference count.
Definition at line 89 of file refCount.H.
|
inlinenoexcept |
Increment the reference count.
Definition at line 95 of file refCount.H.
|
inlinenoexcept |
Decrement the reference count.
Definition at line 101 of file refCount.H.
|
inlinenoexcept |
Decrement the reference count.
Definition at line 107 of file refCount.H.