A class for managing temporary objects. More...

Public Types | |
| typedef T | element_type |
| Type of object being managed or referenced. More... | |
| typedef T * | pointer |
| Pointer to type of object being managed or referenced. More... | |
| typedef Foam::refCount | refCount |
| Reference counter class. More... | |
Public Member Functions | |
| constexpr | tmp () noexcept |
| Construct with no managed pointer. More... | |
| constexpr | tmp (std::nullptr_t) noexcept |
| Implicit construct from literal nullptr: no managed pointer. More... | |
| tmp (T *p) | |
| Construct, taking ownership of the pointer. More... | |
| constexpr | tmp (const T &obj) noexcept |
| Implicit construct for a const reference to an object. More... | |
| tmp (tmp< T > &&rhs) noexcept | |
| Move construct, transferring ownership. More... | |
| tmp (const tmp< T > &&rhs) noexcept | |
| Move construct, transferring ownership. More... | |
| tmp (const tmp< T > &rhs) | |
| Copy construct, incrementing ref-count of managed pointer. More... | |
| tmp (const tmp< T > &rhs, bool reuse) | |
| Copy/move construct. Optionally reusing ref-counted pointer. More... | |
| tmp (const autoPtr< T > &)=delete | |
| No copy construct from autoPtr, also avoids implicit cast to object or pointer. More... | |
| tmp (const refPtr< T > &)=delete | |
| No copy construct from refPtr, also avoids implicit cast to object. More... | |
| tmp (autoPtr< T > &&rhs) noexcept | |
| Move construct from autoPtr, transferring ownership. More... | |
| ~tmp () noexcept | |
| Destructor: deletes managed pointer when the ref-count is 0. More... | |
| bool | good () const noexcept |
| True if pointer/reference is non-null. More... | |
| bool | is_const () const noexcept |
| If the stored/referenced content is const. More... | |
| bool | is_pointer () const noexcept |
| True if this is a managed pointer (not a reference) More... | |
| bool | is_reference () const noexcept |
| True if this is a reference (not a pointer) More... | |
| bool | movable () const noexcept |
| True if this is a non-null managed pointer with a unique ref-count. More... | |
| T * | get () noexcept |
| Return pointer without nullptr checking. More... | |
| const T * | get () const noexcept |
| Return const pointer without nullptr checking. More... | |
| const T & | cref () const |
| Return const reference to the object or to the contents of a (non-null) managed pointer. More... | |
| T & | ref () const |
| Return non-const reference to the contents of a non-null managed pointer. More... | |
| T & | constCast () const |
| Return non-const reference to the object or to the contents of a (non-null) managed pointer, with an additional const_cast. More... | |
| T * | ptr () const |
| Return managed pointer for reuse, or clone() the object reference. More... | |
| void | clear () const noexcept |
| If object pointer points to valid object: delete object and set pointer to nullptr. More... | |
| void | protect (bool on) noexcept |
| Use specified protection against moving for the managed pointer. No-op for references. More... | |
| void | reset (tmp< T > &&other) noexcept |
| Clear existing and transfer ownership. More... | |
| void | reset (T *p=nullptr) noexcept |
| Delete managed temporary object and set to new given pointer. More... | |
| void | reset (const autoPtr< T > &)=delete |
| Avoid inadvertent casting (to object or pointer) More... | |
| void | reset (const refPtr< T > &)=delete |
| Avoid inadvertent casting (to object) More... | |
| template<class... Args> | |
| T & | emplace (Args &&... args) |
| Reset with emplace construction. Return reference to the new content. More... | |
| void | cref (const tmp< T > &other) noexcept |
| Clear existing and set (const) reference from other. More... | |
| void | cref (const T &obj) noexcept |
| Clear existing and set (const) reference. More... | |
| void | cref (const T *p) noexcept |
| Clear existing and set (const) reference to pointer content. More... | |
| void | cref (const autoPtr< T > &)=delete |
| Avoid inadvertent casting (to object or pointer) More... | |
| void | cref (const refPtr< T > &)=delete |
| Avoid inadvertent casting (to object) More... | |
| void | ref (T &obj) noexcept |
| Clear existing and set to (non-const) reference. More... | |
| void | ref (T *p) noexcept |
| Clear existing and set (non-const) reference to pointer content. More... | |
| void | ref (const autoPtr< T > &)=delete |
| Avoid inadvertent casting (to object or pointer) More... | |
| void | ref (const refPtr< T > &)=delete |
| Avoid inadvertent casting (to object) More... | |
| void | swap (tmp< T > &other) noexcept |
| Swaps the managed object with other. More... | |
| const T * | operator-> () const |
| Dereferences (const) pointer to the managed object. More... | |
| T * | operator-> () |
| Dereferences (non-const) pointer to the managed object. More... | |
| const T & | operator() () const |
| Return const reference to the object - same as cref() method. More... | |
| operator bool () const noexcept | |
| True if pointer/reference is non-null. Same as good() More... | |
| operator const T & () const | |
| Cast to underlying data type, using the cref() method. More... | |
| void | operator= (const tmp< T > &other) |
| Transfer ownership of the managed pointer. More... | |
| void | operator= (tmp< T > &&other) noexcept |
| Clear existing and transfer ownership. More... | |
| void | operator= (T *p) |
| Take ownership of the pointer. More... | |
| void | operator= (std::nullptr_t) noexcept |
| Reset via assignment from literal nullptr. More... | |
| bool | valid () const noexcept |
| Identical to good(), or bool operator. More... | |
| bool | isTmp () const noexcept |
| Identical to is_pointer(). Prefer is_pointer() or movable(). More... | |
| bool | empty () const noexcept |
| Deprecated(2020-07) True if a null managed pointer. More... | |
| auto | expr () const |
| Wrap value as expression. More... | |
Static Public Member Functions | |
| template<class... Args> | |
| static tmp< T > | New (Args &&... args) |
| Construct tmp with forwarding arguments. More... | |
| template<class U , class... Args> | |
| static tmp< T > | NewFrom (Args &&... args) |
| Construct tmp from derived type with forwarding arguments. More... | |
| static word | typeName () |
| The type-name, constructed from type-name of T. More... | |
A class for managing temporary objects.
This is a combination of std::shared_ptr (with intrusive ref-counting) and a shared_ptr without ref-counting and null deleter. This allows the tmp to double as a pointer management and an indirect pointer to externally allocated objects. In contrast to std::shared_ptr, only a limited number of tmp items will ever share a pointer.
Definition at line 50 of file HashPtrTable.H.
| typedef T element_type |
| typedef Foam::refCount refCount |
|
inlinenoexcept |
|
inlinenoexcept |
No copy construct from autoPtr, also avoids implicit cast to object or pointer.
No copy construct from refPtr, also avoids implicit cast to object.
|
inlinenoexcept |
Construct tmp with forwarding arguments.
| args | list of arguments with which an instance of T will be constructed. |
Definition at line 215 of file tmp.H.
Referenced by solidAbsorption::a(), multiBandAbsorption::a(), nullSpace::activeConstraints(), scene::addColourToMesh(), boundaryAdjointContribution::adjointTMVariable1Source(), boundaryAdjointContribution::adjointTMVariable2Source(), acousticWaveTransmissiveFvPatchField< Type >::advectionSpeed(), decompositionGAMGAgglomeration::agglomerate(), GAMGInterface::agglomerateCoeffs(), adjointSolverManager::aggregateSensitivities(), ThermoCloud< Foam::DSMCCloud >::ap(), polyPatch::areaFraction(), nullSpace::ATv(), variablesSet::autoCreateMeshMovementField(), nullSpace::Av(), snappySnapDriver::avgCellCentres(), kOmegaSSTBase< eddyViscosity< RASModel< BasicTurbulenceModel > > >::beta(), adjointkOmegaSST::beta(), blendingFactor::blendingFactor(), alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField::calcAlphat(), nutLowReWallFunctionFvPatchScalarField::calcNut(), nutkWallFunctionFvPatchScalarField::calcNut(), nutUWallFunctionFvPatchScalarField::calcNut(), nutkRoughWallFunctionFvPatchScalarField::calcNut(), atmNutUWallFunctionFvPatchScalarField::calcNut(), atmNutkWallFunctionFvPatchScalarField::calcNut(), atmNutWallFunctionFvPatchScalarField::calcNut(), nutUTabulatedWallFunctionFvPatchScalarField::calcUPlus(), nutkFilmWallFunctionFvPatchScalarField::calcUTau(), nutUBlendedWallFunctionFvPatchScalarField::calcUTau(), nutUSpaldingWallFunctionFvPatchScalarField::calcUTau(), nutUWallFunctionFvPatchScalarField::calcYPlus(), deltaBoundary::cellCenters_d(), pointSmoother::cellQuality(), treeDataPoint::centres(), treeDataCell::centres(), treeDataFace::centres(), treeDataEdge::centres(), designVariablesUpdate::computeDirection(), kEpsilon::computeG(), NURBS3DVolume::computeNewBoundaryPoints(), NURBS3DVolume::computeNewPoints(), adjointEikonalSolver::computeYPhi(), nullSpace::constraintRelatedUpdate(), searchablePlane::coordinates(), searchableBox::coordinates(), searchableDisk::coordinates(), searchablePlate::coordinates(), searchableCylinder::coordinates(), searchableSurfaceCollection::coordinates(), searchableCone::coordinates(), triSurfaceMesh::coordinates(), searchableSphere::coordinates(), NURBS3DVolume::coordinates(), thermocapillaryForce::correct(), forceList::correct(), contactAngleForce::correct(), edgeInterpolation::correctionVectors(), ReynoldsAnalogy::Cp(), displacementMeshMoverMotionSolver::curPoints(), solidBodyMotionSolver::curPoints(), multiSolidBodyMotionSolver::curPoints(), volumetricBSplinesMotionSolver::curPoints(), velocityComponentLaplacianFvMotionSolver::curPoints(), displacementComponentLaplacianFvMotionSolver::curPoints(), displacementInterpolationMotionSolver::curPoints(), sixDoFRigidBodyMotionSolver::curPoints(), elasticityMotionSolver::curPoints(), rigidBodyMeshMotion::curPoints(), triSurfaceTools::curvatures(), faMatrix< Type >::D(), fvMatrix< Type >::D(), volumetricBSplinesDesignVariables::dCdb(), cyclicFvPatch::delta(), cyclicFaPatch::delta(), cyclicACMIFvPatch::delta(), cyclicAMIFvPatch::delta(), fvMesh::delta(), basicFvGeometryScheme::deltaCoeffs(), kEpsilon< EddyDiffusivity< compressible::turbulenceModel > >::DepsilonEff(), linearInterpolation::derivative(), smoothHeaviside::derivative(), sigmoidalHeaviside::derivative(), DESModelRegions::DESModelRegions(), adjointkOmegaSST::devReff(), solarCalculator::diffuseSolarRad(), adjointSpalartAllmaras::diffusionCoeffVar1(), adjointRASModel::diffusionCoeffVar1(), adjointRASModel::diffusionCoeffVar2(), adjointSpalartAllmaras::distanceSensitivities(), adjointkOmegaSST::distanceSensitivities(), momentumError::divDevRhoReff(), phasePressureModel::divDevRhoReff(), boundaryAdjointContribution::dJdGradU(), boundaryAdjointContribution::dJdnut(), kEpsilon< EddyDiffusivity< compressible::turbulenceModel > >::DkEff(), kOmegaSSTBase< eddyViscosity< RASModel< BasicTurbulenceModel > > >::DkEff(), kL< BasicTurbulenceModel >::DkEff(), Bezier::dndbBasedSensitivities(), NURBS3DVolume::dndbBasedSensitivities(), adjointSpalartAllmaras::DnuTildaEff(), SpalartAllmarasBase< eddyViscosity< RASModel< BasicTurbulenceModel > > >::DnuTildaEff(), kOmegaSSTBase< eddyViscosity< RASModel< BasicTurbulenceModel > > >::DomegaEff(), kEpsilonPhitF< BasicTurbulenceModel >::DphitEff(), surfactantProperties::dSigma(), Bezier::dxdbFace(), adjointRotatingWallVelocityFvPatchVectorField::dxdbMult(), volumetricBSplinesDesignVariables::dxdbVol(), shapeDesignVariables::dxdbVol(), solidAbsorption::e(), multiBandAbsorption::e(), faMesh::edgeLengthCorrection(), faPatch::edgeNormals(), ThermoCloud< Foam::DSMCCloud >::Ep(), sigma< BasicTurbulenceModel >::epsilon(), SpalartAllmarasBase< eddyViscosity< RASModel< BasicTurbulenceModel > > >::epsilon(), realizableKE< BasicTurbulenceModel >::epsilonSource(), RNGkEpsilon< BasicTurbulenceModel >::epsilonSource(), LaunderSharmaKE< BasicTurbulenceModel >::epsilonSource(), kEpsilon< EddyDiffusivity< compressible::turbulenceModel > >::epsilonSource(), boundedBackwardFaDdtScheme::facDdt(), polyPatch::faceCellCentres(), cellQuality::faceNonOrthogonality(), mappedPatchBase::facePoints(), cellQuality::faceSkewness(), parseDriver::field_cellCentre(), parseDriver::field_rand(), sizeDistribution::filterField(), NURBS3DSurface::findClosestSurfacePoint(), fft::forwardTransform(), interfaceTrackingFvMesh::freeSurfacePressureJump(), interfaceTrackingFvMesh::freeSurfaceSnGradU(), interfaceTrackingFvMesh::freeSurfaceSnGradUn(), noiseFFT::frequencies(), SpalartAllmarasBase< eddyViscosity< RASModel< BasicTurbulenceModel > > >::ft2(), relaxedNonOrthoGaussLaplacianScheme< Type, GType >::fvmLaplacian(), kOmegaSSTBase< eddyViscosity< RASModel< BasicTurbulenceModel > > >::gamma(), adjointkOmegaSST::gamma(), kOmegaSSTBase< eddyViscosity< RASModel< BasicTurbulenceModel > > >::GbyNu0(), Foam::getBoundedColours(), Foam::getField(), cancelATC::getFISensitivityTerm(), ATCstandard::getFISensitivityTerm(), adjointSolver::getObjectiveSensitivities(), blockMesh::globalPosition(), adjointEikonalSolver::gradEikonal(), lduMatrix::H1(), faMesh::haloFaceCentres(), faMesh::haloFaceNormals(), MassTransferPhaseSystem< BasePhaseSystem >::heatTransfer(), rotorDiskSource::inflowVelocity(), cyclicFvPatch::interfaceInternalField(), processorFvPatch::interfaceInternalField(), cyclicFaPatch::interfaceInternalField(), cyclicAMIFvPatch::interfaceInternalField(), cyclicACMIFvPatch::interfaceInternalField(), processorFaPatch::interfaceInternalField(), AssemblyFvPatch< CyclicType >::internalFieldTransfer(), cyclicFaPatch::internalFieldTransfer(), leastSquaresEdgeInterpolation< Type >::interpolate(), Foam::inv(), coordinateSystem::invTransformPointImpl(), sigma< BasicTurbulenceModel >::k(), SpalartAllmarasBase< eddyViscosity< RASModel< BasicTurbulenceModel > > >::k(), multiphaseInterSystem::kappaEff(), interfaceHeatResistance< Thermo, OtherThermo >::Kexp(), diffusionGasEvaporation< Thermo, OtherThermo >::Kexp(), kineticGasEvaporation< Thermo, OtherThermo >::Kexp(), kEqn< BasicTurbulenceModel >::kSource(), realizableKE< BasicTurbulenceModel >::kSource(), LaunderSharmaKE< BasicTurbulenceModel >::kSource(), RNGkEpsilon< BasicTurbulenceModel >::kSource(), dynamicKEqn< BasicTurbulenceModel >::kSource(), kEpsilon< EddyDiffusivity< compressible::turbulenceModel > >::kSource(), kOmegaSSTBase< eddyViscosity< RASModel< BasicTurbulenceModel > > >::kSource(), kL< BasicTurbulenceModel >::kSource(), interfaceHeatResistance< Thermo, OtherThermo >::KSu(), boundaryAdjointContributionIncompressible::laminarDiffusivity(), SpalartAllmarasDES< BasicTurbulenceModel >::LESRegion(), kOmegaSSTDES< BasicTurbulenceModel >::LESRegion(), upwind< Type >::limiter(), cylindrical::localToGlobal(), meshRefinement::makeDisplacementField(), speciesSorptionFvPatchScalarField::mass(), noiseModel::meanPf(), regionModel1D::moveMesh(), laminar::mut(), processorFaPatch::neighbEdgeNormals(), faPatch::ngbPolyPatchFaceNormals(), faPatch::ngbPolyPatchPointNormals(), basicFvGeometryScheme::nonOrthCorrectionVectors(), basicFvGeometryScheme::nonOrthDeltaCoeffs(), cellQuality::nonOrthogonality(), Stokes< BasicTurbulenceModel >::nut(), generalizedNewtonian< BasicMomentumTransportModel >::nut(), RASModelVariables::nut(), adjointRASModel::nutJacobianTMVar1(), adjointRASModel::nutJacobianTMVar2(), RASModelVariables::nutPatchField(), noiseModel::octaves(), SpalartAllmarasBase< eddyViscosity< RASModel< BasicTurbulenceModel > > >::omega(), kOmegaSSTBase< eddyViscosity< RASModel< BasicTurbulenceModel > > >::omegaSource(), NURBS3DVolume::patchDxDb(), NURBS3DVolume::patchDxDbFace(), enthalpySorptionFvPatchScalarField::patchSource(), speciesSorptionFvPatchScalarField::patchSource(), noiseFFT::Pf(), noiseModel::Pf(), semiPermeableBaffleMassFractionFvPatchScalarField::phiY(), searchablePlate::points(), searchableCylinder::points(), searchableSurfaceCollection::points(), searchableCone::points(), lumpedPointMovement::pointsDisplacement(), lumpedPointMovement::pointsPosition(), projectCurveEdge::position(), projectEdge::position(), blockEdge::position(), filmTurbulenceModel::primaryRegionFriction(), noiseModel::PSDf(), SpalartAllmarasDES< BasicTurbulenceModel >::psi(), greyDiffusiveViewFactorFixedValueFvPatchScalarField::qro(), kOmegaSSTBase< eddyViscosity< RASModel< BasicTurbulenceModel > > >::Qsas(), adjointSpalartAllmaras::r(), lumpedPointMovement::readDict(), reader::readField(), updateMethod::readOrZeroField(), fft::realTransform1D(), fft::reverseTransform(), ReynoldsAnalogy::rho(), forces::rho(), coordinateSystem::rotationsImpl(), Foam::safeLog10(), mappedPatchBase::samplePoints(), OwenRyleyModel::separatedMassRatio(), FriedrichModel::separatedMassRatio(), coalCloudList::Sh(), ThermoCloud< Foam::DSMCCloud >::Sh(), electrostaticDepositionFvPatchScalarField::sigma(), ThermoCloud< Foam::DSMCCloud >::sigmap(), edgeInterpolation::skewCorrectionVectors(), cellQuality::skewness(), timeVaryingMassSorptionFvPatchScalarField::source(), coalCloudList::Srho(), coalCloudList::SU(), Foam::sumNeighbours(), interfaceTrackingFvMesh::surfaceTensionGrad(), coalCloudList::SYi(), boundaryAdjointContributionIncompressible::thermalDiffusion(), targetCoeffTrim::thetag(), RASModelVariables::TMVar1(), RASModelVariables::TMVar2(), boundaryAdjointContribution::TMVariable1(), boundaryAdjointContribution::TMVariable1Diffusion(), boundaryAdjointContribution::TMVariable2(), boundaryAdjointContribution::TMVariable2Diffusion(), adjointLaminar::topologySensitivities(), cyclicFaPatch::transfer(), sixDoFRigidBodyMotion::transform(), Foam::transformFieldMask< tensor >(), coordinateSystem::transformPointImpl(), rigidBodyMotion::transformPoints(), noiseModel::uniformFrequencies(), faMesh::unitLe(), fvMesh::unitSf(), triSurfaceTools::vertexNormals(), triSurfaceTools::vertexTriads(), blockMesh::vertices(), MassTransferPhaseSystem< BasePhaseSystem >::volTransfer(), waveModel::waterLevel(), surfaceFieldValue::weightingFactor(), basicFvGeometryScheme::weights(), TableBase< Type >::x(), general::x(), general::y(), nutkWallFunctionFvPatchScalarField::yPlus(), and alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField::yPlusTherm().
|
inlinestatic |
|
inlinenoexcept |
True if pointer/reference is non-null.
Definition at line 249 of file tmp.H.
Referenced by fvMeshSubsetProxy::interpolate().

