A class for managing temporary objects. More...
#include <tmp.H>

Public Types | |
| typedef T | element_type |
| Type of object being managed or referenced. | |
| typedef T * | pointer |
| Pointer to type of object being managed or referenced. | |
| typedef Foam::refCount | refCount |
| Reference counter class. | |
Public Member Functions | |
| constexpr | tmp () noexcept |
| Construct with no managed pointer. | |
| constexpr | tmp (std::nullptr_t) noexcept |
| Implicit construct from literal nullptr: no managed pointer. | |
| tmp (T *p) | |
| Construct, taking ownership of the pointer. | |
| constexpr | tmp (const T &obj) noexcept |
| Implicit construct for a const reference to an object. | |
| tmp (tmp< T > &&rhs) noexcept | |
| Move construct, transferring ownership. | |
| tmp (const tmp< T > &&rhs) noexcept | |
| Move construct, transferring ownership. | |
| tmp (const tmp< T > &rhs) | |
| Copy construct, incrementing ref-count of managed pointer. | |
| tmp (const tmp< T > &rhs, bool reuse) | |
| Copy/move construct. Optionally reusing ref-counted pointer. | |
| tmp (const autoPtr< T > &)=delete | |
| No copy construct from autoPtr, also avoids implicit cast to object or pointer. | |
| tmp (const refPtr< T > &)=delete | |
| No copy construct from refPtr, also avoids implicit cast to object. | |
| tmp (autoPtr< T > &&rhs) noexcept | |
| Move construct from autoPtr, transferring ownership. | |
| ~tmp () noexcept | |
| Destructor: deletes managed pointer when the ref-count is 0. | |
| bool | good () const noexcept |
| True if pointer/reference is non-null. | |
| bool | is_const () const noexcept |
| If the stored/referenced content is const. | |
| bool | is_pointer () const noexcept |
| True if this is a managed pointer (not a reference). | |
| bool | is_reference () const noexcept |
| True if this is a reference (not a pointer). | |
| bool | movable () const noexcept |
| True if this is a non-null managed pointer with a unique ref-count. | |
| T * | get () noexcept |
| Return pointer without nullptr checking. | |
| const T * | get () const noexcept |
| Return const pointer without nullptr checking. | |
| const T & | cref () const |
| Return const reference to the object or to the contents of a (non-null) managed pointer. | |
| T & | ref () const |
| Return non-const reference to the contents of a non-null managed pointer. | |
| 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. | |
| T * | ptr () const |
| Return managed pointer for reuse, or clone() the object reference. | |
| void | clear () const noexcept |
| If object pointer points to valid object: delete object and set pointer to nullptr. | |
| void | protect (bool on) noexcept |
| Use specified protection against moving for the managed pointer. No-op for references. | |
| void | reset (tmp< T > &&other) noexcept |
| Clear existing and transfer ownership. | |
| void | reset (T *p=nullptr) noexcept |
| Delete managed temporary object and set to new given pointer. | |
| void | reset (const autoPtr< T > &)=delete |
| Avoid inadvertent casting (to object or pointer). | |
| void | reset (const refPtr< T > &)=delete |
| Avoid inadvertent casting (to object). | |
| template<class... Args> | |
| T & | emplace (Args &&... args) |
| Reset with emplace construction. Return reference to the new content. | |
| void | cref (const tmp< T > &other) noexcept |
| Clear existing and set (const) reference from other. | |
| void | cref (const T &obj) noexcept |
| Clear existing and set (const) reference. | |
| void | cref (const T *p) noexcept |
| Clear existing and set (const) reference to pointer content. | |
| void | cref (const autoPtr< T > &)=delete |
| Avoid inadvertent casting (to object or pointer). | |
| void | cref (const refPtr< T > &)=delete |
| Avoid inadvertent casting (to object). | |
| void | ref (T &obj) noexcept |
| Clear existing and set to (non-const) reference. | |
| void | ref (T *p) noexcept |
| Clear existing and set (non-const) reference to pointer content. | |
| void | ref (const autoPtr< T > &)=delete |
| Avoid inadvertent casting (to object or pointer). | |
| void | ref (const refPtr< T > &)=delete |
| Avoid inadvertent casting (to object). | |
| void | swap (tmp< T > &other) noexcept |
| Swaps the managed object with other. | |
| const T * | operator-> () const |
| Dereferences (const) pointer to the managed object. | |
| T * | operator-> () |
| Dereferences (non-const) pointer to the managed object. | |
| const T & | operator() () const |
| Return const reference to the object - same as cref() method. | |
| operator bool () const noexcept | |
| True if pointer/reference is non-null. Same as good(). | |
| operator const T & () const | |
| Cast to underlying data type, using the cref() method. | |
| void | operator= (const tmp< T > &other) |
| Transfer ownership of the managed pointer. | |
| void | operator= (tmp< T > &&other) noexcept |
| Clear existing and transfer ownership. | |
| void | operator= (T *p) |
| Take ownership of the pointer. | |
| void | operator= (std::nullptr_t) noexcept |
| Reset via assignment from literal nullptr. | |
| bool | valid () const noexcept |
| Identical to good(), or bool operator. | |
| bool | isTmp () const noexcept |
| Identical to is_pointer(). Prefer is_pointer() or movable(). | |
| bool | empty () const noexcept |
| Deprecated(2020-07) True if a null managed pointer. | |
| auto | expr () const |
| Wrap value as expression. | |
Static Public Member Functions | |
| template<class... Args> | |
| static tmp< T > | New (Args &&... args) |
| Construct tmp with forwarding arguments. | |
| template<class U, class... Args> | |
| static tmp< T > | NewFrom (Args &&... args) |
| Construct tmp from derived type with forwarding arguments. | |
| static word | typeName () |
| The type-name, constructed from type-name of T. | |
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.
| typedef T element_type |
| typedef Foam::refCount refCount |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
Implicit construct from literal nullptr: no managed pointer.
Definition at line 62 of file tmpI.H.
References Foam::noexcept.
Implicit construct for a const reference to an object.
Definition at line 87 of file tmpI.H.
References Foam::noexcept, and Foam::T().

Move construct, transferring ownership.
Does not affect ref-count
Definition at line 95 of file tmpI.H.
References Foam::noexcept, Foam::rhs(), and tmp().

Move construct, transferring ownership.
Does not affect ref-count
Definition at line 106 of file tmpI.H.
References Foam::noexcept, Foam::rhs(), and tmp().

Copy construct, incrementing ref-count of managed pointer.
Definition at line 117 of file tmpI.H.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, is_pointer(), Foam::rhs(), tmp(), and typeName().

Copy/move construct. Optionally reusing ref-counted pointer.
Definition at line 141 of file tmpI.H.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, is_pointer(), Foam::rhs(), tmp(), and typeName().

No copy construct from refPtr, also avoids implicit cast to object.
References Foam::noexcept, Foam::rhs(), Foam::T(), and tmp().

Move construct from autoPtr, transferring ownership.
Definition at line 173 of file tmpI.H.
References Foam::noexcept, Foam::rhs(), and tmp().

