Reference counter for various OpenFOAM components. More...
Public Member Functions | |
int | count () const |
Return the current reference count. More... | |
bool | unique () const |
Return true if the reference count is zero. More... | |
void | operator++ () |
Increment the reference count. More... | |
void | operator++ (int) |
Increment the reference count. More... | |
void | operator-- () |
Decrement the reference count. More... | |
void | operator-- (int) |
Decrement the reference count. More... | |
Protected Member Functions | |
refCount () | |
Construct null initialising count to 0. More... | |
Reference counter for various OpenFOAM components.
Definition at line 49 of file refCount.H.
|
inlineprotected |
Construct null initialising count to 0.
Definition at line 70 of file refCount.H.
|
inline |
Return the current reference count.
Definition at line 81 of file refCount.H.
|
inline |
Return true if the reference count is zero.
Definition at line 87 of file refCount.H.
|
inline |
Increment the reference count.
Definition at line 96 of file refCount.H.
|
inline |
Increment the reference count.
Definition at line 102 of file refCount.H.
|
inline |
Decrement the reference count.
Definition at line 108 of file refCount.H.
|
inline |
Decrement the reference count.
Definition at line 114 of file refCount.H.