|
inlinenoexcept |
If the stored/referenced content is const.
Definition at line 191 of file tmpI.H.
Referenced by refPtr< Foam::triSurface >::reset().

|
inlinenoexcept |
True if this is a managed pointer (not a reference)
Definition at line 198 of file tmpI.H.
Referenced by tmp< Foam::surfaceInterpolationScheme< GType > >::isTmp(), tmp< Foam::surfaceInterpolationScheme< GType > >::operator=(), refPtr< Foam::triSurface >::reset(), and regIOobject::store().

|
inlinenoexcept |
True if this is a reference (not a pointer)
Definition at line 206 of file tmpI.H.
Referenced by atmAmbientTurbSource::atmAmbientTurbSource(), atmBuoyancyTurbSource::atmBuoyancyTurbSource(), atmLengthScaleTurbSource::atmLengthScaleTurbSource(), atmNutSource::atmNutSource(), atmPlantCanopyTurbSource::atmPlantCanopyTurbSource(), and buoyancyTurbSource::buoyancyTurbSource().

|
inlinenoexcept |
True if this is a non-null managed pointer with a unique ref-count.
Definition at line 214 of file tmpI.H.
Referenced by DispersionRASModel< CloudType >::cacheFields(), and BrownianMotionForce< CloudType >::cacheFields().