Destructor: deletes managed pointer when the ref-count is 0.
Definition at line 182 of file tmpI.H.
References clear(), and Foam::noexcept.

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.
References args, New(), Foam::T(), T, and tmp().
Referenced by constantAbsorption::a(), lookup::a(), multiBandAbsorption::a(), solidAbsorption::a(), adjointNull::accumulateGradDxDbMultiplier(), incompressibleAdjointSolver::accumulateGradDxDbMultiplier(), nullSpace::activeConstraints(), scene::addColourToMesh(), adjointkOmegaSST::adjointMeanFlowSource(), boundaryAdjointContribution::adjointTMVariable1Source(), boundaryAdjointContribution::adjointTMVariable2Source(), acousticWaveTransmissiveFvPatchField< Type >::advectionSpeed(), decompositionGAMGAgglomeration::agglomerate(), pairGAMGAgglomeration::agglomerate(), GAMGInterface::agglomerateCoeffs(), adjointSolverManager::aggregateSensitivities(), KinematicCloud< CloudType >::alpha(), ThermalDiffusivity< BasicTurbulenceModel >::alphat(), ThermalDiffusivity< BasicTurbulenceModel >::alphat(), ThermoCloud< CloudType >::ap(), polyPatch::areaFraction(), levelSetDesignVariables::assembleSensitivities(), shapeDesignVariables::assembleSensitivities(), topODesignVariables::assembleSensitivities(), nullSpace::ATv(), variablesSet::autoCreateMeshMovementField(), nullSpace::Av(), averageNeighbourFvGeometryScheme::averageCentres(), averageNeighbourFvGeometryScheme::averageNeighbourCentres(), snappySnapDriver::avgCellCentres(), adjointkOmegaSST::beta(), adjointkOmegaSST::beta(), kOmegaSSTBase< BasicEddyViscosityModel >::beta(), blendingFactor::blendingFactor(), alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField::calcAlphat(), atmNutkWallFunctionFvPatchScalarField::calcNut(), atmNutUWallFunctionFvPatchScalarField::calcNut(), atmNutWallFunctionFvPatchScalarField::calcNut(), nutkRoughWallFunctionFvPatchScalarField::calcNut(), nutkWallFunctionFvPatchScalarField::calcNut(), nutLowReWallFunctionFvPatchScalarField::calcNut(), nutUWallFunctionFvPatchScalarField::calcNut(), nutUTabulatedWallFunctionFvPatchScalarField::calcUPlus(), nutkFilmWallFunctionFvPatchScalarField::calcUTau(), nutUBlendedWallFunctionFvPatchScalarField::calcUTau(), nutUSpaldingWallFunctionFvPatchScalarField::calcUTau(), nutUWallFunctionFvPatchScalarField::calcYPlus(), deltaBoundary::cellCenters_d(), primitiveMeshTools::cellDeterminant(), pointSmoother::cellQuality(), geometricElementTransformPointSmoother::cellQuality(), treeDataCell::centres(), treeDataEdge::centres(), treeDataFace::centres(), treeDataPoint::centres(), BezierDesignVariables::computeBoundaryDisplacement(), volBSplinesBase::computeBoundaryDisplacement(), designVariablesUpdate::computeDirection(), kEpsilon::computeG(), NURBS3DVolume::computeNewBoundaryPoints(), NURBS3DVolume::computeNewPoints(), NURBS3DVolume::computeParametricCoordinates(), ISQP::computeResiduals(), MMA::computeResiduals(), nullSpace::computeResiduals(), ISQP::computeRHSForDeltaX(), adjointEikonalSolver::computeYPhi(), polyLine::concat(), KinematicCloud< Foam::DSMCCloud< dsmcParcel > >::constProps(), nullSpace::constraintRelatedUpdate(), adjointSolverManager::constraintValues(), volumetricBSplinesDesignVariables::controlPointMovement(), NURBS3DVolume::coordinates(), searchableBox::coordinates(), searchableCone::coordinates(), searchableCylinder::coordinates(), searchableDisk::coordinates(), searchablePlane::coordinates(), searchablePlate::coordinates(), searchableSphere::coordinates(), searchableSurfaceCollection::coordinates(), triSurfaceMesh::coordinates(), contactAngleForce::correct(), forceList::correct(), contactAngleForce::correct(), forceList::correct(), thermocapillaryForce::correct(), relaxedSnGrad< Type >::correction(), edgeInterpolation::correctionVectors(), ReynoldsAnalogy::Cp(), heThermo< BasicThermo, MixtureType >::Cp(), heThermo< BasicThermo, MixtureType >::Cp(), heThermo< BasicThermo, MixtureType >::CpByCpv(), heThermo< BasicThermo, MixtureType >::Cpv(), displacementComponentLaplacianFvMotionSolver::curPoints(), displacementInterpolationMotionSolver::curPoints(), displacementMeshMoverMotionSolver::curPoints(), elasticityMotionSolver::curPoints(), multiSolidBodyMotionSolver::curPoints(), rigidBodyMeshMotion::curPoints(), sixDoFRigidBodyMotionSolver::curPoints(), solidBodyMotionSolver::curPoints(), velocityComponentLaplacianFvMotionSolver::curPoints(), volumetricBSplinesMotionSolver::curPoints(), triSurfaceTools::curvatures(), heThermo< BasicThermo, MixtureType >::Cv(), faMatrix< Type >::D(), fvMatrix< Type >::D(), volumetricBSplinesDesignVariables::dCdb(), cyclicACMIFvPatch::delta(), cyclicAMIFvPatch::delta(), cyclicFaPatch::delta(), cyclicFvPatch::delta(), fvMesh::delta(), basicFvGeometryScheme::deltaCoeffs(), kEpsilon< Foam::EddyDiffusivity< Foam::fluidThermoCompressibleTurbulenceModel > >::DepsilonEff(), BorrvallPeterssonInterpolation::derivative(), expInterpolation::derivative(), invBP::derivative(), linearInterpolation::derivative(), sigmoidalHeaviside::derivative(), SIMPInterpolation::derivative(), sinhInterpolation::derivative(), smoothHeaviside::derivative(), tanhInterpolation::derivative(), DESModelRegions::DESModelRegions(), adjointkOmegaSST::devReff(), solarCalculator::diffuseSolarRad(), adjointRASModel::diffusionCoeffVar1(), adjointSpalartAllmaras::diffusionCoeffVar1(), adjointRASModel::diffusionCoeffVar2(), adjointkOmegaSST::distanceSensitivities(), adjointSpalartAllmaras::distanceSensitivities(), momentumError::divDevRhoReff(), phasePressureModel::divDevRhoReff(), boundaryAdjointContribution::dJdGradU(), boundaryAdjointContribution::dJdnut(), kOmegaSSTBase< BasicEddyViscosityModel >::DkEff(), kEpsilon< Foam::EddyDiffusivity< Foam::fluidThermoCompressibleTurbulenceModel > >::DkEff(), kL< Foam::EddyDiffusivity< Foam::fluidThermoCompressibleTurbulenceModel > >::DkEff(), Bezier::dndbBasedSensitivities(), Bezier::dndbBasedSensitivities(), NURBS3DVolume::dndbBasedSensitivities(), adjointSpalartAllmaras::DnuTildaEff(), SpalartAllmarasBase< BasicEddyViscosityModel >::DnuTildaEff(), kOmegaSSTBase< BasicEddyViscosityModel >::DomegaEff(), kEpsilonPhitF< Foam::EddyDiffusivity< Foam::fluidThermoCompressibleTurbulenceModel > >::DphitEff(), surfactantProperties::dSigma(), Bezier::dxdbFace(), Bezier::dxdbFace(), adjointRotatingWallVelocityFvPatchVectorField::dxdbMult(), shapeDesignVariables::dxdbVol(), volumetricBSplinesDesignVariables::dxdbVol(), constantAbsorption::e(), lookup::e(), multiBandAbsorption::e(), solidAbsorption::e(), faMesh::edgeLengthCorrection(), faPatch::edgeNormals(), PatchTools::edgeNormals(), PatchTools::edgeNormals(), ThermoCloud< CloudType >::Ep(), LESModel< BasicTurbulenceModel >::epsilon(), sigma< BasicTurbulenceModel >::epsilon(), SpalartAllmarasBase< BasicEddyViscosityModel >::epsilon(), kEpsilon< BasicTurbulenceModel >::epsilonSource(), LaunderSharmaKE< BasicTurbulenceModel >::epsilonSource(), realizableKE< BasicTurbulenceModel >::epsilonSource(), RNGkEpsilon< BasicTurbulenceModel >::epsilonSource(), boundedBackwardFaDdtScheme::facDdt(), polyPatch::faceCellCentres(), primitiveMeshTools::faceConcavity(), primitiveMeshTools::faceFlatness(), cellQuality::faceNonOrthogonality(), polyMeshTools::faceOrthogonality(), primitiveMeshTools::faceOrthogonality(), mappedPatchBase::facePoints(), cellQuality::faceSkewness(), polyMeshTools::faceSkewness(), primitiveMeshTools::faceSkewness(), polyMeshTools::faceWeights(), Foam::edgeMeshTools::featureProximity(), parseDriver::field_cellCentre(), parseDriver::field_cellSelection(), parseDriver::field_faceSelection(), parseDriver::field_rand(), sizeDistribution::filterField(), NURBS3DSurface::findClosestSurfacePoint(), adjointkOmegaSST::FISensitivityTerm(), adjointSpalartAllmaras::FISensitivityTerm(), fft::forwardTransform(), fft::forwardTransform(), interfaceTrackingFvMesh::freeSurfacePressureJump(), interfaceTrackingFvMesh::freeSurfaceSnGradU(), interfaceTrackingFvMesh::freeSurfaceSnGradUn(), noiseFFT::frequencies(), SpalartAllmarasBase< BasicEddyViscosityModel >::ft2(), relaxedNonOrthoGaussLaplacianScheme< Type, GType >::fvmLaplacian(), heThermo< BasicThermo, MixtureType >::gamma(), adjointkOmegaSST::gamma(), adjointkOmegaSST::gamma(), kOmegaSSTBase< BasicEddyViscosityModel >::gamma(), kOmegaSSTBase< BasicEddyViscosityModel >::GbyNu0(), MMA::gConstr(), Foam::getBoundedColours(), Foam::getField(), Foam::getField(), adjointEikonalSolver::getFISensitivityTerm(), ATCstandard::getFISensitivityTerm(), cancelATC::getFISensitivityTerm(), adjointSolver::getObjectiveSensitivities(), MMA::getOrDefaultScalarField(), blockMesh::globalPosition(), adjointEikonalSolver::gradEikonal(), lduMatrix::H1(), faMesh::haloFaceCentres(), faMesh::haloFaceNormals(), heThermo< BasicThermo, MixtureType >::he(), heThermo< BasicThermo, MixtureType >::he(), MassTransferPhaseSystem< BasePhaseSystem >::heatTransfer(), LBFGS::HessianDiag(), LBFGS::HessianVectorProduct(), heheuPsiThermo< BasicPsiThermo, MixtureType >::heu(), heheuPsiThermo< BasicPsiThermo, MixtureType >::heu(), rotorDiskSource::inflowVelocity(), cyclicACMIFvPatch::interfaceInternalField(), cyclicAMIFvPatch::interfaceInternalField(), cyclicFaPatch::interfaceInternalField(), cyclicFvPatch::interfaceInternalField(), lduPrimitiveProcessorInterface::interfaceInternalField(), oversetFvPatch::interfaceInternalField(), processorFaPatch::interfaceInternalField(), processorFvPatch::interfaceInternalField(), AssemblyFvPatch< CyclicType >::internalFieldTransfer(), calculatedProcessorGAMGInterface::internalFieldTransfer(), cyclicACMIGAMGInterface::internalFieldTransfer(), cyclicAMIGAMGInterface::internalFieldTransfer(), cyclicFaPatch::internalFieldTransfer(), cyclicGAMGInterface::internalFieldTransfer(), oversetFvPatch::internalFieldTransfer(), oversetFvPatch::internalFieldTransfer(), oversetGAMGInterface::internalFieldTransfer(), leastSquaresEdgeInterpolation< Type >::interpolate(), Foam::inv(), Foam::inv(), LBFGS::invHessianVectorProduct(), ISQP::invHFL(), coordinateSystem::invTransformPointImpl(), sigma< BasicTurbulenceModel >::k(), SpalartAllmarasBase< BasicEddyViscosityModel >::k(), heSolidThermo< BasicSolidThermo, MixtureType >::Kappa(), multiphaseInterSystem::kappaEff(), diffusionGasEvaporation< Thermo, OtherThermo >::Kexp(), interfaceHeatResistance< Thermo, OtherThermo >::Kexp(), interfaceOxideRate< Thermo, OtherThermo >::Kexp(), kineticGasEvaporation< Thermo, OtherThermo >::Kexp(), kOmegaSSTBase< BasicEddyViscosityModel >::kSource(), dynamicKEqn< BasicTurbulenceModel >::kSource(), kEqn< BasicTurbulenceModel >::kSource(), kEpsilon< BasicTurbulenceModel >::kSource(), kL< BasicTurbulenceModel >::kSource(), LaunderSharmaKE< BasicTurbulenceModel >::kSource(), realizableKE< BasicTurbulenceModel >::kSource(), RNGkEpsilon< BasicTurbulenceModel >::kSource(), interfaceHeatResistance< Thermo, OtherThermo >::KSu(), boundaryAdjointContributionIncompressible::laminarDiffusivity(), kOmegaSSTDES< BasicTurbulenceModel >::LESRegion(), SpalartAllmarasDES< BasicTurbulenceModel >::LESRegion(), Foam::levelSetFraction(), LimitedScheme< Type, Limiter, LimitFunc >::limiter(), upwind< Type >::limiter(), cylindrical::localToGlobal(), meshRefinement::makeDisplacementField(), mappedPatchFieldBase< Type >::mappedWeightField(), speciesSorptionFvPatchScalarField::mass(), noiseModel::meanPf(), momentOfInertia::meshInertia(), steadyStateDdtScheme< Type >::meshPhi(), regionModel1D::moveMesh(), laminar::mut(), processorFaPatch::neighbEdgeNormals(), New(), faPatch::ngbPolyPatchFaceNormals(), faPatch::ngbPolyPatchPointNormals(), basicFvGeometryScheme::nonOrthCorrectionVectors(), basicFvGeometryScheme::nonOrthDeltaCoeffs(), cellQuality::nonOrthogonality(), oversetFvMeshBase::normalisation(), RASModelVariables::nut(), laminarModel< BasicTurbulenceModel >::nut(), generalizedNewtonian< BasicMomentumTransportModel >::nut(), Stokes< BasicTurbulenceModel >::nut(), adjointRASModel::nutJacobianTMVar1(), adjointRASModel::nutJacobianTMVar2(), RASModelVariables::nutPatchField(), noiseModel::octaves(), LESModel< BasicTurbulenceModel >::omega(), SpalartAllmarasBase< BasicEddyViscosityModel >::omega(), kOmegaSSTBase< BasicEddyViscosityModel >::omegaSource(), MMA::p(), KinematicCloud< Foam::DSMCCloud< dsmcParcel > >::pAmbient(), NURBS3DVolume::patchDxDb(), NURBS3DVolume::patchDxDbFace(), enthalpySorptionFvPatchScalarField::patchSource(), speciesSorptionFvPatchScalarField::patchSource(), topODesignVariables::penalty(), noiseFFT::Pf(), noiseModel::Pf(), ReactingCloud< Foam::DSMCCloud< dsmcParcel > >::phaseChange(), semiPermeableBaffleMassFractionFvPatchScalarField::phiY(), PatchTools::pointNormals(), PatchTools::pointNormals(), searchableCone::points(), searchableCylinder::points(), searchablePlate::points(), searchableSurfaceCollection::points(), blockEdge::position(), projectCurveEdge::position(), projectEdge::position(), morphingBoxConstraint::postProcessSens(), PhaseCompressibleTurbulenceModel< TransportModel >::pPrime(), PhaseIncompressibleTurbulenceModel< TransportModel >::pPrime(), PhaseCompressibleTurbulenceModel< TransportModel >::pPrimef(), PhaseIncompressibleTurbulenceModel< TransportModel >::pPrimef(), filmTurbulenceModel::primaryRegionFriction(), noiseModel::PSDf(), SpalartAllmarasDES< BasicTurbulenceModel >::psi(), MMA::q(), greyDiffusiveViewFactorFixedValueFvPatchScalarField::qro(), kOmegaSSTBase< BasicEddyViscosityModel >::Qsas(), diffusionMulticomponent< ReactionThermo, ThermoType >::R(), laminar< ReactionThermo >::R(), noCombustion< ReactionThermo >::R(), InertPhaseModel< BasePhaseModel >::R(), adjointSpalartAllmaras::r(), ThermoCloud< Foam::DSMCCloud< dsmcParcel > >::radiation(), lookup::rDiff(), opaqueDiffusive::rDiff(), transparent::rDiff(), reader::readField(), updateMethod::readOrZeroField(), fft::realTransform1D(), ISQP::resFGs(), ISQP::resFL(), lduMatrix::residual(), fft::reverseTransform(), fft::reverseTransform(), forces::rho(), ReynoldsAnalogy::rho(), KinematicCloud< CloudType >::rhoEff(), heThermo< BasicThermo, MixtureType >::rhoEoS(), coordinateSystem::rotationsImpl(), lookup::rSpec(), opaqueDiffusive::rSpec(), transparent::rSpec(), Foam::safeLog10(), mappedPatchBase::samplePoints(), FriedrichModel::separatedMassRatio(), OwenRyleyModel::separatedMassRatio(), coalCloudList::Sh(), ThermoCloud< CloudType >::Sh(), ISQP::ShermanMorrisonRank1Update(), electrostaticDepositionFvPatchScalarField::sigma(), edgeInterpolation::skewCorrectionVectors(), cellQuality::skewness(), shapeDesignVariables::solveMeshMovementEqn(), fvMatrix< scalar >::solveSegregated(), timeVaryingMassSorptionFvPatchScalarField::source(), LBFGS::SR1HessianDiag(), LBFGS::SR1HessianVectorProduct(), coalCloudList::Srho(), Foam::stabilise(), coalCloudList::SU(), Foam::sumNeighbours(), interfaceTrackingFvMesh::surfaceTensionGrad(), coalCloudList::SYi(), ReactingCloud< CloudType >::SYi(), constantTransmissivity::t(), lookup::t(), multiBandTransmissivity::t(), opaqueDiffusive::t(), opaqueReflective::t(), transparent::t(), heThermo< BasicThermo, MixtureType >::THE(), heThermo< BasicThermo, MixtureType >::THE(), boundaryAdjointContributionIncompressible::thermalDiffusion(), constantAlphaContactAngleFvPatchScalarField::theta(), dynamicAlphaContactAngleFvPatchScalarField::theta(), KinematicCloud< CloudType >::theta(), timeVaryingAlphaContactAngleFvPatchScalarField::theta(), targetCoeffTrim::thetag(), Spiegler::TLeid(), RASModelVariables::TMVar1(), RASModelVariables::TMVar2(), boundaryAdjointContribution::TMVariable1(), boundaryAdjointContribution::TMVariable1Diffusion(), boundaryAdjointContribution::TMVariable2(), boundaryAdjointContribution::TMVariable2Diffusion(), adjointEikonalSolver::topologySensitivities(), adjointkOmegaSST::topologySensitivities(), adjointLaminar::topologySensitivities(), adjointSpalartAllmaras::topologySensitivities(), cyclicFaPatch::transfer(), sixDoFRigidBodyMotion::transform(), Foam::transform(), coordinateSystem::transformPointImpl(), rigidBodyMotion::transformPoints(), rigidBodyMotion::transformPoints(), rigidBodyMotion::transformPoints(), Foam::transformPoints(), noiseModel::uniformFrequencies(), faMesh::unitLe(), fvMesh::unitSf(), triSurfaceTools::vertexNormals(), triSurfaceTools::vertexTriads(), blockMesh::vertices(), polyMeshTools::volRatio(), MassTransferPhaseSystem< BasePhaseSystem >::volTransfer(), waveModel::waterLevel(), basicFvGeometryScheme::weights(), triSurfaceTools::writeCloseness(), general::x(), TableBase< Type >::x(), general::y(), nutkWallFunctionFvPatchScalarField::yPlus(), alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField::yPlusTherm(), and boundaryRadiationProperties::zoneTransmissivity().

