List< T > Class Template Reference

A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bounds checking, etc. More...

Inherited by BinSum< IndexType, List, CombineOp >, cell, cellToFaceStencil, faceTriangulation, faPatch, IOList< T >, ITstream, PDRblock::gridControl, polynomialFunction [private], ProcessorTopology< Container, ProcPatch >, pTraits< List< T > >, and surfZoneIOList.

Public Types

typedef SubList< TsubList
 Declare type of subList. More...
 

Public Member Functions

constexpr List () noexcept
 Default construct. More...
 
 List (const label len)
 Construct with given size. More...
 
 List (const label len, const T &val)
 Construct with given size and value for all elements. More...
 
 List (const label len, const Foam::zero)
 Construct with given size initializing all elements to zero. More...
 
 List (const Foam::one, const T &val)
 Construct with length=1, copying the value as the only content. More...
 
 List (const Foam::one, T &&val)
 Construct with length=1, moving the value as the only content. More...
 
 List (const Foam::one, const Foam::zero)
 Construct with length=1, initializing content to zero. More...
 
 List (const List< T > &a)
 Copy construct from list. More...
 
 List (const UList< T > &a)
 Copy construct contents from list. More...
 
 List (List< T > &a, bool reuse)
 Construct as copy or re-use as specified. More...
 
 List (const UList< T > &list, const labelUList &indices)
 Copy construct subset of list. More...
 
template<unsigned N>
 List (const UList< T > &list, const FixedList< label, N > &indices)
 Copy construct subset of list. More...
 
template<unsigned N>
 List (const FixedList< T, N > &list)
 Construct as copy of FixedList<T, N> More...
 
 List (const PtrList< T > &list)
 Construct as copy of PtrList<T> More...
 
 List (const SLList< T > &list)
 Construct as copy of SLList<T> More...
 
template<class Addr >
 List (const IndirectListBase< T, Addr > &list)
 Construct as copy of IndirectList contents. More...
 
 List (std::initializer_list< T > list)
 Construct from an initializer list. More...
 
 List (List< T > &&list)
 Move construct from List. More...
 
template<int SizeMin>
 List (DynamicList< T, SizeMin > &&list)
 Move construct from DynamicList. More...
 
 List (SortableList< T > &&list)
 Move construct from SortableList. More...
 
 List (SLList< T > &&list)
 Move construct from SLList. More...
 
 List (Istream &is)
 Construct from Istream. More...
 
autoPtr< List< T > > clone () const
 Clone. More...
 
 ~List ()
 Destructor. More...
 
void clear ()
 Clear the list, i.e. set size to zero. More...
 
void resize (const label len)
 Adjust allocated size of list. More...
 
void resize (const label len, const T &val)
 Adjust allocated size of list and set val for new elements. More...
 
void resize_nocopy (const label len)
 Adjust allocated size of list without necessarily. More...
 
void setSize (const label n)
 Alias for resize() More...
 
void setSize (const label n, const T &val)
 Alias for resize() More...
 
void append (const T &val)
 Append an element at the end of the list. More...
 
void append (T &&val)
 Move append an element at the end of the list. More...
 
void append (const UList< T > &list)
 Append a List to the end of this list. More...
 
template<class Addr >
void append (const IndirectListBase< T, Addr > &list)
 Append IndirectList contents at the end of this list. More...
 
label appendUniq (const T &val)
 Append an element if not already in the list. More...
 
void transfer (List< T > &list)
 
template<int SizeMin>
void transfer (DynamicList< T, SizeMin > &list)
 
void transfer (SortableList< T > &list)
 
TnewElmt (const label i)
 
void operator= (const UList< T > &a)
 Assignment to UList operator. Takes linear time. More...
 
void operator= (const List< T > &list)
 Assignment operator. Takes linear time. More...
 
void operator= (const SLList< T > &list)
 Assignment to SLList operator. Takes linear time. More...
 
template<class Addr >
void operator= (const IndirectListBase< T, Addr > &list)
 Assignment from IndirectList. Takes linear time. More...
 
template<unsigned N>
void operator= (const FixedList< T, N > &list)
 Copy assignment from FixedList. More...
 
void operator= (std::initializer_list< T > list)
 Assignment to an initializer list. More...
 
void operator= (const T &val)
 Assignment of all entries to the given value. More...
 
void operator= (const Foam::zero)
 Assignment of all entries to zero. More...
 
void operator= (List< T > &&list)
 Move assignment. Takes constant time. More...
 
template<int SizeMin>
void operator= (DynamicList< T, SizeMin > &&list)
 Move assignment. Takes constant time. More...
 
void operator= (SortableList< T > &&list)
 Move assignment. Takes constant time. More...
 
void operator= (SLList< T > &&list)
 Move assignment. Takes constant time. More...
 
IstreamreadList (Istream &is)
 Read List from Istream, discarding contents of existing List. More...
 
void shallowCopy (const UList< T > &)=delete
 No shallowCopy permitted. More...
 
template<class TypeT = T>
std::enable_if< std::is_same< bool, TypeT >::value, bool >::type set (const label i, bool val=true)
 A bitSet::set() method for a list of bool. More...
 
