A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers. The operator[] returns a reference to the object, not the pointer. More...
Inherited by faBoundaryMesh, fvBoundaryMesh, pointBoundaryMesh, and polyBoundaryMesh.
Public Member Functions | |
constexpr | PtrList () noexcept |
PtrList (const label len) | |
PtrList (const PtrList< T > &list) | |
PtrList (PtrList< T > &&list) | |
PtrList (UList< T * > &list) | |
template<class CloneArg > | |
PtrList (const PtrList< T > &list, const CloneArg &cloneArgs) | |
PtrList (PtrList< T > &list, bool reuse) | |
PtrList (const SLPtrList< T > &list) | |
template<class INew > | |
PtrList (Istream &is, const INew &inew) | |
PtrList (Istream &is) | |
~PtrList () | |
template<class... Args> | |
PtrList< T > | clone (Args &&... args) const |
const T * | set (const label i) const |
void | clear () |
void | resize (const label newLen) |
void | setSize (const label newLen) |
template<class... Args> | |
void | emplace_append (Args &&... args) |
void | append (T *ptr) |
void | append (autoPtr< T > &ptr) |
void | append (autoPtr< T > &&ptr) |
void | append (std::unique_ptr< T > &&ptr) |
void | append (const refPtr< T > &ptr) |
void | append (const tmp< T > &ptr) |
template<class... Args> | |
autoPtr< T > | emplace (const label i, Args &&... args) |
autoPtr< T > | set (const label i, T *ptr) |
autoPtr< T > | set (const label i, autoPtr< T > &ptr) |
autoPtr< T > | set (const label i, autoPtr< T > &&ptr) |
autoPtr< T > | set (const label i, std::unique_ptr< T > &&ptr) |
autoPtr< T > | set (const label i, const refPtr< T > &ptr) |
autoPtr< T > | set (const label i, const tmp< T > &ptr) |
autoPtr< T > | release (const label i) |
void | transfer (PtrList< T > &list) |
void | operator= (const PtrList< T > &list) |
void | operator= (PtrList< T > &&list) |
template<class T > | |
PtrList (PtrList< T > &list, bool reuse) | |
template<class T > | |
PtrList (const SLPtrList< T > &list) | |
template<class... Args> | |
Foam::PtrList< T > | clone (Args &&... args) const |
template<class T > | |
constexpr | PtrList () noexcept |
template<class T > | |
PtrList (const label len) | |
template<class T > | |
PtrList (const PtrList< T > &list) | |
template<class T > | |
PtrList (PtrList< T > &&list) | |
template<class T > | |
PtrList (UList< T * > &list) | |
template<class... Args> | |
Foam::autoPtr< T > | emplace (const label i, Args &&... args) |
template<class T > | |
PtrList (Istream &is) | |
Protected Member Functions | |
template<class INew > | |
void | readIstream (Istream &is, const INew &inew) |
void | free () |
Friends | |
Istream & | operator>> (Istream &is, PtrList< T > &list) |
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers. The operator[] returns a reference to the object, not the pointer.
|
inlineconstexprnoexcept |
|
inlineexplicit |
Definition at line 78 of file PtrListI.H.
Definition at line 138 of file PtrListIO.C.
|
inlineconstexprnoexcept |
Definition at line 38 of file PtrListI.H.
|
inline |
Definition at line 45 of file PtrListI.H.
Definition at line 52 of file PtrListI.H.
Definition at line 59 of file PtrListI.H.
Definition at line 66 of file PtrListI.H.
Definition at line 145 of file PtrListIO.C.
Definition at line 31 of file PtrListIO.C.
|
inlineprotected |
Definition at line 29 of file PtrListI.H.
Referenced by attachPolyTopoChanger::attach(), PtrList< transferModel >::clone(), polyTopoChange::makeMesh(), fvMeshTools::newMesh(), and fvMeshSubset::setCellSubset().
|
inline |
Definition at line 134 of file PtrList.H.
Referenced by fvMeshAdder::add(), polyMeshAdder::add(), phaseSystem::addField(), fvMeshTools::addPatch(), meshRefinement::appendPatch(), boundaryMesh::changeFaces(), boundaryMesh::changePatchType(), adjointSolverManager::constraintSensitivities(), diffusionMulticomponent< ReactionThermo, ThermoType >::correct(), MomentumTransferPhaseSystem< BasePhaseSystem >::ddtCorrByAs(), pointFieldDecomposer::decomposeField(), faFieldDecomposer::decomposeField(), fvFieldDecomposer::decomposeField(), boundaryMesh::deletePatch(), fvMeshDistribute::distribute(), extrudePatchMesh::extrudePatchMesh(), phaseSystem::fillFields(), meshRefinement::findRegions(), forAll(), GAMGSolver::GAMGSolver(), lduPrimitiveMesh::gather(), surfaceZonesInfo::getAllClosedNamedSurfaces(), surfaceZonesInfo::getClosedNamedSurfaces(), surfaceZonesInfo::getInsidePointNamedSurfaces(), surfaceZonesInfo::getNamedSurfaces(), surfaceZonesInfo::getStandaloneNamedSurfaces(), surfaceZonesInfo::getUnclosedNamedSurfaces(), GAMGProcAgglomeration::globalCellCells(), lduPrimitiveMesh::globalCellCells(), PDRblock::innerMesh(), singleCellFvMesh::interpolate(), meshToMesh0::interpolate(), LUscalarMatrix::LUscalarMatrix(), fvMeshAdder::MapDimFields(), meshToMesh::mapSrcToTgt(), fvMeshAdder::MapSurfaceFields(), meshToMesh::mapTgtToSrc(), fvMeshAdder::MapVolFields(), MomentumTransferPhaseSystem< BasePhaseSystem >::momentumTransferf(), MomentumTransferPhaseSystem< BasePhaseSystem >::partialElimination(), MomentumTransferPhaseSystem< BasePhaseSystem >::partialEliminationf(), pointBoundaryMesh::pointBoundaryMesh(), polyBoundaryMesh::polyBoundaryMesh(), multiRegion::read(), boundaryMesh::read(), functionObjectList::read(), sampledSurfaces::read(), externalCoupled::readDataMaster(), polyMesh::readUpdate(), faFieldReconstructor::reconstructFaAreaField(), faFieldReconstructor::reconstructFaEdgeField(), pointFieldReconstructor::reconstructField(), fvFieldReconstructor::reconstructFvSurfaceField(), fvFieldReconstructor::reconstructFvVolumeField(), fvFieldReconstructor::reconstructFvVolumeInternalField(), processorMeshes::reconstructPoints(), refinementSurfaces::refinementSurfaces(), refinementFeatures::regionEdgeTrees(), multiphaseSystem::solve(), MultiComponentPhaseModel< BasePhaseModel, phaseThermo >::solveYi(), syncTools::syncFaceList(), blockMesh::topology(), trackingInverseDistance::update(), inverseDistance::update(), optimisationType::updateGradientsAndValues(), OFstreamCollator::write(), externalCoupled::writeDataMaster(), faMeshDecomposition::writeDecomposition(), streamLineBase::writeToFile(), and ZoneMesh< cellZone, polyMesh >::ZoneMesh().
|
inline |
Definition at line 90 of file PtrListI.H.
Referenced by functionObjectList::clear(), fvMatrix< Type >::clear(), functionObjectList::read(), sampledSurfaces::read(), polyMesh::readUpdate(), polyMesh::removeBoundary(), and decompositionMethod::setConstraints().
void resize | ( | const label | newLen | ) |
Definition at line 96 of file PtrList.C.
Referenced by regionModel::interRegionAMI(), multiRegion::read(), functionObjectList::read(), sampledSurfaces::read(), PtrList< transferModel >::setSize(), and ZoneMesh< cellZone, polyMesh >::ZoneMesh().
|
inline |
Definition at line 147 of file PtrList.H.
Referenced by fvMeshAdder::add(), polyMeshAdder::add(), fvMeshTools::addPatch(), meshRefinement::appendPatch(), lduPrimitiveMesh::gather(), patchInjection::patchInjection(), polyBoundaryMesh::polyBoundaryMesh(), polyMesh::readUpdate(), polyMesh::removeBoundary(), searchableSurfaces::searchableSurfaces(), duplicatePoints::setRefinement(), trackingInverseDistance::update(), optimisationType::updateGradientsAndValues(), lduPrimitiveMeshAssembly::updateMaps(), and OFstreamCollator::write().
|
inline |
Definition at line 99 of file PtrListI.H.
|
inline |
Definition at line 106 of file PtrListI.H.
Referenced by singleProcessorFaceSets::add(), triSurfaceLoader::load(), and streamLineBase::trimToBox().
Definition at line 113 of file PtrListI.H.
Definition at line 120 of file PtrListI.H.
|
inline |
Definition at line 127 of file PtrListI.H.
Definition at line 134 of file PtrListI.H.
Definition at line 141 of file PtrListI.H.
|
inline |
Definition at line 160 of file PtrListI.H.
|
inline |
Definition at line 172 of file PtrListI.H.
|
inline |
Definition at line 183 of file PtrListI.H.
|
inline |
Definition at line 194 of file PtrListI.H.
|
inline |
Definition at line 205 of file PtrListI.H.
|
inline |
Definition at line 216 of file PtrListI.H.
|
inline |
Definition at line 226 of file PtrListI.H.
Definition at line 238 of file PtrListI.H.
Referenced by IATE::read(), and functionObjectList::read().
Definition at line 248 of file PtrListI.H.
Foam::PtrList<T> clone | ( | Args &&... | args | ) | const |
|
inline |
Definition at line 150 of file PtrListI.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.