Construct tmp from derived type with forwarding arguments.
| args | list of arguments with which an instance of U will be constructed. |
Definition at line 230 of file tmp.H.
References args, tmp(), and U.

|
inlinestatic |
|
inlinenoexcept |
True if pointer/reference is non-null.
Definition at line 249 of file tmp.H.
References Foam::noexcept.
Referenced by fvMeshSubsetProxy::interpolate().

|
inlinenoexcept |
If the stored/referenced content is const.
Definition at line 191 of file tmpI.H.
References Foam::noexcept.
Referenced by operator->(), and ref().

|
inlinenoexcept |
True if this is a managed pointer (not a reference).
Definition at line 198 of file tmpI.H.
References Foam::noexcept.
Referenced by cref(), isTmp(), operator->(), operator=(), regIOobject::store(), tmp(), and tmp().

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

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

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


Return const pointer without nullptr checking.
Definition at line 282 of file tmp.H.
References Foam::noexcept, and Foam::T().

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.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, Foam::GlobalIOList< Tuple2< scalar, vector > >::typeName, is_pointer(), and Foam::T().
Referenced by incompressibleAdjointSolver::accumulateBCSensitivityIntegrand(), patchCellsSource::addSup(), BrownianMotionForce< CloudType >::cacheFields(), DispersionRASModel< CloudType >::cacheFields(), alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField::calcAlphat(), iterativeGaussGrad< Type >::calcGrad(), constCast(), EBRSM< BasicTurbulenceModel >::correct(), kL< BasicTurbulenceModel >::correct(), filmSeparation::correct(), cref(), cref(), FilterField::evaluate(), radiometerProbes::execute(), adjointSpalartAllmaras::FISensitivityTerm(), parseDriver::getField(), Probes< patchFieldProbe >::getOrLoadField(), sampledSets::getOrLoadField(), leastSquaresEdgeInterpolation< Type >::interpolate(), tmp< Foam::edgeInterpolationScheme< scalar > >::operator const Foam::edgeInterpolationScheme< scalar > &(), operator()(), parseDriver::patchInternalField(), parseDriver::patchNeighbourField(), parseDriver::patchNormalField(), reset(), FriedrichModel::separatedMassRatio(), OwenRyleyModel::separatedMassRatio(), partialSlipFvPatchField< Type >::snGrad(), regIOobject::store(), objectiveForce::update_dxdbMultiplier(), objectiveMoment::update_dxdbMultiplier(), and regionSizeDistribution::write().


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.
References FatalErrorInFunction, is_const(), and Foam::T().
Referenced by MRFZoneList::absolute(), adjointNull::accumulateGradDxDbMultiplier(), incompressibleAdjointSolver::accumulateGradDxDbMultiplier(), SemiImplicitSource< Type >::addSup(), phaseChange::addToDriftRate(), adjointkOmegaSST::adjointMeanFlowSource(), coordSetWriter::adjustFieldTemplate(), surfaceWriter::adjustFieldTemplate(), surfaceWriter::adjustSurface(), multiphaseInterSystem::alphaEff(), multiphaseInterSystem::alphaEff(), multiphaseInterSystem::alphahe(), multiphaseInterSystem::alphahe(), MassTransferPhaseSystem< BasePhaseSystem >::alphaTransfer(), shapeDesignVariables::assembleSensitivities(), Foam::atan2(), Foam::atan2(), Foam::atan2(), Foam::atan2(), Foam::atan2(), Foam::atan2(), Foam::atan2(), Foam::atan2(), Foam::atan2(), Foam::fac::average(), Foam::fvc::average(), add::calcFieldType(), subtract::calcFieldType(), gaussGrad< Type >::calcGrad(), leastSquaresFaGrad< Type >::calcGrad(), cellLimitedGrad< Type, Limiter >::calcGrad(), cellMDLimitedGrad< Type >::calcGrad(), faceLimitedGrad< Type >::calcGrad(), faceMDLimitedGrad< Type >::calcGrad(), fourthGrad< Type >::calcGrad(), fusedGaussGrad< Type >::calcGrad(), fusedLeastSquaresGrad< Type >::calcGrad(), gaussGrad< Type >::calcGrad(), iterativeGaussGrad< Type >::calcGrad(), LeastSquaresGrad< Type, Stencil >::calcGrad(), leastSquaresGrad< Type >::calcGrad(), nutUSpaldingWallFunctionFvPatchScalarField::calcNut(), geometricElementTransformPointSmoother::cellQuality(), treeDataEdge::centres(), Zuber::CHF(), HuaXu::CHFSubCool(), Tatsumoto::CHFSubCool(), Foam::cmptMag(), NURBS3DVolume::computeParametricCoordinates(), NURBS3DVolume::computeParametricCoordinates(), ISQP::computeResiduals(), MMA::computeResiduals(), nullSpace::computeResiduals(), ISQP::computeRHSForDeltaX(), Foam::constrainHbyA(), ShapeSensitivitiesBase::constructVolSensitivtyField(), kkLOmega::correct(), LamBremhorstKE::correct(), LienCubicKE::correct(), LienLeschziner::correct(), qZeta::correct(), ShihQuadraticKE::correct(), adjointkOmegaSST::correct(), adjointSpalartAllmaras::correct(), kOmegaSSTBase< BasicEddyViscosityModel >::correct(), Maxwell< BasicTurbulenceModel >::correct(), DeardorffDiffStress< BasicTurbulenceModel >::correct(), EBRSM< BasicTurbulenceModel >::correct(), kEpsilon< BasicTurbulenceModel >::correct(), kEpsilonLopesdaCosta< BasicTurbulenceModel >::correct(), kEpsilonPhitF< BasicTurbulenceModel >::correct(), kL< BasicTurbulenceModel >::correct(), kOmega< BasicTurbulenceModel >::correct(), LaunderSharmaKE< BasicTurbulenceModel >::correct(), LRR< BasicTurbulenceModel >::correct(), mixtureKEpsilon< BasicTurbulenceModel >::correct(), realizableKE< BasicTurbulenceModel >::correct(), RNGkEpsilon< BasicTurbulenceModel >::correct(), SSG< BasicTurbulenceModel >::correct(), SpalartAllmarasBase< BasicEddyViscosityModel >::correct(), cubic< Type >::correction(), deferredCorrection< Type >::correction(), correctedLnGrad< Type >::correction(), fourthLnGrad< Type >::correction(), CentredFitSnGradScheme< Foam::scalar, Foam::linearFitPolynomial, Foam::centredFECCellToFaceStencilObject >::correction(), correctedSnGrad< Type >::correction(), faceCorrectedSnGrad< Type >::correction(), linearUpwind< Type >::correction(), linearUpwind< Type >::correction(), linearUpwindV< Type >::correction(), outletStabilised< Type >::correction(), pointLinear< Type >::correction(), MassTransferPhaseSystem< BasePhaseSystem >::correctMassSources(), kOmegaSSTLM< BasicTurbulenceModel >::correctReThetatGammaInt(), multiphaseInterSystem::Cp(), multiphaseInterSystem::Cp(), multiphaseInterSystem::CpByCpv(), multiphaseInterSystem::CpByCpv(), multiphaseInterSystem::Cpv(), multiphaseInterSystem::Cpv(), cref(), Foam::fvc::curl(), displacementLaplacianFvMotionSolver::curPoints(), displacementSBRStressFvMotionSolver::curPoints(), laplacianMotionSolver::curPoints(), motionSmootherAlgo::curPoints(), pLaplacianMotionSolver::curPoints(), solidBodyDisplacementLaplacianFvMotionSolver::curPoints(), velocityLaplacianFvMotionSolver::curPoints(), multiphaseInterSystem::Cv(), multiphaseInterSystem::Cv(), InterfaceCompositionModel< Thermo, OtherThermo >::D(), Foam::fac::d2dt2(), Foam::fac::d2dt2(), Foam::fac::d2dt2(), Foam::fac::d2dt2(), Foam::fam::d2dt2(), Foam::fam::d2dt2(), Foam::fam::d2dt2(), Foam::fvc::d2dt2(), Foam::fvm::d2dt2(), Foam::fvm::d2dt2(), fvMatrix< Type >::DD(), Foam::fac::ddt(), Foam::fac::ddt(), Foam::fac::ddt(), Foam::fam::ddt(), Foam::fam::ddt(), Foam::fvc::ddt(), Foam::fvc::ddt(), Foam::fvc::ddt(), Foam::fvc::ddt(), Foam::fvc::ddt(), Foam::fvm::ddt(), Foam::fvm::ddt(), Foam::fvm::ddt(), MomentumTransferPhaseSystem< BasePhaseSystem >::ddtCorrByAs(), BorrvallPeterssonInterpolation::derivative(), expInterpolation::derivative(), invBP::derivative(), sigmoidalHeaviside::derivative(), SIMPInterpolation::derivative(), sinhInterpolation::derivative(), smoothHeaviside::derivative(), tanhInterpolation::derivative(), nonlinearEddyViscosity< BasicTurbulenceModel >::devRhoReff(), ISQP::diagPreconditioner(), adjointSpalartAllmaras::distanceSensitivities(), Foam::fac::div(), Foam::fac::div(), Foam::fam::div(), Foam::fvc::div(), snappySnapDriver::doSnap(), surfaceInterpolationScheme< scalar >::dotInterpolate(), 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< Type >::euclidianInterpolate(), scalarTransport::execute(), surfaceCourantNumber::execute(), PopeIndex::execute(), kOmegaSSTBase< BasicEddyViscosityModel >::F23(), EulerFaD2dt2Scheme< Type >::facD2dt2(), backwardFaDdtScheme< Type >::facDdt(), boundedBackwardFaDdtScheme::facDdt(), EulerFaDdtScheme< Type >::facDdt(), backwardFaDdtScheme< Type >::facDdt0(), boundedBackwardFaDdtScheme::facDdt0(), EulerFaDdtScheme< Type >::facDdt0(), gaussConvectionScheme< Type >::facDiv(), gaussLaplacianScheme< Type >::facLaplacian(), gaussLaplacianScheme< Type >::facLaplacian(), EulerFaD2dt2Scheme< Type >::famD2dt2(), EulerFaD2dt2Scheme< Type >::famD2dt2(), EulerFaD2dt2Scheme< Type >::famD2dt2(), backwardFaDdtScheme< Type >::famDdt(), backwardFaDdtScheme< Type >::famDdt(), backwardFaDdtScheme< Type >::famDdt(), boundedBackwardFaDdtScheme::famDdt(), boundedBackwardFaDdtScheme::famDdt(), boundedBackwardFaDdtScheme::famDdt(), EulerFaDdtScheme< Type >::famDdt(), EulerFaDdtScheme< Type >::famDdt(), EulerFaDdtScheme< Type >::famDdt(), gaussConvectionScheme< Type >::famDiv(), gaussLaplacianScheme< Type >::famLaplacian(), adjointkOmegaSST::FISensitivityTerm(), adjointSpalartAllmaras::FISensitivityTerm(), correctedSnGrad< Type >::fullGradCorrection(), faceCorrectedSnGrad< Type >::fullGradCorrection(), backwardDdtScheme< Type >::fvcDdt(), backwardDdtScheme< Type >::fvcDdt(), backwardDdtScheme< Type >::fvcDdt(), backwardDdtScheme< Type >::fvcDdt(), backwardDdtScheme< Type >::fvcDdt(), boundedDdtScheme< Type >::fvcDdt(), boundedDdtScheme< Type >::fvcDdt(), boundedDdtScheme< Type >::fvcDdt(), boundedDdtScheme< Type >::fvcDdt(), CoEulerDdtScheme< Type >::fvcDdt(), CoEulerDdtScheme< Type >::fvcDdt(), CoEulerDdtScheme< Type >::fvcDdt(), CoEulerDdtScheme< Type >::fvcDdt(), CoEulerDdtScheme< Type >::fvcDdt(), CrankNicolsonDdtScheme< Type >::fvcDdt(), CrankNicolsonDdtScheme< Type >::fvcDdt(), CrankNicolsonDdtScheme< Type >::fvcDdt(), CrankNicolsonDdtScheme< Type >::fvcDdt(), CrankNicolsonDdtScheme< Type >::fvcDdt(), EulerDdtScheme< Type >::fvcDdt(), EulerDdtScheme< Type >::fvcDdt(), EulerDdtScheme< Type >::fvcDdt(), EulerDdtScheme< Type >::fvcDdt(), EulerDdtScheme< Type >::fvcDdt(), SLTSDdtScheme< Type >::fvcDdt(), SLTSDdtScheme< Type >::fvcDdt(), SLTSDdtScheme< Type >::fvcDdt(), SLTSDdtScheme< Type >::fvcDdt(), SLTSDdtScheme< Type >::fvcDdt(), ddtScheme< Type >::fvcDdtPhiCoeff(), ddtScheme< Type >::fvcDdtPhiCoeffExperimental(), boundedDdtScheme< Type >::fvcDdtPhiCorr(), boundedDdtScheme< Type >::fvcDdtPhiCorr(), steadyStateDdtScheme< Type >::fvcDdtPhiCorr(), steadyStateDdtScheme< Type >::fvcDdtPhiCorr(), boundedDdtScheme< Type >::fvcDdtUfCorr(), boundedDdtScheme< Type >::fvcDdtUfCorr(), steadyStateDdtScheme< Type >::fvcDdtUfCorr(), steadyStateDdtScheme< Type >::fvcDdtUfCorr(), fusedGaussConvectionScheme< Type >::fvcDiv(), fusedGaussDivScheme< Type >::fvcDiv(), gaussConvectionScheme< Type >::fvcDiv(), fusedGaussLaplacianScheme< Type, GType >::fvcLaplacian(), fusedGaussLaplacianScheme< Type, GType >::fvcLaplacian(), fusedGaussLaplacianScheme< Type, GType >::fvcLaplacian(), fusedGaussLaplacianScheme< Type, GType >::fvcLaplacian(), fusedGaussLaplacianScheme< Type, GType >::fvcLaplacian(), gaussLaplacianScheme< Type, GType >::fvcLaplacian(), gaussLaplacianScheme< Type, GType >::fvcLaplacian(), relaxedNonOrthoGaussLaplacianScheme< Type, GType >::fvcLaplacian(), relaxedNonOrthoGaussLaplacianScheme< Type, GType >::fvcLaplacian(), EulerD2dt2Scheme< Type >::fvmD2dt2(), EulerD2dt2Scheme< Type >::fvmD2dt2(), EulerD2dt2Scheme< Type >::fvmD2dt2(), backwardDdtScheme< Type >::fvmDdt(), backwardDdtScheme< Type >::fvmDdt(), backwardDdtScheme< Type >::fvmDdt(), backwardDdtScheme< Type >::fvmDdt(), boundedDdtScheme< Type >::fvmDdt(), boundedDdtScheme< Type >::fvmDdt(), boundedDdtScheme< Type >::fvmDdt(), boundedDdtScheme< Type >::fvmDdt(), CoEulerDdtScheme< Type >::fvmDdt(), CoEulerDdtScheme< Type >::fvmDdt(), CoEulerDdtScheme< Type >::fvmDdt(), CoEulerDdtScheme< Type >::fvmDdt(), CrankNicolsonDdtScheme< Type >::fvmDdt(), CrankNicolsonDdtScheme< Type >::fvmDdt(), CrankNicolsonDdtScheme< Type >::fvmDdt(), CrankNicolsonDdtScheme< Type >::fvmDdt(), EulerDdtScheme< Type >::fvmDdt(), EulerDdtScheme< Type >::fvmDdt(), EulerDdtScheme< Type >::fvmDdt(), EulerDdtScheme< Type >::fvmDdt(), localEulerDdtScheme< Type >::fvmDdt(), localEulerDdtScheme< Type >::fvmDdt(), localEulerDdtScheme< Type >::fvmDdt(), localEulerDdtScheme< Type >::fvmDdt(), SLTSDdtScheme< Type >::fvmDdt(), SLTSDdtScheme< Type >::fvmDdt(), SLTSDdtScheme< Type >::fvmDdt(), SLTSDdtScheme< Type >::fvmDdt(), fusedGaussConvectionScheme< Type >::fvmDiv(), gaussConvectionScheme< Type >::fvmDiv(), fusedGaussLaplacianScheme< Type, GType >::fvmLaplacian(), gaussLaplacianScheme< Type, GType >::fvmLaplacian(), relaxedNonOrthoGaussLaplacianScheme< Type, GType >::fvmLaplacian(), fusedGaussLaplacianScheme< Type, GType >::fvmLaplacianUncorrected(), gaussLaplacianScheme< Type, GType >::fvmLaplacianUncorrected(), relaxedNonOrthoGaussLaplacianScheme< Type, GType >::fvmLaplacianUncorrected(), multiphaseInterSystem::gamma(), MMA::gConstr(), fvMeshDistribute::generateTestField(), NURBS3DVolume::getDxDb(), ATCstandard::getFISensitivityTerm(), MMA::getOrDefaultScalarField(), fvExprDriver::getOrReadFieldImpl(), cylindrical::globalToLocal(), Foam::fac::grad(), gaussGrad< Type >::gradf(), fusedGaussGrad< Type >::gradf(), gaussGrad< Type >::gradf(), multiphaseInterSystem::hc(), MassTransferPhaseSystem< BasePhaseSystem >::heatTransfer(), AnisothermalPhaseModel< BasePhaseModel >::heEqn(), LBFGS::HessianDiag(), LBFGS::HessianVectorProduct(), BreenWestwater::htcFilmBoil(), Bromley::htcFilmBoil(), InterfaceCompositionPhaseChangePhaseSystem< BasePhaseSystem >::iDmdt(), edgeInterpolationScheme< Type >::interpolate(), edgeInterpolationScheme< Type >::interpolate(), Foam::interpolate(), localMax< Type >::interpolate(), localMin< Type >::interpolate(), pointVolInterpolation::interpolate(), singleCellFvMesh::interpolate(), surfaceInterpolationScheme< Type >::interpolate(), Foam::inv(), LBFGS::invHessianVectorProduct(), ISQP::invHFL(), multiphaseInterSystem::K(), ReynoldsStress< BasicTurbulenceModel >::k(), adjointkOmegaSST::kaEqnSourceFromCDkOmega(), multiphaseInterSystem::kappa(), multiphaseInterSystem::kappa(), interfaceOxideRate< Thermo, OtherThermo >::Kexp(), Foam::fac::laplacian(), Foam::fam::laplacian(), Foam::fvc::laplacian(), Foam::fvc::laplacian(), Foam::fvm::laplacian(), Foam::fvm::laplacian(), PhiScheme< Type, PhiLimiter >::limiter(), optimisationManager::lineSearchUpdate(), lnGradScheme< Type >::lnGrad(), lnGradScheme< Type >::lnGrad(), Foam::fvc::magSqrGradGrad(), adjointSimple::mainIter(), processorFaPatch::makeCorrectionVectors(), processorFaPatch::makeDeltaCoeffs(), volPointInterpolationAdjoint::makeWeights(), cyclicACMIFvPatchField< Type >::manipulateMatrix(), cyclicAMIFvPatchField< Type >::manipulateMatrix(), mappedPatchFieldBase< Type >::mappedWeightField(), ISQP::matrixVectorProduct(), boundedDdtScheme< Type >::meshPhi(), CoEulerDdtScheme< Type >::meshPhi(), localEulerDdtScheme< Type >::meshPhi(), SLTSDdtScheme< Type >::meshPhi(), Jeschar::MHF(), multiphaseInterSystem::mu(), multiphaseInterSystem::mu(), Foam::fac::ndiv(), Foam::fac::ndiv(), Foam::fac::ndiv(), faPatchField< Type >::New(), fvPatchField< Type >::New(), Foam::fac::ngrad(), Foam::fac::ngrad(), oversetFvMeshBase::normalisation(), JohnsonJacksonSchaeffer::nu(), multiphaseInterSystem::nu(), multiphaseInterSystem::nu(), multiphaseSystem::nu(), multiphaseSystem::nu(), MMA::p(), jumpCyclicAMIFvPatchField< Type >::patchNeighbourField(), topODesignVariables::penalty(), MMA::pLamda(), Foam::pow(), Foam::pow(), Foam::pow(), Foam::pow(), Foam::pow(), Foam::pow(), Foam::pow(), Foam::pow(), Foam::pow(), kineticTheoryModel::pPrime(), phasePressureModel::pPrime(), phasePressureModel::pPrimef(), boundaryAdjointContributionIncompressible::pressureSource(), MMA::q(), MMA::qLamda(), Kutadeladze::qNucleate(), nonlinearEddyViscosity< BasicTurbulenceModel >::R(), Foam::fvc::reconstruct(), Foam::fvc::reconstructMag(), ref(), ref(), MRFZoneList::relative(), MRFZoneList::relative(), MRFZoneList::relative(), ISQP::resFGs(), ISQP::resFL(), multiphaseInterSystem::rho(), multiphaseInterSystem::rho(), fvDOM::Ru(), kOmegaSSTDDES< BasicTurbulenceModel >::S2(), kOmegaSSTDES< BasicTurbulenceModel >::S2(), ISQP::ShermanMorrisonRank1Update(), electrostaticDepositionFvPatchScalarField::sigma(), skewCorrected< Type >::skewCorrection(), skewCorrectedEdgeInterpolation< Type >::skewCorrection(), snGradScheme< Type >::snGrad(), snGradScheme< Type >::snGrad(), twoPhaseSystem::solve(), fvMatrix< scalar >::solveSegregated(), noiseModel::SPL(), noiseModel::SPL(), LBFGS::SR1HessianDiag(), LBFGS::SR1HessianVectorProduct(), Foam::stabilise(), Foam::stabilise(), Foam::stabilise(), regionFunctionObject::store(), regionFunctionObject::storeInDb(), Foam::fvc::surfaceIntegrate(), surfaceNormalFixedValueFvPatchVectorField::surfaceNormalFixedValueFvPatchVectorField(), surfaceNormalFixedValueFvPatchVectorField::surfaceNormalFixedValueFvPatchVectorField(), Foam::fvc::surfaceSum(), multiphaseInterSystem::surfaceTensionForce(), boundaryAdjointContributionIncompressible::tangentVelocitySource(), Foam::transform(), Foam::transformPoints(), function1::Tsat(), polynomial::Tsat(), phaseSystem::U(), inverseDistance::update(), designVariablesUpdate::update(), objectiveForce::update_dxdbMultiplier(), objectiveMoment::update_dxdbMultiplier(), adjointFarFieldPressureFvPatchScalarField::updateCoeffs(), adjointFarFieldVelocityFvPatchVectorField::updateCoeffs(), adjointOutletPressureFvPatchScalarField::updateCoeffs(), adjointWallVelocityLowReFvPatchVectorField::updateCoeffs(), turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::updateCoeffs(), electrostaticDepositionFvPatchScalarField::updateCoeffs(), enthalpySorptionFvPatchScalarField::updateCoeffs(), lumpedMassWallTemperatureFvPatchScalarField::updateCoeffs(), surfaceNormalFixedValueFvPatchVectorField::updateCoeffs(), timeVaryingMassSorptionFvPatchScalarField::updateCoeffs(), uniformNormalFixedValueFvPatchVectorField::updateCoeffs(), designVariablesUpdate::updateGradientsAndValues(), boundaryAdjointContributionIncompressible::velocitySource(), MassTransferPhaseSystem< BasePhaseSystem >::volTransfer(), adjointkOmegaSST::waEqnSourceFromCDkOmega(), extendedCellToFaceStencil::weightedSum(), extendedFaceToCellStencil::weightedSum(), extendedUpwindCellToFaceStencil::weightedSum(), clippedLinear< Type >::weights(), faNVDscheme< Type, NVDweight >::weights(), limitedSurfaceInterpolationScheme< Type >::weights(), outletStabilised< Type >::weights(), triSurfaceTools::writeCurvature(), Foam::edgeMeshTools::writeFeatureProximity(), nutUWallFunctionFvPatchScalarField::yPlus(), MRFZoneList::zeroFilter(), and wallLubricationModel::zeroGradWalls().

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.
References cref(), and Foam::T().
Referenced by LESfilter::correctBoundaryConditions(), kaqRWallFunctionFvPatchScalarField::manipulateMatrix(), waveAlphaFvPatchScalarField::updateCoeffs(), and waveVelocityFvPatchVectorField::updateCoeffs().


