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... | |
| void | operator= (const refCount &)=delete |
| Disallow bitwise assignment. More... | |
Protected Member Functions | |
| refCount () | |
| Construct null initialising count to 0. More... | |
| refCount (const refCount &)=delete | |
| Disallow copy. 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 61 of file refCount.H.
|
inline |
Return the current reference count.
Definition at line 75 of file refCount.H.
|
inline |
Return true if the reference count is zero.
Definition at line 81 of file refCount.H.
|
inline |
Increment the reference count.
Definition at line 90 of file refCount.H.
|
inline |
Increment the reference count.
Definition at line 96 of file refCount.H.
|
inline |
Decrement the reference count.
Definition at line 102 of file refCount.H.
|
inline |
Decrement the reference count.
Definition at line 108 of file refCount.H.
|
delete |
Disallow bitwise assignment.