template<>
IstreamreadList (Istream &is)
 
template<>
void resize (const label newLen)
 
template<>
IstreamreadList (Istream &is)
 

Static Public Member Functions

static const List< T > & null ()
 Return a null List. More...
 

Friends

Istreamoperator>> (Istream &is, List< T > &list)
 Use the readList() method to read contents from Istream. More...
 

Detailed Description

template<class T>
class Foam::List< T >

A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bounds checking, etc.

Storage is allocated on free-store during construction.

Source files

Definition at line 63 of file BitOps.H.

Member Typedef Documentation

◆ subList

typedef SubList<T> subList

Declare type of subList.

Definition at line 112 of file List.H.

Constructor & Destructor Documentation

◆ List() [1/22]

constexpr List ( )
inlineconstexprnoexcept

Default construct.

Definition at line 95 of file ListI.H.

◆ List() [2/22]

List ( const label  len)
explicit

Construct with given size.

Definition at line 98 of file List.C.

◆ List() [3/22]

List ( const label  len,
const T val 
)

Construct with given size and value for all elements.

Definition at line 114 of file List.C.

◆ List() [4/22]

List ( const label  len,
const Foam::zero   
)

Construct with given size initializing all elements to zero.

Definition at line 139 of file List.C.

◆ List() [5/22]

List ( const Foam::one  ,
const T val 
)

Construct with length=1, copying the value as the only content.

Definition at line 164 of file List.C.

◆ List() [6/22]

List ( const Foam::one  ,
T &&  val 
)

Construct with length=1, moving the value as the only content.

Definition at line 173 of file List.C.

◆ List() [7/22]

List ( const Foam::one  ,
const Foam::zero   
)

Construct with length=1, initializing content to zero.

Definition at line 182 of file List.C.

◆ List() [8/22]

List ( const List< T > &  a)

Copy construct from list.

Definition at line 224 of file List.C.

◆ List() [9/22]

List ( const UList< T > &  a)
explicit

Copy construct contents from list.

Definition at line 191 of file List.C.

◆ List() [10/22]

List ( List< T > &  a,
bool  reuse 
)

Construct as copy or re-use as specified.

Definition at line 257 of file List.C.

◆ List() [11/22]

List ( const UList< T > &  list,
const labelUList< T > &  indices 
)

Copy construct subset of list.

Definition at line 299 of file List.C.

◆ List() [12/22]

List ( const UList< T > &  list,
const FixedList< label, N > &  indices 
)

Copy construct subset of list.

Definition at line 322 of file List.C.

◆ List() [13/22]

List ( const FixedList< T, N > &  list)
explicit

Construct as copy of FixedList<T, N>

Definition at line 344 of file List.C.

◆ List() [14/22]

List ( const PtrList< T > &  list)
explicit

Construct as copy of PtrList<T>

Definition at line 354 of file List.C.

◆ List() [15/22]

List ( const SLList< T > &  list)
explicit

Construct as copy of SLList<T>

Definition at line 364 of file List.C.

◆ List() [16/22]

List ( const IndirectListBase< T, Addr > &  list)
explicit

Construct as copy of IndirectList contents.

Definition at line 372 of file List.C.

◆ List() [17/22]

List ( std::initializer_list< T list)

Construct from an initializer list.

Definition at line 382 of file List.C.

◆ List() [18/22]

List ( List< T > &&  list)

Move construct from List.

Definition at line 389 of file List.C.

◆ List() [19/22]

List ( DynamicList< T, SizeMin > &&  list)

Move construct from DynamicList.

Definition at line 400 of file List.C.

◆ List() [20/22]

List ( SortableList< T > &&  list)

Move construct from SortableList.

Definition at line 409 of file List.C.

◆ List() [21/22]

List ( SLList< T > &&  list)

Move construct from SLList.

Definition at line 418 of file List.C.

◆ List() [22/22]

List ( Istream is)

Construct from Istream.

Definition at line 38 of file ListIO.C.

◆ ~List()

~List ( )

Destructor.

Definition at line 429 of file List.C.

Member Function Documentation

◆ null()

◆ clone()

Foam::autoPtr< Foam::List< T > > clone ( ) const
inline

Clone.

Definition at line 100 of file ListI.H.

◆ clear()

void clear ( )
inline

Clear the list, i.e. set size to zero.

Definition at line 116 of file ListI.H.