|
inlinenoexcept |
Return pointer without nullptr checking.
Definition at line 277 of file tmp.H.
Referenced by refPtr< Foam::triSurface >::reset(), and regIOobject::store().

|
inlinenoexcept |
|
inline |
Return const reference to the object or to the contents of a (non-null) managed pointer.
Fatal for a null managed pointer
Definition at line 221 of file tmpI.H.
Referenced by patchCellsSource::addSup(), DispersionRASModel< CloudType >::cacheFields(), BrownianMotionForce< CloudType >::cacheFields(), alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField::calcAlphat(), tmp< Foam::surfaceInterpolationScheme< GType > >::constCast(), filmSeparation::correct(), EBRSM< BasicTurbulenceModel >::correct(), kL< BasicTurbulenceModel >::correct(), FilterField::evaluate(), radiometerProbes::execute(), adjointSpalartAllmaras::FISensitivityTerm(), parseDriver::getField(), sampledSets::getOrLoadField(), Probes< patchFieldProbe >::getOrLoadField(), leastSquaresEdgeInterpolation< Type >::interpolate(), tmp< this_type >::operator const this_type &(), tmp< Foam::surfaceInterpolationScheme< GType > >::operator()(), parseDriver::patchInternalField(), parseDriver::patchNeighbourField(), parseDriver::patchNormalField(), OwenRyleyModel::separatedMassRatio(), FriedrichModel::separatedMassRatio(), partialSlipFvPatchField< Type >::snGrad(), regIOobject::store(), objectiveForce::update_dxdbMultiplier(), objectiveMoment::update_dxdbMultiplier(), and regionSizeDistribution::write().