Return managed pointer for reuse, or clone() the object reference.
Definition at line 256 of file tmpI.H.
References Foam::T().
Referenced by polyPatch::areaFraction(), BrownianMotionForce< CloudType >::cacheFields(), DispersionRASModel< CloudType >::cacheFields(), refPtr< Field< Type > >::emplace(), fusedGaussLaplacianScheme< Type, GType >::fvmLaplacian(), gaussLaplacianScheme< Type, GType >::fvmLaplacian(), PtrDynList< T, SizeMin >::push_back(), PtrList< T >::push_back(), HashPtrTable< T, Key, Hash >::set(), PtrDynList< T, SizeMin >::set(), PtrList< T >::set(), PtrListDictionary< phaseModel >::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.
References Foam::noexcept.
Referenced by MRFZoneList::absolute(), incompressibleAdjointSolver::accumulateGradDxDbMultiplier(), boundBox::add(), adjointkOmegaSST::adjointMeanFlowSource(), lduMatrix::Amul(), LamBremhorstKE::correct(), LienLeschziner::correct(), kOmegaSSTBase< BasicEddyViscosityModel >::correct(), dynamicKEqn< BasicTurbulenceModel >::correct(), kEqn< BasicTurbulenceModel >::correct(), EBRSM< BasicTurbulenceModel >::correct(), kEpsilon< BasicTurbulenceModel >::correct(), kEpsilonLopesdaCosta< BasicTurbulenceModel >::correct(), kEpsilonPhitF< BasicTurbulenceModel >::correct(), kL< BasicTurbulenceModel >::correct(), kOmega< BasicTurbulenceModel >::correct(), LaunderSharmaKE< BasicTurbulenceModel >::correct(), mixtureKEpsilon< BasicTurbulenceModel >::correct(), RNGkEpsilon< BasicTurbulenceModel >::correct(), SpalartAllmarasBase< BasicEddyViscosityModel >::correct(), kOmegaSSTLM< BasicTurbulenceModel >::correctReThetatGammaInt(), triSurfaceTools::curvatures(), Foam::fvc::DDt(), Foam::fac::div(), Foam::fac::div(), Foam::fac::div(), Foam::fac::div(), Foam::fam::div(), Foam::fam::div(), Foam::fvc::div(), Foam::fvc::div(), Foam::fvc::div(), Foam::fvc::div(), Foam::fvm::div(), Foam::fvm::div(), adjointkOmegaSST::divUMeanFlowSource(), surfaceInterpolationScheme< scalar >::dotInterpolate(), edgeInterpolationScheme< Type >::euclidianInterpolate(), FilterField::evaluate(), adjointSpalartAllmaras::FISensitivityTerm(), Foam::fvc::flux(), Foam::fvc::flux(), Foam::fvc::flux(), Foam::fvc::flux(), Foam::fvc::flux(), fft::forwardTransform(), fft::forwardTransform(), updateMethod::globalSum(), edgeInterpolationScheme< Type >::interpolate(), fvMeshSubsetProxy::interpolate(), leastSquaresEdgeInterpolation< Type >::interpolate(), Foam::inv(), Foam::inv(), Foam::fac::laplacian(), Foam::fac::laplacian(), Foam::fam::laplacian(), Foam::fam::laplacian(), adjointSimple::mainIter(), Foam::makeZeroGradientField(), Foam::makeZeroGradientField(), meshedSurfRef::movePoints(), Foam::fac::ndiv(), Foam::fac::ndiv(), Foam::fac::ndiv(), Foam::fac::ndiv(), Foam::fam::ndiv(), Foam::fam::ndiv(), adjointkOmegaSST::nutMeanFlowSource(), anisotropicFilter::operator()(), anisotropicFilter::operator()(), noiseFFT::Pf(), realizableKE< BasicTurbulenceModel >::rCmu(), fft::realTransform1D(), Foam::fvc::reconstructMag(), MRFZoneList::relative(), fft::reverseTransform(), fft::reverseTransform(), snGradScheme< Type >::snGrad(), Foam::stabilise(), lduMatrix::Tmul(), PatchFunction1< Type >::transform(), Foam::transform(), Foam::transformPoints(), objectiveForce::update_dxdbMultiplier(), objectiveMoment::update_dxdbMultiplier(), Foam::fvc::volumeIntegrate(), Foam::fvc::volumeIntegrate(), Foam::writeAreaFields(), Foam::writeDimFields(), Foam::writeDimFields(), Foam::writePointField(), Foam::writeVolFields(), 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.
References clear(), and tmp().
Referenced by coordSetWriter::adjustFieldTemplate(), surfaceWriter::adjustFieldTemplate(), Foam::constrainHbyA(), FilterField::evaluate(), fvExprDriver::getOrReadFieldImpl(), operator=(), reset(), reset(), sampledCuttingPlane::sampleOnIsoSurfacePoints(), sampledDistanceSurface::sampleOnIsoSurfacePoints(), sampledIsoSurface::sampleOnIsoSurfacePoints(), and regionSizeDistribution::write().