Referenced by polyMeshAdder::add(), correctedCellVolumeWeightMethod::calculateAddressing(), cellVolumeWeightMethod::calculateAddressing(), ensightPart::clear(), SortableList< T >::clear(), IListStreamAllocator::clearStorage(), PackedList< 2 >::clearStorage(), polySurface::copySurface(), surfMesh::copySurface(), removePoints::countPointUsage(), distanceSurface::createGeometry(), box::createMap(), meshRefinement::createZoneBaffles(), Foam::duplicateOrder(), Field< Foam::Vector2D >::Field(), refinementSurfaces::findAllIntersections(), probes::findElements(), searchablePlane::findLineAll(), searchablePlate::findLineAll(), searchableDisk::findLineAll(), searchableCylinder::findLineAll(), searchableSurfaceCollection::findLineAll(), searchableSurfaceWithGaps::findLineAll(), searchableRotatedBox::findLineAll(), searchableBox::findLineAll(), searchableCone::findLineAll(), searchableSphere::findLineAll(), distributedTriSurfaceMesh::findLineAll(), triSurfaceMesh::isSurfaceClosed(), Cloud< passivePositionParticle >::move(), argList::parse(), Foam::parseStream(), RecycleInteraction< CloudType >::postEvolve(), STARCDsurfaceFormat< Face >::read(), TRIsurfaceFormat< Face >::read(), STARCDedgeFormat::read(), STLsurfaceFormat< Face >::read(), ensightWrite::read(), STARCDMeshReader::readCells(), Time::readDict(), List< vectorField >::readList(), boundaryMesh::readTriSurface(), surfMesh::removeZones(), decompositionMethod::setConstraints(), lumpedPointMovement::setInterpolator(), hexRef8::storeData(), PatchTools::subsetMap(), trackingInverseDistance::update(), cellVolumeWeight::update(), inverseDistance::update(), surfaceNoise::writeSurfaceData(), zoneToPoint::zones(), zoneToCell::zones(), and zoneToFace::zones().

◆ resize() [1/3]

void resize ( const label  len)
inline

Adjust allocated size of list.

The boolList version fills new memory with false.

Definition at line 139 of file ListI.H.

Referenced by preservePatches::add(), singleProcessorFaceSets::add(), geometric::add(), polyTopoChange::addMesh(), isoSurfaceBase::calcCellCuts(), polyLine::calcParam(), topoSetSource::check(), MeshedSurface< Foam::face >::checkFaces(), cellShape::collapsedFaces(), multiWorldConnections::comms(), faMeshDecomposition::decomposeMesh(), directions::directions(), Foam::duplicateOrder(), cell::edges(), Foam::etcDirs(), NASCore::faceDecomposition(), ABAQUSCore::faceDecomposition(), faceZone::faceZone(), searchableDisk::findLine(), searchableSphere::findLine(), searchableSphere::findLineAll(), searchableSphere::findLineAny(), namesList< solutionEntry >::findNames(), searchableDisk::findNearest(), searchableSphere::findNearest(), lumpedPointMovement::forcesAndMoments(), decomposedBlockData::gather(), decomposedBlockData::gatherSlaveData(), Foam::exprTools::getList(), searchableDisk::getRegion(), searchableSphere::getRegion(), searchableSphere::getVolumeType(), GAMGInterface::interfaceInternalField(), Foam::invertOneToMany(), isoSurfaceTopo::isoSurfaceTopo(), dictionary::keys(), UPstream::listGatherValues(), dlLibraryTable::loaded(), PatchTools::matchEdges(), wordRes::matching(), scalars::matching(), PatchTools::matchPoints(), globalIndex::mpiGather(), Foam::nonProcessorPatchNames(), polynomialFunction::operator+=(), polynomialFunction::operator-=(), Foam::operator>>(), argList::parse(), Foam::parseStream(), sampledPatch::patchIDs(), Foam::prependList(), Foam::printTable(), Foam::blockMeshTools::read(), ABAQUSsurfaceFormat< Face >::read(), pointNoise::read(), multiphaseMangrovesTurbulenceModel::read(), writeObjects::read(), surfaceNoise::read(), explicitPorositySource::read(), derivedFields::read(), areaWrite::read(), functionObjectList::read(), Foam::readBlock(), Foam::readDir(), List< vectorField >::readList(), functionEntry::readStringList(), isoAlpha::reconstruct(), searchableBox::regions(), searchableDisk::regions(), searchablePlate::regions(), searchableSphere::regions(), PackedList< 2 >::reserve(), SortList< T >::reset(), faMeshBoundaryHalo::reset(), option::resetApplied(), PDRblock::gridControl::resize(), SortList< T >::reverseSort(), Foam::BitOps::set(), List< vectorField >::set(), PackedList< 2 >::setCapacity(), fvMeshSubset::setCellSubset(), ZoneMesh< cellZone, polyMesh >::setGroup(), polyBoundaryMesh::setGroup(), lumpedPointMovement::setInterpolator(), edgeCollapser::setRefinement(), List< vectorField >::setSize(), PackedList< 2 >::shrink(), LUscalarMatrix::solve(), SortList< T >::sort(), basicThermo::splitThermoName(), MeshedSurface< Foam::face >::stitchFaces(), surfZoneIOList::surfZoneIOList(), syncTools::swapBoundaryCellList(), syncTools::swapBoundaryCellPositions(), HashTable< Foam::autoPtr< Foam::interfaceCompositionModel > >::tocEntries(), HashTable< Foam::autoPtr< Foam::interfaceCompositionModel > >::tocKeys(), HashTable< Foam::autoPtr< Foam::interfaceCompositionModel > >::tocValues(), topoBoolSet::topoBoolSet(), faceAreaIntersect::triangulate(), hashedWordList::uniq(), PrimitivePatch<::Foam::List< labelledTri >, pointField >::uniqBoundaryFaces(), Foam::uniqueOrder(), sampledFaceZone::update(), sampledPatch::update(), faMesh::updateMesh(), ensightFaces::write(), multiFieldValue::write(), decomposedBlockData::writeBlocks(), lumpedPointMovement::writeStateVTP(), zeroATCcells::zeroATCcells(), zoneToCell::zones(), zoneToPoint::zones(), zoneToFace::zones(), and faceZoneToCell::zones().

