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 | 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... | |
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() More... | |
bool | empty () const noexcept |
Deprecated(2020-07) True if a null managed pointer. 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.
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 203 of file tmp.H.
Referenced by solidAbsorption::a(), scene::addColourToMesh(), viscousDissipation::addSup(), interRegionHeatTransferModel::addSup(), adjointLaminar::adjointMeanFlowSource(), adjointSimple::adjointSimple(), boundaryAdjointContribution::adjointTMVariable1Source(), boundaryAdjointContribution::adjointTMVariable2Source(), acousticWaveTransmissiveFvPatchField< Type >::advectionSpeed(), GAMGInterface::agglomerateCoeffs(), sensitivityVolBSplinesFI::assembleSensitivities(), variablesSet::autoCreateMeshMovementField(), 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(), MassTransferPhaseSystem< BasePhaseSystem >::calculateL(), nutUTabulatedWallFunctionFvPatchScalarField::calcUPlus(), nutkFilmWallFunctionFvPatchScalarField::calcUTau(), nutUBlendedWallFunctionFvPatchScalarField::calcUTau(), nutUSpaldingWallFunctionFvPatchScalarField::calcUTau(), nutUWallFunctionFvPatchScalarField::calcYPlus(), deltaBoundary::cellCenters_d(), treeDataPoint::centres(), treeDataCell::centres(), treeDataFace::centres(), treeDataEdge::centres(), kOmegaSST::computeG(), incompressibleAdjointSolver::computeGradDxDbMultiplier(), adjointEikonalSolver::computeYPhi(), searchablePlane::coordinates(), searchableBox::coordinates(), searchableDisk::coordinates(), searchablePlate::coordinates(), searchableCylinder::coordinates(), searchableSurfaceCollection::coordinates(), searchableCone::coordinates(), triSurfaceMesh::coordinates(), searchableSphere::coordinates(), NURBS3DVolume::coordinates(), contactAngleForce::correct(), twoPhaseMixtureEThermo::Cp(), ReynoldsAnalogy::Cp(), twoPhaseMixtureThermo::Cp(), multiphaseMixtureThermo::Cp(), multiphaseInterSystem::Cp(), cellCellStencil::createField(), displacementMeshMoverMotionSolver::curPoints(), solidBodyMotionSolver::curPoints(), multiSolidBodyMotionSolver::curPoints(), triSurfaceTools::curvatures(), filmTurbulenceModel::Cw(), MRFZoneList::DDt(), cyclicFaPatch::delta(), cyclicACMIFvPatch::delta(), cyclicAMIFvPatch::delta(), basicFvGeometryScheme::deltaCoeffs(), DESModelRegions::DESModelRegions(), RASModelVariables::devReff(), adjointSpalartAllmaras::devReff(), adjointkOmegaSST::devReff(), InterfaceCompositionModel< Thermo, OtherThermo >::Dfrom(), solarCalculator::diffuseSolarRad(), adjointRASModel::diffusionCoeffVar1(), adjointRASModel::diffusionCoeffVar2(), adjointLaminar::distanceSensitivities(), adjointSpalartAllmaras::distanceSensitivities(), adjointkOmegaSST::distanceSensitivities(), momentumError::divDevRhoReff(), boundaryAdjointContribution::dJdGradU(), boundaryAdjointContribution::dJdnut(), kOmegaSSTBase< eddyViscosity< RASModel< BasicTurbulenceModel > > >::DkEff(), kL< BasicTurbulenceModel >::DkEff(), MassTransferPhaseSystem< BasePhaseSystem >::dmdt(), Bezier::dndbBasedSensitivities(), adjointSpalartAllmaras::DnuTildaEff(), SpalartAllmarasBase< eddyViscosity< RASModel< BasicTurbulenceModel > > >::DnuTildaEff(), kOmegaSSTBase< eddyViscosity< RASModel< BasicTurbulenceModel > > >::DomegaEff(), kEpsilonPhitF< BasicTurbulenceModel >::DphitEff(), multiphaseMangrovesSource::dragCoeff(), surfactantProperties::dSigma(), InterfaceCompositionModel< Thermo, OtherThermo >::Dto(), Bezier::dxdbFace(), adjointRotatingWallVelocityFvPatchVectorField::dxdbMult(), solidAbsorption::e(), faMesh::edgeLengthCorrection(), faPatch::edgeNormals(), cloudAbsorptionEmission::eDisp(), sigma< BasicTurbulenceModel >::epsilon(), SpalartAllmarasBase< eddyViscosity< RASModel< BasicTurbulenceModel > > >::epsilon(), age::execute(), energyTransport::execute(), boundedBackwardFaDdtScheme::facDdt(), boundBox::faceCentres(), mappedPatchBase::facePoints(), DESModel< BasicTurbulenceModel >::fd(), parseDriver::field_cellCentre(), parseDriver::field_rand(), NURBS3DSurface::findClosestSurfacePoint(), adjointLaminar::FISensitivityTerm(), adjointSpalartAllmaras::FISensitivityTerm(), fft::forwardTransform(), interfaceTrackingFvMesh::freeSurfacePressureJump(), interfaceTrackingFvMesh::freeSurfaceSnGradU(), interfaceTrackingFvMesh::freeSurfaceSnGradUn(), noiseFFT::frequencies(), SpalartAllmarasBase< eddyViscosity< RASModel< BasicTurbulenceModel > > >::ft2(), kOmegaSSTBase< eddyViscosity< RASModel< BasicTurbulenceModel > > >::gamma(), adjointkOmegaSST::gamma(), kOmegaSSTBase< eddyViscosity< RASModel< BasicTurbulenceModel > > >::GbyNu0(), multiphaseInterSystem::generatePhi(), Foam::getBoundedColours(), Foam::getField(), cancelATC::getFISensitivityTerm(), ATCstandard::getFISensitivityTerm(), InterfaceCompositionModel< Thermo, OtherThermo >::getSpecieMassFraction(), blockMesh::globalPosition(), adjointEikonalSolver::gradEikonal(), lduMatrix::H1(), faMesh::haloFaceCentres(), faMesh::haloFaceNormals(), MassTransferPhaseSystem< BasePhaseSystem >::heatTransfer(), boundBox::hexCorners(), multiphaseMangrovesSource::inertiaCoeff(), rotorDiskSource::inflowVelocity(), oversetGAMGInterface::internalFieldTransfer(), cyclicACMIGAMGInterface::internalFieldTransfer(), 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(), kOmegaSSTBase< eddyViscosity< RASModel< BasicTurbulenceModel > > >::kSource(), kL< BasicTurbulenceModel >::kSource(), interfaceHeatResistance< Thermo, OtherThermo >::KSu(), InterfaceCompositionModel< Thermo, OtherThermo >::L(), SpalartAllmarasDES< BasicTurbulenceModel >::LESRegion(), kOmegaSSTDES< BasicTurbulenceModel >::LESRegion(), upwind< Type >::limiter(), cylindrical::localToGlobal(), meshRefinement::makeDisplacementField(), speciesSorptionFvPatchScalarField::mass(), noiseModel::meanPf(), steadyStateDdtScheme< Type >::meshPhi(), incompressibleTwoPhaseMixture::mu(), incompressibleTwoPhaseMixture::muf(), laminar::mut(), InterfaceCompositionModel< Thermo, OtherThermo >::MwMixture(), multiphaseInterSystem::nearInterface(), faPatch::ngbPolyPatchFaceNormals(), faPatch::ngbPolyPatchPointNormals(), basicFvGeometryScheme::nonOrthCorrectionVectors(), basicFvGeometryScheme::nonOrthDeltaCoeffs(), adjointTurbulenceModel::nuEff(), incompressibleTwoPhaseMixture::nuf(), Stokes< BasicTurbulenceModel >::nut(), generalizedNewtonian< BasicMomentumTransportModel >::nut(), adjointRASModel::nutJacobianTMVar1(), adjointRASModel::nutJacobianTMVar2(), SpalartAllmaras::nutJacobianVar1(), RASModelVariables::nutJacobianVar1(), RASModelVariables::nutJacobianVar2(), 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(), treeBoundBox::points(), searchableCone::points(), lumpedPointMovement::pointsDisplacement(), lumpedPointMovement::pointsPosition(), projectCurveEdge::position(), projectEdge::position(), blockEdge::position(), filmTurbulenceModel::primaryRegionFriction(), noiseModel::PSDf(), SpalartAllmarasDES< BasicTurbulenceModel >::psi(), kOmegaSSTBase< eddyViscosity< RASModel< BasicTurbulenceModel > > >::Qsas(), dummy::R(), adjointSpalartAllmaras::r(), lumpedPointMovement::readDict(), reader::readField(), fft::realTransform1D(), fft::reverseTransform(), filmTurbulenceModel::rho(), ReynoldsAnalogy::rho(), forces::rho(), twoPhaseMixtureEThermo::rhoEoS(), twoPhaseMixtureThermo::rhoEoS(), multiphaseMixtureThermo::rhoEoS(), coordinateSystem::rotationsImpl(), noRadiation::Rp(), opaqueSolid::Rp(), viewFactor::Rp(), solarLoad::Rp(), noRadiation::Ru(), opaqueSolid::Ru(), Foam::safeLog10(), mappedPatchBase::samplePoints(), noFilm::Sh(), ThermoCloud< Foam::DSMCCloud >::Sh(), kinematicSingleLayer::Sh(), noRadiation::Shs(), constantSurfaceTensionCoefficient::sigma(), constant::sigma(), temperatureDependent::sigma(), electrostaticDepositionFvPatchScalarField::sigma(), wedgeFvPatchField< Type >::snGrad(), timeVaryingMassSorptionFvPatchScalarField::source(), noFilm::Srho(), kinematicSingleLayer::Srho(), stabilityBlendingFactor::stabilityBlendingFactor(), Foam::sumNeighbours(), multiphaseInterSystem::surfaceTensionForce(), interfaceTrackingFvMesh::surfaceTensionGrad(), dynamicContactAngleForce::theta(), targetCoeffTrim::thetag(), boundaryAdjointContribution::TMVariable1(), boundaryAdjointContribution::TMVariable1Diffusion(), boundaryAdjointContribution::TMVariable2(), boundaryAdjointContribution::TMVariable2Diffusion(), adjointkOmegaSST::topologySensitivities(), cyclicFaPatch::transfer(), Foam::transformFieldMask< tensor >(), coordinateSystem::transformPointImpl(), multiphaseInterSystem::U(), noiseModel::uniformFrequencies(), resolutionIndexModel::V(), triSurfaceTools::vertexNormals(), triSurfaceTools::vertexTriads(), blockMesh::vertices(), MassTransferPhaseSystem< BasePhaseSystem >::volTransfer(), waveModel::waterLevel(), surfaceFieldValue::weightingFactor(), basicFvGeometryScheme::weights(), electricPotential::write(), rotorDiskSource::writeField(), TableBase< Type >::x(), general::x(), general::y(), nutkWallFunctionFvPatchScalarField::yPlus(), alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField::yPlusTherm(), and adjointkOmegaSST::zeroFirstCell().
|
inlinestatic |
|
inlinenoexcept |
True if pointer/reference is non-null.
Definition at line 237 of file tmp.H.
Referenced by multiphaseSystem::dragCoeff().
|
inlinenoexcept |
If the stored/referenced content is const.
Definition at line 242 of file tmp.H.
Referenced by refPtr< Foam::mapDistributePolyMesh >::reset().
|
inlinenoexcept |
True if this is a managed pointer (not a reference)
Definition at line 247 of file tmp.H.
Referenced by tmp< Foam::surfaceInterpolationScheme< GType > >::operator=(), refPtr< Foam::mapDistributePolyMesh >::reset(), and regIOobject::store().
|
inlinenoexcept |
True if this is a reference (not a pointer)
Definition at line 252 of file tmp.H.
Referenced by atmAmbientTurbSource::atmAmbientTurbSource(), atmBuoyancyTurbSource::atmBuoyancyTurbSource(), atmLengthScaleTurbSource::atmLengthScaleTurbSource(), atmNutSource::atmNutSource(), and buoyancyTurbSource::buoyancyTurbSource().
|
inlinenoexcept |
|
inlinenoexcept |
Return pointer without nullptr checking.
Definition at line 265 of file tmp.H.
Referenced by refPtr< Foam::mapDistributePolyMesh >::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 196 of file tmpI.H.
Referenced by sensitivitySurfacePoints::accumulateIntegrand(), sensitivitySurface::accumulateIntegrand(), patchCellsSource::addSup(), alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField::calcAlphat(), tmp< Foam::surfaceInterpolationScheme< GType > >::constCast(), EBRSM< BasicTurbulenceModel >::correct(), kL< BasicTurbulenceModel >::correct(), FilterField::evaluate(), adjointSpalartAllmaras::FISensitivityTerm(), parseDriver::getField(), sampledSets::getOrLoadField(), probes::getOrLoadField(), leastSquaresEdgeInterpolation< Type >::interpolate(), tmp< T >::operator const T &(), tmp< Foam::surfaceInterpolationScheme< GType > >::operator()(), parseDriver::patchInternalField(), parseDriver::patchNeighbourField(), parseDriver::patchNormalField(), 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 210 of file tmpI.H.
Referenced by faMatrix< Type >::A(), fvMatrix< Type >::A(), MRFZoneList::absolute(), sensitivitySurfacePoints::accumulateIntegrand(), sensitivitySurface::accumulateIntegrand(), multiBandZoneAbsorptionEmission::aCont(), greyMeanAbsorptionEmission::aCont(), wideBandAbsorptionEmission::aCont(), jouleHeatingSource::addSup(), SemiImplicitSource< Type >::addSup(), phaseChange::addToDriftRate(), cloudAbsorptionEmission::aDisp(), adjointkOmegaSST::adjointMeanFlowSource(), adjointSensitivity::adjointMeshMovementSource(), surfaceWriter::adjustFieldTemplate(), surfaceWriter::adjustSurface(), pairGAMGAgglomeration::agglomerate(), adjointSolverManager::aggregateSensitivities(), liquidFilmBase::alpha(), KinematicCloud< Cloud< basicKinematicCollidingParcel > >::alpha(), multiphaseInterSystem::alphaEff(), multiphaseInterSystem::alphahe(), MassTransferPhaseSystem< BasePhaseSystem >::alphaTransfer(), ThermoCloud< Foam::DSMCCloud >::ap(), polyPatch::areaFraction(), Foam::atan2(), Foam::fac::average(), Foam::fvc::average(), averageNeighbourFvGeometryScheme::averageCentres(), averageNeighbourFvGeometryScheme::averageNeighbourCentres(), subtract::calcFieldType(), add::calcFieldType(), faceLimitedGrad< Type >::calcGrad(), faceMDLimitedGrad< Type >::calcGrad(), cellMDLimitedGrad< Type >::calcGrad(), curvatureSeparation::calcInvR1(), nutUSpaldingWallFunctionFvPatchScalarField::calcNut(), phaseSystem::calcPhi(), StandardChemistryModel< CompType, ThermoType >::calculateRR(), treeDataEdge::centres(), Zuber::CHF(), Tatsumoto::CHFSubCool(), HuaXu::CHFSubCool(), Foam::cmptMag(), optimisationType::computeDirection(), incompressibleAdjointSolver::computeGradDxDbMultiplier(), NURBS3DVolume::computeNewBoundaryPoints(), NURBS3DVolume::computeNewPoints(), NURBS3DVolume::computeParametricCoordinates(), Foam::constrainHbyA(), adjointSolverManager::constraintValues(), forceList::correct(), thermocapillaryForce::correct(), contactAngleForce::correct(), DeardorffDiffStress< BasicTurbulenceModel >::correct(), Maxwell< BasicTurbulenceModel >::correct(), ShihQuadraticKE::correct(), LamBremhorstKE::correct(), kOmega< BasicTurbulenceModel >::correct(), LienLeschziner::correct(), LienCubicKE::correct(), realizableKE< BasicTurbulenceModel >::correct(), SSG< BasicTurbulenceModel >::correct(), kEpsilon< EddyDiffusivity< compressible::turbulenceModel > >::correct(), RNGkEpsilon< BasicTurbulenceModel >::correct(), LaunderSharmaKE< BasicTurbulenceModel >::correct(), LRR< BasicTurbulenceModel >::correct(), qZeta::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(), correctedLnGrad< Type >::correction(), fourthLnGrad< Type >::correction(), cubic< Type >::correction(), pointLinear< Type >::correction(), CentredFitSnGradScheme< Type, Polynomial, Stencil >::correction(), correctedSnGrad< Type >::correction(), faceCorrectedSnGrad< Type >::correction(), deferredCorrection< Type >::correction(), relaxedSnGrad< Type >::correction(), outletStabilised< Type >::correction(), MassTransferPhaseSystem< BasePhaseSystem >::correctMassSources(), kOmegaSSTLM< BasicTurbulenceModel >::correctReThetatGammaInt(), constantFilmThermo::Cp(), multiphaseInterSystem::Cp(), heThermo< BasicSolidThermo, MixtureType >::CpByCpv(), multiphaseInterSystem::CpByCpv(), heThermo< BasicSolidThermo, MixtureType >::Cpv(), multiphaseInterSystem::Cpv(), Foam::fvc::curl(), volumetricBSplinesMotionSolver::curPoints(), velocityComponentLaplacianFvMotionSolver::curPoints(), displacementComponentLaplacianFvMotionSolver::curPoints(), displacementSBRStressFvMotionSolver::curPoints(), displacementInterpolationMotionSolver::curPoints(), sixDoFRigidBodyMotionSolver::curPoints(), rigidBodyMeshMotion::curPoints(), multiphaseInterSystem::Cv(), multiphaseSystem::Cvm(), faMatrix< Type >::D(), fvMatrix< Type >::D(), fvMatrix< Type >::DD(), MomentumTransferPhaseSystem< BasePhaseSystem >::ddtCorrByAs(), fvFieldDecomposer::decomposeField(), cyclicFvPatch::delta(), fvMesh::delta(), blackBodyEmission::deltaLambdaT(), nonlinearEddyViscosity< incompressible::RASModel >::devRhoReff(), adjointSpalartAllmaras::diffusionCoeffVar1(), adjointSpalartAllmaras::distanceSensitivities(), Foam::fac::div(), NURBS3DVolume::dndbBasedSensitivities(), adjointSpalartAllmaras::dr_dDelta(), adjointkOmegaSST::dR_dF1(), adjointkOmegaSST::dR_dnut(), adjointSpalartAllmaras::dr_dNuTilda(), adjointSpalartAllmaras::dr_dStilda(), SpalartAllmarasDES< BasicTurbulenceModel >::dTilda(), shapeSensitivities::dvdbMult(), blackBodyEmission::EbDeltaLambdaT(), multiBandZoneAbsorptionEmission::eCont(), greyMeanAbsorptionEmission::ECont(), wideBandAbsorptionEmission::ECont(), ThermoCloud< Foam::DSMCCloud >::Ep(), edgeInterpolationScheme< scalar >::euclidianInterpolate(), 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(), polyPatch::faceCellCentres(), lduMatrix::faceH(), cellQuality::faceNonOrthogonality(), cellQuality::faceSkewness(), PrimitivePatchInterpolation< Foam::PrimitivePatch >::faceToPointInterpolate(), gaussLaplacianScheme< Type >::facLaplacian(), EulerFaD2dt2Scheme< Type >::famD2dt2(), EulerFaDdtScheme< Type >::famDdt(), backwardFaDdtScheme< Type >::famDdt(), boundedBackwardFaDdtScheme::famDdt(), gaussConvectionScheme< Type >::famDiv(), gaussLaplacianScheme< Type >::famLaplacian(), Foam::edgeMeshTools::featureProximity(), adjointSpalartAllmaras::FISensitivityTerm(), volPointInterpolation::flatBoundaryField(), faMatrix< Type >::flux(), fvMatrix< Type >::flux(), correctedSnGrad< Type >::fullGradCorrection(), faceCorrectedSnGrad< Type >::fullGradCorrection(), EulerDdtScheme< Type >::fvcDdt(), backwardDdtScheme< Type >::fvcDdt(), CoEulerDdtScheme< Type >::fvcDdt(), SLTSDdtScheme< Type >::fvcDdt(), ddtScheme< Type >::fvcDdtPhiCoeff(), ddtScheme< Type >::fvcDdtPhiCoeffExperimental(), steadyStateDdtScheme< Type >::fvcDdtPhiCorr(), steadyStateDdtScheme< Type >::fvcDdtUfCorr(), gaussConvectionScheme< Type >::fvcDiv(), gaussLaplacianScheme< Type, GType >::fvcLaplacian(), relaxedNonOrthoGaussLaplacianScheme< Type, GType >::fvcLaplacian(), EulerD2dt2Scheme< Type >::fvmD2dt2(), EulerDdtScheme< Type >::fvmDdt(), backwardDdtScheme< Type >::fvmDdt(), CoEulerDdtScheme< Type >::fvmDdt(), SLTSDdtScheme< Type >::fvmDdt(), localEulerDdtScheme< Type >::fvmDdt(), gaussConvectionScheme< Type >::fvmDiv(), gaussLaplacianScheme< Type, GType >::fvmLaplacian(), relaxedNonOrthoGaussLaplacianScheme< Type, GType >::fvmLaplacian(), gaussLaplacianScheme< Type, GType >::fvmLaplacianUncorrected(), relaxedNonOrthoGaussLaplacianScheme< Type, GType >::fvmLaplacianUncorrected(), heThermo< BasicSolidThermo, MixtureType >::gamma(), multiphaseInterSystem::gamma(), pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >::gasHs(), fvMeshDistribute::generateTestField(), NURBS3DVolume::getDxCellsDb(), NURBS3DVolume::getDxDb(), ATCstandard::getFISensitivityTerm(), cylindrical::globalToLocal(), kinematicSingleLayer::gNormClipped(), Foam::fac::grad(), lduMatrix::H(), faMatrix< Type >::H(), fvMatrix< Type >::H(), heThermo< BasicSolidThermo, MixtureType >::hc(), multiphaseInterSystem::hc(), heThermo< BasicSolidThermo, MixtureType >::he(), MassTransferPhaseSystem< BasePhaseSystem >::heatTransfer(), AnisothermalPhaseModel< BasePhaseModel >::heEqn(), heheuPsiThermo< BasicPsiThermo, MixtureType >::heu(), coalCloudList::hsTrans(), BreenWestwater::htcFilmBoil(), Bromley::htcFilmBoil(), InterfaceCompositionPhaseChangePhaseSystem< BasePhaseSystem >::iDmdt(), cyclicAMIGAMGInterface::internalFieldTransfer(), cyclicGAMGInterface::internalFieldTransfer(), pointVolInterpolation::interpolate(), localMax< Type >::interpolate(), localMin< Type >::interpolate(), edgeInterpolationScheme< scalar >::interpolate(), surfaceInterpolationScheme< GType >::interpolate(), Foam::inv(), ReynoldsStress< RASModel< BasicTurbulenceModel > >::k(), multiphaseInterSystem::K(), adjointkOmegaSST::kaEqnSourceFromCDkOmega(), heSolidThermo< BasicSolidThermo, MixtureType >::Kappa(), liquidFilmThermo::kappa(), constantFilmThermo::kappa(), multiphaseInterSystem::kappa(), kineticGasEvaporation< Thermo, OtherThermo >::Kexp(), interfaceOxideRate< Thermo, OtherThermo >::Kexp(), boundaryAdjointContributionIncompressible::laminarDiffusivity(), Foam::levelSetFraction(), steadyOptimisation::lineSearchUpdate(), lnGradScheme< Type >::lnGrad(), Foam::fvc::magSqrGradGrad(), cyclicAMIFvPatchField< Type >::manipulateMatrix(), cyclicACMIFvPatchField< Type >::manipulateMatrix(), mappedPatchFieldBase< scalar >::mappedInternalField(), mappedPatchFieldBase< scalar >::mappedWeightField(), meshToMesh::mapSrcToTgt(), meshToMesh::mapTgtToSrc(), momentOfInertia::meshInertia(), CoEulerDdtScheme< Type >::meshPhi(), SLTSDdtScheme< Type >::meshPhi(), localEulerDdtScheme< Type >::meshPhi(), Jeschar::MHF(), regionModel1D::moveMesh(), liquidFilmThermo::mu(), constantFilmThermo::mu(), multiphaseInterSystem::mu(), heheuPsiThermo< BasicPsiThermo, MixtureType >::mub(), heheuPsiThermo< BasicPsiThermo, MixtureType >::muu(), Foam::fac::ndiv(), multiphaseSystem::nearInterface(), faPatchField< Type >::New(), fvPatchField< scalar >::New(), Foam::fac::ngrad(), cellQuality::nonOrthogonality(), oversetFvMeshBase::normalisation(), Schaeffer::nu(), JohnsonJacksonSchaeffer::nu(), multiphaseSystem::nu(), multiphaseInterSystem::nu(), consumptionSpeed::omega0Sigma(), anisotropicFilter::operator()(), optionList::operator()(), RaviPetersen::operator()(), cyclicFaPatchField< Type >::patchNeighbourField(), cyclicFvPatchField< Type >::patchNeighbourField(), cyclicAMIFvPatchField< Type >::patchNeighbourField(), cyclicACMIFvPatchField< Type >::patchNeighbourField(), liquidFilmBase::pg(), PrimitivePatchInterpolation< Foam::PrimitivePatch >::pointToFaceInterpolate(), Foam::pow(), phasePressureModel::pPrime(), phasePressureModel::pPrimef(), boundaryAdjointContributionIncompressible::pressureSource(), filmTurbulenceModel::primaryRegionFriction(), heheuPsiThermo< BasicPsiThermo, MixtureType >::psib(), heheuPsiThermo< BasicPsiThermo, MixtureType >::psiu(), laminar< ReactionThermo >::Qdot(), EDC< ReactionThermo >::Qdot(), diffusionMulticomponent< ReactionThermo, ThermoType >::Qdot(), solidChemistryModel< CompType, SolidThermo >::Qdot(), StandardChemistryModel< CompType, ThermoType >::Qdot(), Kutadeladze::qNucleate(), greyDiffusiveViewFactorFixedValueFvPatchScalarField::qro(), nonlinearEddyViscosity< incompressible::RASModel >::R(), laminar< ReactionThermo >::R(), diffusionMulticomponent< ReactionThermo, ThermoType >::R(), reader::readField(), MRFZoneList::relative(), faMatrix< Type >::residual(), LduMatrix< Type, DType, LUType >::residual(), fvMatrix< Type >::residual(), lduMatrix::residual(), constantFilmThermo::rho(), multiphaseInterSystem::rho(), KinematicCloud< Cloud< basicKinematicCollidingParcel > >::rhoEff(), coalCloudList::rhoTrans(), fvDOM::Rp(), pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >::RRg(), solidChemistryModel< CompType, SolidThermo >::RRs(), solidChemistryModel< CompType, SolidThermo >::RRsHs(), eddyDissipationDiffusionModel< ReactionThermo, ThermoType >::rtDiff(), fvDOM::Ru(), kOmegaSSTDDES< BasicTurbulenceModel >::S2(), kOmegaSSTDES< BasicTurbulenceModel >::S2(), coalCloudList::Sh(), ThermoCloud< Foam::DSMCCloud >::Sh(), thermoSingleLayer::Sh(), primaryRadiation::Shs(), standardRadiation::Shs(), constantRadiation::Shs(), liquidFilmThermo::sigma(), constantFilmThermo::sigma(), electrostaticDepositionFvPatchScalarField::sigma(), cloudScatter::sigmaEff(), ThermoCloud< Foam::DSMCCloud >::sigmap(), skewCorrected< Type >::skewCorrection(), cellQuality::skewness(), snGradScheme< Type >::snGrad(), twoPhaseSystem::solve(), surfaceAlignedSBRStressFvMotionSolver::solve(), thermalBaffle::solveEnergy(), sensitivityBezierFI::solveMeshMovementEqn(), fvMatrix< Type >::solveSegregated(), optionList::source(), noiseModel::SPL(), Foam::sqr(), coalCloudList::Srho(), ReactingCloud< Foam::DSMCCloud >::Srho(), thermoSingleLayer::Srho(), Foam::stabilise(), regionFunctionObject::store(), regionFunctionObject::storeInDb(), coalCloudList::SU(), KinematicCloud< Cloud< basicKinematicCollidingParcel > >::SU(), surfaceNormalFixedValueFvPatchVectorField::surfaceNormalFixedValueFvPatchVectorField(), multiphaseSystem::surfaceTension(), multiphaseSystem::Svm(), coalCloudList::SYi(), ReactingCloud< Foam::DSMCCloud >::SYi(), thermoSingleLayer::T(), boundaryAdjointContributionIncompressible::tangentVelocitySource(), StandardChemistryModel< CompType, ThermoType >::tc(), heThermo< BasicSolidThermo, MixtureType >::THE(), temperatureDependentContactAngleForce::theta(), distributionContactAngleForce::theta(), perturbedTemperatureDependentContactAngleForce::theta(), KinematicCloud< Cloud< basicKinematicCollidingParcel > >::theta(), Foam::transform(), sixDoFRigidBodyMotion::transform(), Foam::transformPoints(), rigidBodyMotion::transformPoints(), polynomial::Tsat(), function1::Tsat(), phaseSystem::U(), optimisationType::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(), laminar::Us(), liquidFilmBase::Us(), coalCloudList::UTrans(), liquidFilmBase::Uw(), KinematicCloud< Cloud< basicKinematicCollidingParcel > >::vDotSweep(), boundaryAdjointContributionIncompressible::velocitySource(), MassTransferPhaseSystem< BasePhaseSystem >::volTransfer(), adjointkOmegaSST::waEqnSourceFromCDkOmega(), midPoint< Type >::weights(), outletStabilised< Type >::weights(), faNVDscheme< Type, NVDweight >::weights(), limitedSurfaceInterpolationScheme< Type >::weights(), triSurfaceTools::writeCurvature(), Foam::edgeMeshTools::writeFeatureProximity(), Foam::ensightOutput::writeVolField(), 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 294 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 231 of file tmpI.H.
Referenced by DispersionRASModel< CloudType >::cacheFields(), BrownianMotionForce< CloudType >::cacheFields(), gaussLaplacianScheme< Type, GType >::fvmLaplacian(), relaxedNonOrthoGaussLaplacianScheme< Type, GType >::fvmLaplacian(), PtrDynList< Foam::profilingInformation >::push_back(), PtrList< transferModel >::push_back(), refPtr< Foam::mapDistributePolyMesh >::reset(), PtrListDictionary< phaseModel >::set(), 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 263 of file tmpI.H.
Referenced by MRFZoneList::absolute(), sensitivitySurfacePoints::accumulateIntegrand(), sensitivitySurface::accumulateIntegrand(), boundBox::add(), adjointkOmegaSST::adjointMeanFlowSource(), lduMatrix::Amul(), Implicit< CloudType >::cacheFields(), incompressibleAdjointSolver::computeGradDxDbMultiplier(), kEqn< BasicTurbulenceModel >::correct(), LamBremhorstKE::correct(), kOmega< BasicTurbulenceModel >::correct(), LienLeschziner::correct(), dynamicKEqn< BasicTurbulenceModel >::correct(), kEpsilon< EddyDiffusivity< compressible::turbulenceModel > >::correct(), RNGkEpsilon< BasicTurbulenceModel >::correct(), LaunderSharmaKE< BasicTurbulenceModel >::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(), Foam::fvc::volumeIntegrate(), Foam::writeAreaField(), Foam::writeDimField(), Foam::writePointField(), and Foam::writeVolField().
Clear existing and transfer ownership.
Definition at line 290 of file tmpI.H.
Referenced by surfaceWriter::adjustFieldTemplate(), FilterField::evaluate(), sampledSets::getOrLoadField(), probes::getOrLoadField(), tmp< Foam::surfaceInterpolationScheme< GType > >::operator=(), sampledCuttingPlane::sampleOnIsoSurfacePoints(), sampledDistanceSurface::sampleOnIsoSurfacePoints(), sampledIsoSurface::sampleOnIsoSurfacePoints(), and regionSizeDistribution::write().
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Swaps the managed object with other.
Definition at line 359 of file tmpI.H.
Referenced by FilterField::evaluate().
|
inline |
|
inline |
|
inline |
|
inlineexplicitnoexcept |
|
inline |
Cast to underlying data type, using the cref() method.
Definition at line 421 of file tmp.H.
References tmp< T >::cref().
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
Identical to good(), or bool operator.
Definition at line 456 of file tmp.H.
Referenced by SemiImplicitSource< Type >::addSup(), MassTransferPhaseSystem< BasePhaseSystem >::alphaTransfer(), basicMultiComponentMixture::basicMultiComponentMixture(), parseDriver::getField(), MassTransferPhaseSystem< BasePhaseSystem >::heatTransfer(), fvMeshSubsetProxy::interpolate(), parseDriver::patchInternalField(), parseDriver::patchNeighbourField(), parseDriver::patchNormalField(), twoPhaseSystem::solve(), MassTransferPhaseSystem< BasePhaseSystem >::volTransfer(), and subCycleField< GeometricField >::~subCycleField().
|
inlinenoexcept |
Identical to is_pointer()
Definition at line 461 of file tmp.H.
Referenced by atmPlantCanopyTurbSource::atmPlantCanopyTurbSource(), DispersionRASModel< CloudType >::cacheFields(), and BrownianMotionForce< CloudType >::cacheFields().
|
inlinenoexcept |
Deprecated(2020-07) True if a null managed pointer.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.