|
inline |
Return non-const reference to the contents of a non-null managed pointer.
Fatal for a null managed pointer or if the object is const.
Definition at line 235 of file tmpI.H.
Referenced by MRFZoneList::absolute(), adjointNull::accumulateGradDxDbMultiplier(), incompressibleAdjointSolver::accumulateGradDxDbMultiplier(), SemiImplicitSource< Type >::addSup(), phaseChange::addToDriftRate(), adjointkOmegaSST::adjointMeanFlowSource(), coordSetWriter::adjustFieldTemplate(), surfaceWriter::adjustFieldTemplate(), surfaceWriter::adjustSurface(), multiphaseInterSystem::alphaEff(), multiphaseInterSystem::alphahe(), MassTransferPhaseSystem< BasePhaseSystem >::alphaTransfer(), shapeDesignVariables::assembleSensitivities(), Foam::atan2(), Foam::fac::average(), Foam::fvc::average(), subtract::calcFieldType(), add::calcFieldType(), faceLimitedGrad< Type >::calcGrad(), faceMDLimitedGrad< Type >::calcGrad(), cellMDLimitedGrad< Type >::calcGrad(), nutUSpaldingWallFunctionFvPatchScalarField::calcNut(), geometricElementTransformPointSmoother::cellQuality(), treeDataEdge::centres(), Zuber::CHF(), Tatsumoto::CHFSubCool(), HuaXu::CHFSubCool(), Foam::cmptMag(), NURBS3DVolume::computeParametricCoordinates(), nullSpace::computeResiduals(), ISQP::computeResiduals(), ISQP::computeRHSForDeltaX(), Foam::constrainHbyA(), DeardorffDiffStress< BasicTurbulenceModel >::correct(), Maxwell< BasicTurbulenceModel >::correct(), ShihQuadraticKE::correct(), LamBremhorstKE::correct(), LienLeschziner::correct(), kOmega< BasicTurbulenceModel >::correct(), LienCubicKE::correct(), realizableKE< BasicTurbulenceModel >::correct(), SSG< BasicTurbulenceModel >::correct(), RNGkEpsilon< BasicTurbulenceModel >::correct(), LaunderSharmaKE< BasicTurbulenceModel >::correct(), LRR< BasicTurbulenceModel >::correct(), qZeta::correct(), kEpsilon< EddyDiffusivity< compressible::turbulenceModel > >::correct(), kEpsilonLopesdaCosta< BasicTurbulenceModel >::correct(), SpalartAllmarasBase< eddyViscosity< RASModel< BasicTurbulenceModel > > >::correct(), EBRSM< BasicTurbulenceModel >::correct(), mixtureKEpsilon< BasicTurbulenceModel >::correct(), kkLOmega::correct(), kEpsilonPhitF< BasicTurbulenceModel >::correct(), adjointSpalartAllmaras::correct(), kOmegaSSTBase< eddyViscosity< RASModel< BasicTurbulenceModel > > >::correct(), kL< BasicTurbulenceModel >::correct(), adjointkOmegaSST::correct(), cubic< Type >::correction(), fourthLnGrad< Type >::correction(), pointLinear< Type >::correction(), correctedLnGrad< Type >::correction(), CentredFitSnGradScheme< Type, Polynomial, Stencil >::correction(), correctedSnGrad< Type >::correction(), faceCorrectedSnGrad< Type >::correction(), deferredCorrection< Type >::correction(), outletStabilised< Type >::correction(), MassTransferPhaseSystem< BasePhaseSystem >::correctMassSources(), kOmegaSSTLM< BasicTurbulenceModel >::correctReThetatGammaInt(), multiphaseInterSystem::Cp(), multiphaseInterSystem::CpByCpv(), multiphaseInterSystem::Cpv(), Foam::fvc::curl(), displacementSBRStressFvMotionSolver::curPoints(), multiphaseInterSystem::Cv(), fvMatrix< Type >::DD(), MomentumTransferPhaseSystem< BasePhaseSystem >::ddtCorrByAs(), smoothHeaviside::derivative(), sinhInterpolation::derivative(), sigmoidalHeaviside::derivative(), SIMPInterpolation::derivative(), invBP::derivative(), expInterpolation::derivative(), BorrvallPeterssonInterpolation::derivative(), tanhInterpolation::derivative(), nonlinearEddyViscosity< incompressible::RASModel >::devRhoReff(), ISQP::diagPreconditioner(), adjointSpalartAllmaras::distanceSensitivities(), Foam::fac::div(), snappySnapDriver::doSnap(), adjointSpalartAllmaras::dr_dDelta(), adjointkOmegaSST::dR_dF1(), adjointkOmegaSST::dR_dnut(), adjointSpalartAllmaras::dr_dNuTilda(), adjointSpalartAllmaras::dr_dStilda(), SpalartAllmarasDES< BasicTurbulenceModel >::dTilda(), Foam::fac::edgeIntegrate(), Foam::fac::edgeSum(), edgeInterpolationScheme< scalar >::euclidianInterpolate(), surfaceCourantNumber::execute(), PopeIndex::execute(), scalarTransport::execute(), kOmegaSSTBase< eddyViscosity< RASModel< BasicTurbulenceModel > > >::F23(), EulerFaD2dt2Scheme< Type >::facD2dt2(), EulerFaDdtScheme< Type >::facDdt(), backwardFaDdtScheme< Type >::facDdt(), boundedBackwardFaDdtScheme::facDdt(), EulerFaDdtScheme< Type >::facDdt0(), backwardFaDdtScheme< Type >::facDdt0(), boundedBackwardFaDdtScheme::facDdt0(), gaussConvectionScheme< Type >::facDiv(), gaussLaplacianScheme< Type >::facLaplacian(), EulerFaD2dt2Scheme< Type >::famD2dt2(), EulerFaDdtScheme< Type >::famDdt(), backwardFaDdtScheme< Type >::famDdt(), boundedBackwardFaDdtScheme::famDdt(), gaussConvectionScheme< Type >::famDiv(), gaussLaplacianScheme< Type >::famLaplacian(), adjointSpalartAllmaras::FISensitivityTerm(), adjointkOmegaSST::FISensitivityTerm(), correctedSnGrad< Type >::fullGradCorrection(), faceCorrectedSnGrad< Type >::fullGradCorrection(), EulerDdtScheme< Type >::fvcDdt(), backwardDdtScheme< Type >::fvcDdt(), CoEulerDdtScheme< Type >::fvcDdt(), SLTSDdtScheme< Type >::fvcDdt(), CrankNicolsonDdtScheme< Type >::fvcDdt(), ddtScheme< Type >::fvcDdtPhiCoeff(), ddtScheme< Type >::fvcDdtPhiCoeffExperimental(), steadyStateDdtScheme< Type >::fvcDdtPhiCorr(), steadyStateDdtScheme< Type >::fvcDdtUfCorr(), gaussConvectionScheme< Type >::fvcDiv(), fusedGaussConvectionScheme< Type >::fvcDiv(), gaussLaplacianScheme< Type, GType >::fvcLaplacian(), relaxedNonOrthoGaussLaplacianScheme< Type, GType >::fvcLaplacian(), fusedGaussLaplacianScheme< Type, GType >::fvcLaplacian(), EulerD2dt2Scheme< Type >::fvmD2dt2(), EulerDdtScheme< Type >::fvmDdt(), backwardDdtScheme< Type >::fvmDdt(), CoEulerDdtScheme< Type >::fvmDdt(), SLTSDdtScheme< Type >::fvmDdt(), localEulerDdtScheme< Type >::fvmDdt(), gaussConvectionScheme< Type >::fvmDiv(), fusedGaussConvectionScheme< Type >::fvmDiv(), gaussLaplacianScheme< Type, GType >::fvmLaplacian(), relaxedNonOrthoGaussLaplacianScheme< Type, GType >::fvmLaplacian(), fusedGaussLaplacianScheme< Type, GType >::fvmLaplacian(), gaussLaplacianScheme< Type, GType >::fvmLaplacianUncorrected(), relaxedNonOrthoGaussLaplacianScheme< Type, GType >::fvmLaplacianUncorrected(), fusedGaussLaplacianScheme< Type, GType >::fvmLaplacianUncorrected(), multiphaseInterSystem::gamma(), MMA::gConstr(), fvMeshDistribute::generateTestField(), NURBS3DVolume::getDxDb(), ATCstandard::getFISensitivityTerm(), MMA::getOrDefaultScalarField(), cylindrical::globalToLocal(), Foam::fac::grad(), multiphaseInterSystem::hc(), MassTransferPhaseSystem< BasePhaseSystem >::heatTransfer(), AnisothermalPhaseModel< BasePhaseModel >::heEqn(), LBFGS::HessianVectorProduct(), BreenWestwater::htcFilmBoil(), Bromley::htcFilmBoil(), InterfaceCompositionPhaseChangePhaseSystem< BasePhaseSystem >::iDmdt(), singleCellFvMesh::interpolate(), pointVolInterpolation::interpolate(), localMax< Type >::interpolate(), localMin< Type >::interpolate(), edgeInterpolationScheme< scalar >::interpolate(), surfaceInterpolationScheme< GType >::interpolate(), Foam::inv(), LBFGS::invHessianVectorProduct(), ISQP::invHFL(), ReynoldsStress< RASModel< BasicTurbulenceModel > >::k(), multiphaseInterSystem::K(), adjointkOmegaSST::kaEqnSourceFromCDkOmega(), multiphaseInterSystem::kappa(), interfaceOxideRate< Thermo, OtherThermo >::Kexp(), optimisationManager::lineSearchUpdate(), ListTmpWrap< T >::ListTmpWrap(), lnGradScheme< Type >::lnGrad(), Foam::fvc::magSqrGradGrad(), processorFaPatch::makeCorrectionVectors(), processorFaPatch::makeDeltaCoeffs(), volPointInterpolationAdjoint::makeWeights(), cyclicACMIFvPatchField< Type >::manipulateMatrix(), cyclicAMIFvPatchField< scalar >::manipulateMatrix(), mappedPatchFieldBase< scalar >::mappedWeightField(), ISQP::matrixVectorProduct(), CoEulerDdtScheme< Type >::meshPhi(), SLTSDdtScheme< Type >::meshPhi(), localEulerDdtScheme< Type >::meshPhi(), Jeschar::MHF(), multiphaseInterSystem::mu(), Foam::fac::ndiv(), faPatchField< Type >::New(), fvPatchField< vector >::New(), Foam::fac::ngrad(), oversetFvMeshBase::normalisation(), JohnsonJacksonSchaeffer::nu(), multiphaseSystem::nu(), multiphaseInterSystem::nu(), ListTmpWrap< T >::operator=(), MMA::p(), jumpCyclicAMIFvPatchField< scalar >::patchNeighbourField(), topODesignVariables::penalty(), MMA::pLamda(), Foam::pow(), phasePressureModel::pPrime(), phasePressureModel::pPrimef(), boundaryAdjointContributionIncompressible::pressureSource(), MMA::q(), MMA::qLamda(), Kutadeladze::qNucleate(), nonlinearEddyViscosity< incompressible::RASModel >::R(), Foam::fvc::reconstructMag(), MRFZoneList::relative(), ISQP::resFGs(), ISQP::resFL(), multiphaseInterSystem::rho(), fvDOM::Ru(), kOmegaSSTDDES< BasicTurbulenceModel >::S2(), kOmegaSSTDES< BasicTurbulenceModel >::S2(), ISQP::ShermanMorrisonRank1Update(), electrostaticDepositionFvPatchScalarField::sigma(), skewCorrected< Type >::skewCorrection(), snGradScheme< Type >::snGrad(), twoPhaseSystem::solve(), fvMatrix< Type >::solveSegregated(), noiseModel::SPL(), LBFGS::SR1HessianVectorProduct(), Foam::stabilise(), regionFunctionObject::store(), regionFunctionObject::storeInDb(), Foam::fvc::surfaceIntegrate(), surfaceNormalFixedValueFvPatchVectorField::surfaceNormalFixedValueFvPatchVectorField(), Foam::fvc::surfaceSum(), boundaryAdjointContributionIncompressible::tangentVelocitySource(), Foam::transform(), Foam::transformPoints(), polynomial::Tsat(), function1::Tsat(), phaseSystem::U(), designVariablesUpdate::update(), inverseDistance::update(), objectiveForce::update_dxdbMultiplier(), objectiveMoment::update_dxdbMultiplier(), adjointFarFieldVelocityFvPatchVectorField::updateCoeffs(), adjointWallVelocityLowReFvPatchVectorField::updateCoeffs(), adjointOutletPressureFvPatchScalarField::updateCoeffs(), adjointFarFieldPressureFvPatchScalarField::updateCoeffs(), surfaceNormalFixedValueFvPatchVectorField::updateCoeffs(), uniformNormalFixedValueFvPatchVectorField::updateCoeffs(), lumpedMassWallTemperatureFvPatchScalarField::updateCoeffs(), turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::updateCoeffs(), timeVaryingMassSorptionFvPatchScalarField::updateCoeffs(), enthalpySorptionFvPatchScalarField::updateCoeffs(), electrostaticDepositionFvPatchScalarField::updateCoeffs(), designVariablesUpdate::updateGradientsAndValues(), boundaryAdjointContributionIncompressible::velocitySource(), MassTransferPhaseSystem< BasePhaseSystem >::volTransfer(), adjointkOmegaSST::waEqnSourceFromCDkOmega(), outletStabilised< Type >::weights(), faNVDscheme< Type, NVDweight >::weights(), limitedSurfaceInterpolationScheme< Type >::weights(), triSurfaceTools::writeCurvature(), Foam::edgeMeshTools::writeFeatureProximity(), nutUWallFunctionFvPatchScalarField::yPlus(), MRFZoneList::zeroFilter(), and wallLubricationModel::zeroGradWalls().
|
inline |
Return non-const reference to the object or to the contents of a (non-null) managed pointer, with an additional const_cast.
Fatal for a null pointer.
Definition at line 306 of file tmp.H.
Referenced by LESfilter::correctBoundaryConditions(), waveVelocityFvPatchVectorField::updateCoeffs(), and waveAlphaFvPatchScalarField::updateCoeffs().