◆ resize() [2/3]

void resize ( const label  len,
const T val 
)

Adjust allocated size of list and set val for new elements.

Definition at line 441 of file List.C.

◆ resize_nocopy()

void resize_nocopy ( const label  len)
inline

Adjust allocated size of list without necessarily.

retaining old content. If no reallocation is required, the contents remain untouched. Otherwise the contents will be uninitialized.

Definition at line 146 of file ListI.H.

Referenced by globalIndex::gather(), globalIndex::get(), globalIndex::mpiGather(), Foam::sortedOrder(), and Foam::ensightOutput::Detail::writeFieldContent().

Here is the caller graph for this function:

◆ setSize() [1/2]

void setSize ( const label  n)
inline

Alias for resize()

Definition at line 222 of file List.H.

Referenced by preserveBaffles::add(), preserveFaceZones::add(), fvMeshAdder::add(), polyMeshAdder::add(), refinementHistory::add(), fvMeshPrimitiveLduAddressing::addAddressing(), cyclicAMIPolyPatch::addAMIFaces(), cellTable::addCellZones(), object::addData(), addPatchCellLayer::addedCells(), lduPrimitiveMesh::addInterfaces(), edgeSurface::addIntersectionEdges(), snappyLayerDriver::addLayers(), regIOobject::addWatch(), adjointSolverManager::adjointSolverManager(), AMIInterpolation::agglomerate(), GAMGAgglomeration::agglomerateLduAddressing(), extendedEdgeMesh::allNearestFeatureEdges(), face::areaInContact(), sensitivitySurfacePoints::assembleSensitivities(), FreeStream< CloudType >::autoMap(), extendedEdgeMesh::autoMap(), meshRefinement::balance(), Bezier::Bezier(), bladeModel::bladeModel(), booleanSurface::booleanSurface(), nearWallFields::calcAddressing(), decompositionMethod::calcCellCells(), primitiveMesh::calcCells(), addPatchCellLayer::calcExtrudeInfo(), cellToFaceStencil::calcFaceStencil(), CentredFitSnGradData< Polynomial >::calcFit(), FitData< CentredFitSnGradData< Polynomial >, extendedCentredCellToFaceStencil, Polynomial >::calcFit(), primitiveMesh::calcPointOrder(), createShellMesh::calcPointRegions(), waveMethod::calculate(), correctedCellVolumeWeightMethod::calculate(), surfaceNoise::calculate(), GAMGAgglomeration::calculateRegionMaster(), fvMotionSolver::cellMotionBoundaryTypes(), boundaryMesh::changeFaces(), extractEulerianParticles::checkFaceZone(), polyBoundaryMesh::checkParallelSync(), GAMGAgglomeration::checkRestriction(), refinementHistory::clone(), extendedCellToFaceStencil::collectData(), extendedFaceToCellStencil::collectData(), mappedPatchBase::collectSamples(), mapDistributeBase::compact(), GAMGAgglomeration::compactLevels(), removeFaces::compatibleRemoves(), NURBS3DVolume::computeParametricCoordinates(), inverseFaceDistanceDiffusivity::correct(), inversePointDistanceDiffusivity::correct(), removePoints::countPointUsage(), cyclicPolyPatch::coupledPoints(), box::createLODMap(), meshRefinement::createZoneBaffles(), motionSmootherAlgo::curPoints(), hexCellLooper::cut(), geomCellLooper::cut(), simpleGeomDecomp::decompose(), faMeshDecomposition::decomposeMesh(), mapPatchChange::deletedPatches(), meshRefinement::directionalRefineCandidates(), fvMeshDistribute::distribute(), mapDistributeBase::distribute(), distributedTriSurfaceMesh::distribute(), Pstream::exchange(), mapDistributeBase::exchangeAddressing(), Pstream::exchangeSizes(), forceCoeffs::execute(), extendedUpwindCellToFaceStencil::extendedUpwindCellToFaceStencil(), primitiveMesh::faceEdges(), searchablePlateFeatures::features(), searchableSurfacesQueries::findAllIntersections(), refinementSurfaces::findAllIntersections(), searchableSurfacesQueries::findAnyIntersection(), shellSurfaces::findDirectionalLevel(), patchProbes::findElements(), probes::findElements(), shellSurfaces::findHigherGapLevel(), refinementSurfaces::findHigherIntersection(), refinementSurfaces::findInside(), shellSurfaces::findLevel(), triSurfaceSearch::findLine(), searchablePlane::findLine(), searchablePlate::findLine(), searchableCylinder::findLine(), searchableSurfaceCollection::findLine(), searchableSurfaceWithGaps::findLine(), searchableRotatedBox::findLine(), searchableBox::findLine(), searchableCone::findLine(), triSurfaceSearch::findLineAll(), searchablePlane::findLineAll(), searchablePlate::findLineAll(), searchableDisk::findLineAll(), searchableCylinder::findLineAll(), searchableSurfaceCollection::findLineAll(), searchableSurfaceWithGaps::findLineAll(), searchableRotatedBox::findLineAll(), searchableBox::findLineAll(), searchableCone::findLineAll(), distributedTriSurfaceMesh::findLineAll(), triSurfaceSearch::findLineAny(), searchableCylinder::findLineAny(), searchableRotatedBox::findLineAny(), searchableBox::findLineAny(), searchableCone::findLineAny(), mappedPatchBase::findLocalSamples(), searchableSurfacesQueries::findNearest(), triSurfaceRegionSearch::findNearest(), triSurfaceSearch::findNearest(), searchablePlane::findNearest(), searchableExtrudedCircle::findNearest(), searchablePlate::findNearest(), searchableCylinder::findNearest(), searchableRotatedBox::findNearest(), searchableBox::findNearest(), searchableCone::findNearest(), distributedTriSurfaceMesh::findNearest(), refinementFeatures::findNearestEdge(), searchableSurfacesQueries::findNearestIntersection(), refinementSurfaces::findNearestIntersection(), refinementFeatures::findNearestPoint(), refinementSurfaces::findNearestRegion(), refinementFeatures::findNearestRegionEdge(), searchableExtrudedCircle::findParametricNearest(), NURBS3DVolume::findPointsInBox(), meshRefinement::findRegions(), mappedPatchBase::findSamples(), polyMeshAdder::findSharedPoints(), FreeStream< CloudType >::FreeStream(), decomposedBlockData::gather(), externalCoupled::gatherAndCombine(), PatchTools::gatherAndMerge(), GAMGAgglomeration::gatherList(), decomposedBlockData::gatherSlaveData(), combineFaces::getMergeSets(), decompositionConstraint::getMinBoundaryValue(), boundaryMesh::getNTris(), weightedPosition::getPoints(), searchablePlane::getRegion(), searchableExtrudedCircle::getRegion(), searchablePlate::getRegion(), searchableCylinder::getRegion(), searchableSurfaceCollection::getRegion(), searchableRotatedBox::getRegion(), searchableBox::getRegion(), searchableCone::getRegion(), triSurfaceMesh::getRegion(), distributedTriSurfaceMesh::getRegion(), removePoints::getUnrefimentSet(), cellLooper::getVertEdgesNonFace(), triSurfaceTools::getVertexTriangles(), searchableCylinder::getVolumeType(), searchableBox::getVolumeType(), searchableCone::getVolumeType(), triSurfaceMesh::getVolumeType(), distributedTriSurfaceMesh::getVolumeType(), meshRefinement::getZoneFaces(), cellCellStencil::globalCellCells(), addPatchCellLayer::globalEdgeFaces(), triSurfaceTools::greenRefine(), Distribution< Type >::index(), dynamicMultiMotionSolverFvMesh::init(), calculatedProcessorFvPatchField< Type >::initEvaluate(), meshToMeshMethod::initialise(), InjectedParticleDistributionInjection< CloudType >::initialise(), surfaceNoise::initialise(), fluxSummary::initialiseSurfaceAndDirection(), linearInterpolationWeights::integrationWeights(), AMIInterpolation::interpolateToSource(), AMIInterpolation::interpolateToTarget(), intersectedSurface::intersectedSurface(), isoSurfaceCell::isoSurfaceCell(), isoSurfacePoint::isoSurfacePoint(), lduPrimitiveMesh::lduPrimitiveMesh(), triSurfaceLoader::load(), distributedTriSurfaceMesh::localQueries(), voxelMeshSearch::makeMesh(), processorFaPatch::makeNonGlobalPatchPoints(), mappedPolyPatch::mapCollocatedFaces(), mappedWallPolyPatch::mapCollocatedFaces(), cyclicACMIPolyPatch::mapCollocatedFaces(), cyclicPolyPatch::mapCollocatedFaces(), mapDistribute::mapDistribute(), mapDistributeBase::mapDistributeBase(), trackingInverseDistance::markDonors(), inverseDistance::markDonors(), boundaryMesh::markFaces(), PatchTools::markZones(), triSurface::markZones(), Foam::matchPoints(), cellToFaceStencil::merge(), edgeIntersections::merge(), meshRefinement::mergeBaffles(), Foam::mergePoints(), globalMeshData::mergePoints(), extendedEdgeMesh::mergePointsAndSort(), fileOperation::mergeTimes(), engineValve::movingPatchIDs(), extendedEdgeMesh::nearestFeatureEdge(), extendedEdgeMesh::nearestFeatureEdgeByType(), surfaceFeatures::nearestSurfEdge(), cellCuts::nonAnchorPoints(), Distribution< Type >::normalised(), objectiveManager::objectiveManager(), UList< Foam::wordRe >::operator[](), oldCyclicPolyPatch::order(), processorPolyPatch::order(), cyclicPolyPatch::order(), cyclicAMIPolyPatch::order(), distributedTriSurfaceMesh::overlappingSurface(), ParticleCollector< CloudType >::ParticleCollector(), polyMeshAdder::patchFacePairs(), PatchParticleHistogram< CloudType >::PatchParticleHistogram(), SprayCloud< Foam::DSMCCloud >::penetration(), pointCells::pointCells(), pointFieldReconstructor::pointFieldReconstructor(), PatchTools::pointNormals(), Foam::polyMeshZipUpCells(), snappySnapDriver::preSmoothPatch(), Distribution< Type >::raw(), cloudSolution::read(), runTimeControl::read(), multiphaseMangrovesTurbulenceModel::read(), regIOobject::read(), STARCDMeshReader::readBoundary(), STARCDMeshReader::readCells(), FIREMeshReader::readFaces(), reader::readField(), masterUncollatedFileOperation::readHeader(), surfaceNoise::readSurfaceData(), boundaryMesh::readTriSurface(), meshRefinement::refineCandidates(), searchablePlane::regions(), searchableExtrudedCircle::regions(), searchableCylinder::regions(), searchableSurfaceCollection::regions(), searchableCone::regions(), triSurfaceMesh::regions(), edgeMesh::regions(), fvMeshTools::removeEmptyPatches(), mapDistributeBase::schedule(), searchableSurfaces::searchableSurfaces(), extendedEdgeMesh::select(), fvMeshSubset::setCellSubset(), decompositionMethod::setConstraints(), weightedPosition::setPoints(), box::setRefineFlags(), duplicatePoints::setRefinement(), refinementIterator::setRefinement(), removePoints::setRefinement(), boundaryCutter::setRefinement(), tetDecomposer::setRefinement(), addPatchCellLayer::setRefinement(), hexRef8::setRefinement(), propellerInfo::setSampleDiskGeometry(), SortableListDRGEP< Type >::setSize(), SortableListEFA< Type >::setSize(), data::setSolverPerformance(), removePoints::setUnrefinement(), ParSortableList< Type >::sort(), extendedEdgeMesh::sortedOrder(), extendedEdgeMesh::sortPointsAndEdges(), meshRefinement::splitFacesUndo(), leastSquares::stencilWeights(), cellVolumeWeight::stencilWeights(), inverseDistance::stencilWeights(), streamLineParticle::streamLineParticle(), triSurfaceRegionSearch::treeByRegion(), boundaryMesh::triangulate(), triSurfaceTools::triangulate(), triSurfaceTools::triangulateFaceCentre(), boundaryMesh::triangulateLocal(), advancingFrontAMI::triangulatePatch(), triSurface::triFaceFaces(), streamLineBase::trimToBox(), trackingInverseDistance::update(), inverseDistance::update(), dynamicOversetFvMesh::updateAddressing(), edgeVertex::updateLabels(), removePoints::updateMesh(), boundaryCutter::updateMesh(), faceZone::updateMesh(), addPatchCellLayer::updateMesh(), faMesh::updateMesh(), cellToFaceStencil::validBoundaryFaces(), cellToCellStencil::validBoundaryFaces(), splineInterpolationWeights::valueWeights(), linearInterpolationWeights::valueWeights(), volBSplinesBase::volBSplinesBase(), wallBoundedStreamLineParticle::wallBoundedStreamLineParticle(), and streamLineBase::writeToFile().

