Pointer management similar to std::unique_ptr, with some additional methods and type checking. More...
Public Types | |
typedef T | element_type |
typedef T * | pointer |
Public Member Functions | |
constexpr | autoPtr () noexcept |
constexpr | autoPtr (std::nullptr_t) noexcept |
autoPtr (T *p) noexcept | |
autoPtr (autoPtr< T > &&ap) noexcept | |
template<class U > | |
autoPtr (autoPtr< U > &&ap) | |
autoPtr (const autoPtr< T > &ap) noexcept | |
~autoPtr () noexcept | |
bool | good () const noexcept |
T * | get () noexcept |
const T * | get () const noexcept |
T & | ref () |
T * | release () noexcept |
T * | ptr () noexcept |
void | clear () noexcept |
void | reset (autoPtr< T > &&other) noexcept |
void | reset (T *p=nullptr) noexcept |
void | swap (autoPtr< T > &other) noexcept |
template<class... Args> | |
autoPtr< T > | clone (Args &&... args) const |
T & | operator* () |
const T & | operator* () const |
T * | operator-> () |
const T * | operator-> () const |
T & | operator() () |
const T & | operator() () const |
operator bool () const noexcept | |
operator const T * () const noexcept | |
operator T* () noexcept | |
operator const T & () const | |
void | operator= (T *p)=delete |
void | operator= (autoPtr< T > &&ap) noexcept |
template<class U > | |
void | operator= (autoPtr< U > &&ap) noexcept |
void | operator= (const autoPtr< T > &ap)=delete |
void | operator= (std::nullptr_t) noexcept |
bool | valid () const noexcept |
bool | empty () const noexcept |
void | set (T *p) noexcept |
template<class... Args> | |
Foam::autoPtr< T > | New (Args &&... args) |
template<class U , class... Args> | |
Foam::autoPtr< T > | NewFrom (Args &&... args) |
template<class T > | |
constexpr | autoPtr () noexcept |
template<class T > | |
constexpr | autoPtr (std::nullptr_t) noexcept |
template<class T > | |
autoPtr (T *p) noexcept | |
template<class T > | |
autoPtr (autoPtr< T > &&ap) noexcept | |
template<class... Args> | |
Foam::autoPtr< T > | clone (Args &&... args) const |
template<class T > | |
void | operator= (autoPtr< T > &&ap) noexcept |
template<class T > | |
void | operator= (std::nullptr_t) noexcept |
Static Public Member Functions | |
template<class... Args> | |
static autoPtr< T > | New (Args &&... args) |
template<class U , class... Args> | |
static autoPtr< T > | NewFrom (Args &&... args) |
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition at line 49 of file HashPtrTable.H.
typedef T element_type |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
Definition at line 75 of file autoPtrI.H.
|
inlinenoexcept |
Definition at line 84 of file autoPtrI.H.
|
inlineconstexprnoexcept |
Definition at line 46 of file autoPtrI.H.
|
inlineconstexprnoexcept |
Definition at line 53 of file autoPtrI.H.
Definition at line 60 of file autoPtrI.H.
Definition at line 67 of file autoPtrI.H.
Referenced by polyMeshAdder::add(), zoneCellStencils::allCoupledFacesPatch(), cellToFaceStencil::allCoupledFacesPatch(), cellToCellStencil::allCoupledFacesPatch(), polyTopoChange::changeMesh(), subBody::clone(), solidMixtureProperties::clone(), liquidMixtureProperties::clone(), boundaryPatch::clone(), regionModelFunctionObject::clone(), rigidBody::clone(), cellShape::clone(), solidProperties::clone(), ignitionSite::clone(), pointToPointPlanarInterpolation::clone(), curve::clone(), RASModelVariables::clone(), surfaceZonesInfo::clone(), cellModel::clone(), cellZone::clone(), pointZone::clone(), faPatch::clone(), bitSet::clone(), faceZone::clone(), polyPatch::clone(), dimensionSet::clone(), AMIInterpolation::clone(), coordinateSystem::clone(), particle< Type >::clone(), exprResult::clone(), mapDistribute::clone(), dictionary::clone(), IOobject::clone(), fvMeshDistribute::distribute(), sampledSet::gather(), PDRblock::innerMesh(), IOobjectList::IOobjectList(), Foam::loadPointField(), polyTopoChange::makeMesh(), voxelMeshSearch::makeMesh(), meshRefinement::makePatch(), FIREMeshReader::mesh(), meshReader::mesh(), reader::mesh(), blockMesh::mesh(), lumpedPointIOMovement::New(), motionInterpolation::New(), procLduInterface::New(), lumpedPointController::New(), solidMixtureProperties::New(), surfZone::New(), rigidBody::New(), cellModel::New(), block::New(), colourTable::New(), Time::New(), dictionary::New(), momentum::newField(), age::newField(), ensightCase::newGeometry(), fvMeshTools::newMesh(), zoneCellStencils::nonEmptyFacesPatch(), phaseModel::iNew::operator()(), ignitionSite::iNew::operator()(), passiveParticle::iNew::operator()(), solidParticle::iNew::operator()(), trackedParticle::iNew::operator()(), molecule::iNew::operator()(), particle< Type >::iNew::operator()(), probes::prepare(), genericPatchFieldBase::processEntry(), fvMeshSubset::setCellSubset(), basicSpecieMixture::specieComposition(), polyTopoChanger::topoChangeRequest(), streamLineBase::wallPatch(), and vtkWrite::write().
|
inlinenoexcept |
Definition at line 141 of file autoPtr.H.
Referenced by writeFile::createFile(), argList::parse(), rawIOField< Type >::rawIOField(), uncollatedFileOperation::readHeader(), uncollatedFileOperation::readStream(), masterUncollatedFileOperation::readStream(), Table< Type >::Table(), FLMAsurfaceFormat< Face >::write(), FIREMeshWriter::write(), and decomposedBlockData::writeBlocks().
|
inlinenoexcept |
Definition at line 148 of file autoPtr.H.
Referenced by refinementHistory::add(), refinementHistory::apply(), HashPtrTable< exprResult >::insert(), and fvExpressionField::performAction().
|
inline |
Definition at line 157 of file autoPtr.H.
Referenced by energySpectrum::calcAndWriteSpectrum(), sensitivitySurface::smoothSensitivities(), and TDACChemistryModel< CompType, ThermoType >::TDACChemistryModel().
|
inlinenoexcept |
Definition at line 93 of file autoPtrI.H.
Referenced by PtrList< transferModel >::append(), PtrDynList< Foam::profilingInformation >::append(), HashPtrTable< exprResult >::insert(), fvExpressionField::performAction(), autoPtr< Foam::ThermalDiffusivity >::ptr(), PtrList< transferModel >::set(), PtrDynList< Foam::profilingInformation >::set(), HashPtrTable< exprResult >::set(), and regIOobject::store().
|
inlinenoexcept |
Definition at line 168 of file autoPtr.H.
Referenced by variablesSet::allocateField(), variablesSet::allocateFluxField(), fvMeshDistribute::distribute(), rigidBodyModel::join(), PtrListDictionary< phaseModel >::set(), and OFstreamCollator::write().
|
inlinenoexcept |
Definition at line 172 of file autoPtr.H.
Referenced by meshRefinement::distribute(), snappySnapDriver::doSnap(), rawIOField< Type >::rawIOField(), masterUncollatedFileOperation::readStream(), FLMAsurfaceFormat< Face >::write(), and FIREMeshWriter::write().
Referenced by refinementHistory::add(), polyMeshAdder::add(), ATCUaGradU::addATC(), ATCstandard::addATC(), AMIInterpolation::agglomerate(), variablesSet::allocateRenamedField(), refinementHistory::apply(), sensitivityVolBSplinesFI::assembleSensitivities(), sensitivityBezierFI::assembleSensitivities(), sensitivitySurface::assembleSensitivities(), autoPtr< Foam::ThermalDiffusivity >::clear(), PatchInteractionFields< CloudType >::clearOrReset(), writeFile::createFile(), snappySnapDriver::detectNearSurfaces(), distributedTriSurfaceMesh::distribute(), snappySnapDriver::doSnap(), searchablePlateFeatures::features(), sensitivitySurfacePoints::finaliseFaceMultiplier(), distributedTriSurfaceMesh::findNearest(), PatchTools::gatherAndMerge(), distributedTriSurfaceMesh::getVolumeType(), if(), steadyOptimisation::lineSearchUpdate(), polyTopoChange::makeMesh(), rigidBodyModel::merge(), lineSearch::New(), isoSurfaceBase::New(), entry::New(), functionObjectList::New(), Foam::vtk::newFormatter(), masterUncollatedFileOperation::NewIFstream(), Foam::NewOrNone(), processorCyclicPolyPatch::order(), fvExpressionField::performAction(), projectCurveEdge::position(), projectEdge::position(), projectFace::project(), radiativeIntensityRay::radiativeIntensityRay(), decomposedBlockData::read(), functionObjectList::read(), BilgerMixtureFraction::read(), masterUncollatedFileOperation::read(), decomposedBlockData::readBlock(), decomposedBlockData::readBlocks(), masterUncollatedFileOperation::readStream(), autoPtr< Foam::ThermalDiffusivity >::set(), cyclicAMIPolyPatch::setAMIFaces(), variablesSet::setFluxField(), sensitivitySurface::smoothSensitivities(), objective::updateNormalizationFactor(), histogram::write(), Foam::ensightOutput::writeCloudPositions(), externalCoupled::writeGeometry(), and decomposedBlockData::writeObject().
|
inlinenoexcept |
Definition at line 121 of file autoPtrI.H.
|
inline |
Definition at line 147 of file autoPtrI.H.
Referenced by autoPtr< Foam::ThermalDiffusivity >::operator const T &().
|
inline |
Definition at line 160 of file autoPtrI.H.
|
inline |
Definition at line 167 of file autoPtrI.H.
|
inline |
Definition at line 180 of file autoPtrI.H.
|
inline |
Definition at line 187 of file autoPtrI.H.
|
inline |
Definition at line 194 of file autoPtrI.H.
|
delete |
Definition at line 213 of file autoPtrI.H.
|
inlinenoexcept |
|
inlinenoexcept |
Definition at line 268 of file autoPtr.H.
Referenced by cyclicAMIPolyPatch::interpolate(), objective::JCycle(), histogram::write(), and objective::write().
|
inlinenoexcept |
Definition at line 284 of file autoPtr.H.
Referenced by cyclicAMIPolyPatch::cylindricalCS(), multiphaseSystem::dragCoeffs(), averageNeighbourFvGeometryScheme::movePoints(), and mappedPatchBase::readDatabase().
|
inline |
Definition at line 29 of file autoPtrI.H.
|
inline |
Definition at line 37 of file autoPtrI.H.
|
inline |
Definition at line 133 of file autoPtrI.H.
Definition at line 201 of file autoPtrI.H.
|
inlinenoexcept |
Definition at line 224 of file autoPtrI.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.