|
inline |
Return managed pointer for reuse, or clone() the object reference.
Definition at line 256 of file tmpI.H.
Referenced by polyPatch::areaFraction(), DispersionRASModel< CloudType >::cacheFields(), BrownianMotionForce< CloudType >::cacheFields(), gaussLaplacianScheme< Type, GType >::fvmLaplacian(), fusedGaussLaplacianScheme< Type, GType >::fvmLaplacian(), PtrList< transferModel >::push_back(), PtrDynList< Foam::profilingInformation >::push_back(), refPtr< Foam::triSurface >::reset(), PtrList< transferModel >::set(), PtrDynList< Foam::profilingInformation >::set(), HashPtrTable< exprResult >::set(), regionFunctionObject::store(), regIOobject::store(), and regionFunctionObject::storeInDb().

|
inlinenoexcept |
If object pointer points to valid object: delete object and set pointer to nullptr.
Definition at line 289 of file tmpI.H.
Referenced by MRFZoneList::absolute(), incompressibleAdjointSolver::accumulateGradDxDbMultiplier(), boundBox::add(), adjointkOmegaSST::adjointMeanFlowSource(), lduMatrix::Amul(), kEqn< BasicTurbulenceModel >::correct(), LamBremhorstKE::correct(), LienLeschziner::correct(), kOmega< BasicTurbulenceModel >::correct(), dynamicKEqn< BasicTurbulenceModel >::correct(), RNGkEpsilon< BasicTurbulenceModel >::correct(), LaunderSharmaKE< BasicTurbulenceModel >::correct(), kEpsilon< EddyDiffusivity< compressible::turbulenceModel > >::correct(), kEpsilonLopesdaCosta< BasicTurbulenceModel >::correct(), SpalartAllmarasBase< eddyViscosity< RASModel< BasicTurbulenceModel > > >::correct(), EBRSM< BasicTurbulenceModel >::correct(), mixtureKEpsilon< BasicTurbulenceModel >::correct(), kEpsilonPhitF< BasicTurbulenceModel >::correct(), kOmegaSSTBase< eddyViscosity< RASModel< BasicTurbulenceModel > > >::correct(), kL< BasicTurbulenceModel >::correct(), kOmegaSSTLM< BasicTurbulenceModel >::correctReThetatGammaInt(), triSurfaceTools::curvatures(), Foam::fvc::DDt(), Foam::fvm::div(), Foam::fam::div(), Foam::fvc::div(), Foam::fac::div(), adjointkOmegaSST::divUMeanFlowSource(), edgeInterpolationScheme< scalar >::euclidianInterpolate(), adjointSpalartAllmaras::FISensitivityTerm(), Foam::fvc::flux(), fft::forwardTransform(), updateMethod::globalSum(), leastSquaresEdgeInterpolation< Type >::interpolate(), fvMeshSubsetProxy::interpolate(), edgeInterpolationScheme< scalar >::interpolate(), surfaceInterpolationScheme< GType >::interpolate(), Foam::inv(), Foam::fac::laplacian(), Foam::fam::laplacian(), meshedSurfRef::movePoints(), Foam::fam::ndiv(), Foam::fac::ndiv(), adjointkOmegaSST::nutMeanFlowSource(), anisotropicFilter::operator()(), noiseFFT::Pf(), PatchToPatchInterpolation< FromPatch, ToPatch >::pointInterpolate(), realizableKE< BasicTurbulenceModel >::rCmu(), fft::realTransform1D(), Foam::fvc::reconstructMag(), MRFZoneList::relative(), fft::reverseTransform(), snGradScheme< Type >::snGrad(), Foam::stabilise(), lduMatrix::Tmul(), Foam::transform(), PatchFunction1< Foam::vector >::transform(), Foam::transformPoints(), objectiveForce::update_dxdbMultiplier(), objectiveMoment::update_dxdbMultiplier(), coupledFvPatchField< vector >::valueBoundaryCoeffs(), coupledFvPatchField< vector >::valueInternalCoeffs(), Foam::fvc::volumeIntegrate(), Foam::writeAreaFields(), Foam::writeDimFields(), Foam::writePointField(), and Foam::writeVolFields().
|
inlinenoexcept |
Use specified protection against moving for the managed pointer. No-op for references.
Definition at line 307 of file tmpI.H.
Referenced by regIOobject::store().