◆ setSize() [2/2]

void setSize ( const label  n,
const T val 
)
inline

Alias for resize()

Definition at line 225 of file List.H.

◆ append() [1/4]

void append ( const T val)
inline

Append an element at the end of the list.

If this is frequently required, consider a DynamicList

Definition at line 175 of file ListI.H.

Referenced by singleProcessorFaceSets::add(), cellTable::addCellZones(), snappyLayerDriver::addLayers(), unwatchedIOdictionary::addWatch(), AMIInterpolation::agglomerate(), PDRblock::gridControl::append(), AMIInterpolation::append(), Foam::appendNamedEntry(), Foam::bandCompression(), createShellMesh::calcPointRegions(), waveMethod::calculate(), correctedCellVolumeWeightMethod::calculateAddressing(), cellVolumeWeightMethod::calculateAddressing(), GAMGAgglomeration::checkRestriction(), probes::classifyFields(), refinementHistory::clone(), commSchedule::commSchedule(), triSurface::compactPoints(), MeshedSurface< Foam::face >::compactPoints(), removeFaces::compatibleRemoves(), hexRef8::consistentSlowRefinement(), hexRef8::consistentSlowRefinement2(), box::createMap(), curvatureSeparation::curvatureSeparation(), faMeshDecomposition::decomposeMesh(), snappyLayerDriver::doLayers(), edgeSurface::edgeSurface(), faceCells::faceCells(), shellSurfaces::findDirectionalLevel(), localPointRegion::findDuplicateFacePairs(), Foam::findEtcEntries(), distributedTriSurfaceMesh::findNearest(), for(), removeCells::getExposedFaces(), MRFZoneList::getFromName(), meshRefinement::getZones(), triSurfaceTools::greenRefine(), InjectedParticleDistributionInjection< CloudType >::initialise(), fluxSummary::initialiseCellZoneAndDirection(), fluxSummary::initialiseFaceZone(), fluxSummary::initialiseFaceZoneAndDirection(), fluxSummary::initialiseSurface(), fluxSummary::initialiseSurfaceAndDirection(), triSurfaceLoader::load(), LuoSvendsen::LuoSvendsen(), trackingInverseDistance::markDonors(), inverseDistance::markDonors(), PatchTools::markZone(), triSurface::markZone(), blockMesh::mesh(), meshRefinement::meshedPatches(), findCellParticle::move(), UList< Foam::wordRe >::operator[](), boundaryMesh::patchify(), RecycleInteraction< CloudType >::postEvolve(), ensightSurfaceReader::readCase(), refinementParameters::refinementParameters(), edgeMesh::regions(), regionSplit2D::regionSplit2D(), timeSelector::select0(), edgeCollapser::setRefinement(), hexRef8::setRefinement(), masterUncollatedFileOperation::setTime(), faceZoneSet::subset(), meshRefinement::subsetBaffles(), faceZoneSet::sync(), triSurfaceTools::triangulate(), triSurfaceTools::triangulateFaceCentre(), uniformInterpolatedDisplacementPointPatchVectorField::uniformInterpolatedDisplacementPointPatchVectorField(), dynamicOversetFvMesh::updateAddressing(), externalDisplacementMeshMover::updateMesh(), solverFieldSelection::updateSelection(), and particleDistribution::write().