Reset with emplace construction. Return reference to the new content.
Definition at line 357 of file tmpI.H.
References args, clear(), Foam::T(), and T.
Referenced by Probes< patchFieldProbe >::getOrLoadField(), sampledSets::getOrLoadField(), and reset().


Avoid inadvertent casting (to object).
References cref(), Foam::noexcept, p, ref(), and Foam::T().

Avoid inadvertent casting (to object).
References Foam::noexcept, ref(), swap(), Foam::T(), and tmp().

Swaps the managed object with other.
Definition at line 418 of file tmpI.H.
References tmp().
Referenced by FilterField::evaluate(), and ref().


Dereferences (const) pointer to the managed object.
Fatal for a null managed pointer.
Definition at line 435 of file tmpI.H.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, Foam::GlobalIOList< Tuple2< scalar, vector > >::typeName, is_pointer(), and Foam::T().

Dereferences (non-const) pointer to the managed object.
Fatal for a null managed pointer or if the object is const.
Definition at line 449 of file tmpI.H.
References FatalErrorInFunction, Foam::GlobalIOList< Tuple2< scalar, vector > >::typeName, is_const(), and Foam::T().

|
inlineexplicitnoexcept |
True if pointer/reference is non-null. Same as good().
Definition at line 441 of file tmp.H.
References Foam::noexcept.
Transfer ownership of the managed pointer.
Fatal for a null managed pointer or if the object is const.
Definition at line 470 of file tmpI.H.
References Foam::abort(), clear(), Foam::FatalError, FatalErrorInFunction, Foam::GlobalIOList< Tuple2< scalar, vector > >::typeName, is_pointer(), name, Foam::T(), and tmp().

Take ownership of the pointer.
Fatal for a null pointer, or when the pointer is non-unique.
Definition at line 525 of file tmpI.H.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, Foam::GlobalIOList< Tuple2< scalar, vector > >::typeName, p, reset(), and Foam::T().

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

|
inlinenoexcept |
Identical to is_pointer(). Prefer is_pointer() or movable().
Definition at line 489 of file tmp.H.
References is_pointer(), and Foam::noexcept.

|
inlinenoexcept |
Deprecated(2020-07) True if a null managed pointer.
Definition at line 498 of file tmp.H.
References empty(), and Foam::noexcept.
Referenced by empty().


|
inline |