Clear existing and transfer ownership.
Definition at line 338 of file tmpI.H.
Referenced by coordSetWriter::adjustFieldTemplate(), surfaceWriter::adjustFieldTemplate(), Foam::constrainHbyA(), FilterField::evaluate(), fusedGaussGrad< Type >::fusedGaussGrad(), gaussGrad< Type >::gaussGrad(), tmp< Foam::surfaceInterpolationScheme< GType > >::operator=(), sampledCuttingPlane::sampleOnIsoSurfacePoints(), sampledDistanceSurface::sampleOnIsoSurfacePoints(), sampledIsoSurface::sampleOnIsoSurfacePoints(), and regionSizeDistribution::write().

|
inlinenoexcept |
|
inline |
Reset with emplace construction. Return reference to the new content.
Definition at line 357 of file tmpI.H.
Referenced by sampledSets::getOrLoadField(), and Probes< patchFieldProbe >::getOrLoadField().

|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Swaps the managed object with other.
Definition at line 418 of file tmpI.H.
Referenced by FilterField::evaluate().

|
inline |
|
inline |
|
inline |
|
inlineexplicitnoexcept |
|
inline |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
Identical to good(), or bool operator.
Definition at line 481 of file tmp.H.
Referenced by SemiImplicitSource< Type >::addSup(), MassTransferPhaseSystem< BasePhaseSystem >::alphaTransfer(), basicMultiComponentMixture::basicMultiComponentMixture(), parseDriver::getField(), MassTransferPhaseSystem< BasePhaseSystem >::heatTransfer(), parseDriver::patchInternalField(), parseDriver::patchNeighbourField(), parseDriver::patchNormalField(), twoPhaseSystem::solve(), MassTransferPhaseSystem< BasePhaseSystem >::volTransfer(), and subCycleField< GeometricField >::~subCycleField().

|
inlinenoexcept |
Identical to is_pointer(). Prefer is_pointer() or movable().
|
inlinenoexcept |
Deprecated(2020-07) True if a null managed pointer.