◆ append() [2/4]

void append ( T &&  val)
inline

Move append an element at the end of the list.

If this is frequently required, consider a DynamicList

Definition at line 185 of file ListI.H.

◆ append() [3/4]

void append ( const UList< T > &  list)
inline

Append a List to the end of this list.

If this is frequently required, consider a DynamicList

Definition at line 195 of file ListI.H.

◆ append() [4/4]

void append ( const IndirectListBase< T, Addr > &  list)
inline

Append IndirectList contents at the end of this list.

If this is frequently required, consider a DynamicList

Definition at line 217 of file ListI.H.

◆ appendUniq()

Foam::label appendUniq ( const T val)
inline

Append an element if not already in the list.

Returns
the change in list length

Definition at line 232 of file ListI.H.

Referenced by polyPatch::polyPatch().

Here is the caller graph for this function:

◆ transfer() [1/3]

void transfer ( List< T > &  list)

Transfer the contents of the argument List into this list and annul the argument list

Definition at line 456 of file List.C.

Referenced by geometric::add(), extendedEdgeMesh::allNearestFeatureEdges(), extendedEdgeMesh::allNearestFeaturePoints(), faceZoneToFaceZone::applyToSet(), setToCellZone::applyToSet(), setToPointZone::applyToSet(), setAndNormalToFaceZone::applyToSet(), setToFaceZone::applyToSet(), searchableSurfaceToFaceZone::applyToSet(), setsToFaceZone::applyToSet(), extendedEdgeMesh::autoMap(), PDRblock::blockMeshDict(), box::box(), polyDualMesh::calcFeatures(), createShellMesh::calcPointRegions(), correctedCellVolumeWeightMethod::calculateAddressing(), cellVolumeWeightMethod::calculateAddressing(), mapNearestMethod::calculateAddressing(), directMethod::calculateAddressing(), CECCellToFaceStencil::CECCellToFaceStencil(), CFCCellToFaceStencil::CFCCellToFaceStencil(), triSurface::compactPoints(), MeshedSurface< Foam::face >::compactPoints(), removeFaces::compatibleRemoves(), CPCCellToFaceStencil::CPCCellToFaceStencil(), distanceSurface::createGeometry(), inverseDistance::createStencil(), geomCellLooper::cut(), topoCellLooper::cut(), extendedEdgeMesh::cut(), cyclicACMIGAMGInterface::cyclicACMIGAMGInterface(), cyclicAMIGAMGInterface::cyclicAMIGAMGInterface(), fvMeshDistribute::distribute(), FECCellToFaceStencil::FECCellToFaceStencil(), triSurfaceSearch::findLineAll(), searchableRotatedBox::findLineAll(), searchableBox::findLineAll(), distributedTriSurfaceMesh::findNearest(), PatchTools::gatherAndMerge(), InjectedParticleInjection< CloudType >::initialise(), InjectedParticleDistributionInjection< CloudType >::initialise(), objectivePtLosses::initialize(), isoSurfaceCell::isoSurfaceCell(), isoSurfacePoint::isoSurfacePoint(), triSurfaceLoader::load(), voxelMeshSearch::makeMesh(), mapDistributeBase::mapDistributeBase(), PatchTools::markZone(), momentOfInertia::massPropertiesPatch(), polyBoundaryMesh::matchGroups(), cellToCellStencil::merge(), fileOperation::mergeTimes(), MeshedSurface< Foam::face >::MeshedSurface(), streamLineParticle::move(), wallBoundedStreamLineParticle::move(), properties::objectResultEntries(), SortableList< T >::operator=(), cellZone::operator=(), pointZone::operator=(), SortableList< T >::partialReverseSort(), SortableList< T >::partialSort(), OBJedgeFormat::read(), List< vectorField >::readList(), UList< Foam::wordRe >::readList(), STARCDCore::readPoints(), edgeMesh::regions(), cuttingSurfaceBase::remapFaces(), faceZone::resetAddressing(), SortableList< T >::reverseSort(), box::setRefineFlags(), hexRef8::setRefinement(), SortableListEFA< Type >::sort(), SortableListDRGEP< Type >::sort(), SortableList< T >::sort(), extendedEdgeMesh::sortPointsAndEdges(), SortableListEFA< Type >::stableSort(), SortableListDRGEP< Type >::stableSort(), PackedList< 2 >::transfer(), trackingInverseDistance::update(), inverseDistance::update(), topoBoolSet::updateLabels(), meshRefinement::updateList(), hexRef8Data::updateMesh(), boundaryCutter::updateMesh(), localPointRegion::updateMesh(), hexRef8::updateMesh(), meshRefinement::updateMesh(), solverFieldSelection::updateSelection(), volFieldSelection::updateSelection(), and fileFieldSelection::updateSelection().

