Reference counter for various OpenFOAM components. More...
Public Member Functions | |
refCount () | |
Construct null with zero count. More... | |
int | count () const |
Return the reference count. More... | |
bool | okToDelete () const |
Return true if the reference count is zero. More... | |
void | resetRefCount () |
Reset the reference count to 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... | |
Private Member Functions | |
refCount (const refCount &) | |
Dissallow copy. More... | |
void | operator= (const refCount &) |
Dissallow bitwise assignment. More... | |
Private Attributes | |
int | count_ |
|
inline |
Construct null with zero count.
Definition at line 65 of file refCount.H.
|
private |
Dissallow bitwise assignment.
|
inline |
|
inline |
Return true if the reference count is zero.
Definition at line 81 of file refCount.H.
References refCount::count_.
Referenced by token::clear().
|
inline |
Reset the reference count to zero.
Definition at line 88 of file refCount.H.
References refCount::count_.
|
inline |
Increment the reference count.
Definition at line 97 of file refCount.H.
References refCount::count_.
|
inline |
Increment the reference count.
Definition at line 103 of file refCount.H.
References refCount::count_.
|
inline |
Decrement the reference count.
Definition at line 109 of file refCount.H.
References refCount::count_.
|
inline |
Decrement the reference count.
Definition at line 115 of file refCount.H.
References refCount::count_.
|
private |
Definition at line 49 of file refCount.H.
Referenced by refCount::count(), refCount::okToDelete(), refCount::operator++(), refCount::operator--(), and refCount::resetRefCount().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.