Reference counter for various OpenFOAM components. More...
Inherited by FieldField< PatchField, Type >, FieldField< fvPatchField, symmTensor >, FieldField< fvPatchField, scalar >, FieldField< pointPatchField, Type >, FieldField< fvPatchField, vector >, FieldField< fvPatchField, tensor >, FieldField< Foam::fvPatchField, scalar >, FieldField< Foam::fvPatchField, Foam::Vector >, FieldField< Foam::pointPatchField, Foam::Vector >, FieldField< Field, Foam::Vector >, FieldField< Field, scalar >, FieldField< Foam::Field, scalar >, FieldField< Foam::Field, LUType >, FieldField< fvsPatchField, scalar >, FieldField< pointPatchField, scalar >, FieldField< pointPatchField, vector >, FieldField< faPatchField, scalar >, FieldField< Foam::faPatchField, scalar >, FieldField< Foam::faePatchField, scalar >, FieldField< Foam::faPatchField, Foam::Vector >, FieldField< Foam::faePatchField, Foam::Vector >, FieldField< Foam::faPatchField, Foam::SphericalTensor >, FieldField< Foam::faePatchField, Foam::SphericalTensor >, FieldField< Foam::faPatchField, Foam::SymmTensor >, FieldField< Foam::faePatchField, Foam::SymmTensor >, FieldField< Foam::faPatchField, Foam::Tensor >, FieldField< Foam::faePatchField, Foam::Tensor >, FieldField< Foam::Field, Type >, FieldField< Foam::Field, Foam::Tensor >, FieldField< Foam::fvsPatchField, scalar >, FieldField< Foam::fvsPatchField, Foam::Vector >, FieldField< Foam::fvPatchField, Foam::SphericalTensor >, FieldField< Foam::fvsPatchField, Foam::SphericalTensor >, FieldField< Foam::fvPatchField, Foam::SymmTensor >, FieldField< Foam::fvsPatchField, Foam::SymmTensor >, FieldField< Foam::fvPatchField, Foam::Tensor >, FieldField< Foam::fvsPatchField, Foam::Tensor >, FieldField< Foam::fvPatchField, Type >, FieldField< Foam::pointPatchField, Type >, FieldField< Foam::fvsPatchField, Type >, FieldField< fvsPatchField, vector >, FieldField< Foam::pointPatchField, scalar >, FieldField< Foam::pointPatchField, Foam::SphericalTensor >, FieldField< Foam::pointPatchField, Foam::SymmTensor >, FieldField< Foam::pointPatchField, Foam::Tensor >, FieldField< faPatchField, tensor >, FieldField< faPatchField, vector >, FieldField< faePatchField, scalar >, edgeInterpolationScheme< scalar >, faDdtScheme< scalar >, convectionScheme< scalar >, multivariateSurfaceInterpolationScheme< scalar >, surfaceInterpolationScheme< scalar >, surfaceInterpolationScheme< GType >, FieldBase, FieldField< Field, Type >, edgeInterpolationScheme< Type >, exprResult, convectionScheme< Type >, divScheme< Type >, faD2dt2Scheme< Type >, faDdtScheme< Type >, gradScheme< Type >, laplacianScheme< Type >, lnGradScheme< Type >, faMatrix< Type >, function1Base, convectionScheme< Type >, d2dt2Scheme< Type >, ddtScheme< Type >, divScheme< Type >, gradScheme< Type >, laplacianScheme< Type, GType >, snGradScheme< Type >, fvGeometryScheme, fvMatrix< Type >, multivariateSurfaceInterpolationScheme< Type >, patchFunction1Base, surfaceInterpolationScheme< Type >, token::compound, and waveModel.
Classes | |
struct | zero |
A non-counting (dummy) refCount. More... | |
Public Member Functions | |
constexpr | refCount () noexcept |
Default construct, 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 |
Default construct, 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.
Referenced by lumpedPointDisplacementPointPatchVectorField::setPatchControls().
|
inlinenoexcept |
Return true if the reference count is zero.
Definition at line 80 of file refCount.H.
Referenced by tmp< T >::operator=(), and tmp< T >::tmp().
|
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.