◆ transfer() [2/3]

void transfer ( DynamicList< T, SizeMin > &  list)

Transfer the contents of the argument List into this list and annul the argument list

Definition at line 475 of file List.C.

◆ transfer() [3/3]

void transfer ( SortableList< T > &  list)

Transfer the contents of the argument List into this list and annul the argument list

Definition at line 487 of file List.C.

◆ newElmt()

T & newElmt ( const label  i)
inline

Return subscript-checked element of UList and resizing the list if required.

Definition at line 153 of file ListI.H.

Referenced by Foam::parseStream().

Here is the caller graph for this function:

◆ operator=() [1/12]

void operator= ( const UList< T > &  a)

Assignment to UList operator. Takes linear time.

Definition at line 498 of file List.C.

Referenced by SortableListDRGEP< Type >::operator=(), SortableListEFA< Type >::operator=(), SortableList< T >::operator=(), cellZone::operator=(), pointZone::operator=(), cellClassification::operator=(), ITstream::operator=(), and faceZone::resetAddressing().

Here is the caller graph for this function:

◆ operator=() [2/12]

void operator= ( const List< T > &  list)

Assignment operator. Takes linear time.

Definition at line 534 of file List.C.

◆ operator=() [3/12]

void operator= ( const SLList< T > &  list)

Assignment to SLList operator. Takes linear time.

Definition at line 546 of file List.C.

◆ operator=() [4/12]

void operator= ( const IndirectListBase< T, Addr > &  list)

Assignment from IndirectList. Takes linear time.

Definition at line 583 of file List.C.

◆ operator=() [5/12]

void operator= ( const FixedList< T, N > &  list)

Copy assignment from FixedList.

Definition at line 567 of file List.C.

◆ operator=() [6/12]

void operator= ( std::initializer_list< T list)

Assignment to an initializer list.

Definition at line 602 of file List.C.

◆ operator=() [7/12]

void operator= ( const T val)
inline

Assignment of all entries to the given value.

Definition at line 249 of file ListI.H.

◆ operator=() [8/12]

void operator= ( const Foam::zero  )
inline

Assignment of all entries to zero.

Definition at line 256 of file ListI.H.

◆ operator=() [9/12]

void operator= ( List< T > &&  list)

Move assignment. Takes constant time.

Definition at line 622 of file List.C.

◆ operator=() [10/12]

void operator= ( DynamicList< T, SizeMin > &&  list)

Move assignment. Takes constant time.

Definition at line 635 of file List.C.

◆ operator=() [11/12]

void operator= ( SortableList< T > &&  list)

Move assignment. Takes constant time.

Definition at line 642 of file List.C.

◆ operator=() [12/12]

void operator= ( SLList< T > &&  list)

Move assignment. Takes constant time.

Definition at line 649 of file List.C.

◆ readList() [1/3]

Foam::Istream & readList ( Istream is)

Read List from Istream, discarding contents of existing List.

Definition at line 49 of file ListIO.C.

Referenced by Foam::operator>>(), and decomposedBlockData::readBlockEntry().

Here is the caller graph for this function:

◆ shallowCopy()

void shallowCopy ( const UList< T > &  )
delete

No shallowCopy permitted.

Referenced by ODESolver::resizeField().

Here is the caller graph for this function:

◆ set()

◆ readList() [2/3]

Istream & readList ( Istream is)

Specialized list reading for character lists which always uses binary format.

◆ resize() [3/3]

void resize ( const label  newLen)
inline

Definition at line 131 of file ListI.H.

◆ readList() [3/3]

Istream & readList ( Istream is)

Definition at line 49 of file charList.C.

Friends And Related Function Documentation

◆ operator>>

Istream& operator>> ( Istream is,
List< T > &  list 
)
friend

Use the readList() method to read contents from Istream.

Definition at line 378 of file List.H.


The documentation for this class was generated from the following files: