UList< T > Class Template Reference

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

Inheritance diagram for UList< T >:

Classes

class  greater
 Greater function class that can be used for sorting. More...
 
class  less
 Less function class that can be used for sorting. More...
 

Public Types

typedef T value_type
 Type of values the UList contains. More...
 
typedef Treference
 Type that can be used for storing into. More...
 
typedef const Tconst_reference
 Type that can be used for storing into. More...
 
typedef label difference_type
 The type that can represent the difference between any two. More...
 
typedef label size_type
 The type that can represent the size of a UList. More...
 
typedef Titerator
 Random access iterator for traversing UList. More...
 
typedef const Tconst_iterator
 Random access iterator for traversing UList. More...
 
typedef std::reverse_iterator< iteratorreverse_iterator
 Reverse iterator for reverse traversal of UList. More...
 
typedef std::reverse_iterator< const_iteratorconst_reverse_iterator
 Reverse iterator for reverse traversal of constant UList. More...
 

Public Member Functions

 UList ()
 Null constructor. More...
 
 UList (T *__restrict__ v, label size)
 Construct from components. More...
 
 UList (const UList< T > &)=default
 Copy construct. More...
 
label fcIndex (const label i) const
 Return the forward circular index, i.e. the next index. More...
 
label rcIndex (const label i) const
 Return the reverse circular index, i.e. the previous index. More...
 
std::streamsize byteSize () const
 Return the binary size in number of characters of the UList. More...
 
const Tcdata () const
 Return a const pointer to the first data element,. More...
 
Tdata ()
 Return a pointer to the first data element,. More...
 
Tfirst ()
 Return the first element of the list. More...
 
const Tfirst () const
 Return first element of the list. More...
 
Tlast ()
 Return the last element of the list. More...
 
const Tlast () const
 Return the last element of the list. More...
 
void checkStart (const label start) const
 Check start is within valid range (0 ... size-1) More...
 
void checkSize (const label size) const
 Check size is within valid range (0 ... size) More...
 
void checkIndex (const label i) const
 Check index i is within valid range (0 ... size-1) More...
 
void shallowCopy (const UList< T > &)
 Copy the pointer held by the given UList. More...
 
void deepCopy (const UList< T > &)
 Copy elements of the given UList. More...
 
Toperator[] (const label)
 Return element of UList. More...
 
const Toperator[] (const label) const
 Return element of constant UList. More...
 
 operator const Foam::List< T > & () const
 Allow cast to a const List<T>&. More...
 
void operator= (const T &)
 Assignment of all entries to the given value. More...
 
void operator= (const zero)
 Assignment of all entries to zero. More...
 
iterator begin ()
 Return an iterator to begin traversing the UList. More...
 
iterator end ()
 Return an iterator to end traversing the UList. More...
 
const_iterator cbegin () const
 Return const_iterator to begin traversing the constant UList. More...
 
const_iterator cend () const
 Return const_iterator to end traversing the constant UList. More...
 
const_iterator begin () const
 Return const_iterator to begin traversing the constant UList. More...
 
const_iterator end () const
 Return const_iterator to end traversing the constant UList. More...
 
reverse_iterator rbegin ()
 Return reverse_iterator to begin reverse traversing the UList. More...
 
reverse_iterator rend ()
 Return reverse_iterator to end reverse traversing the UList. More...
 
const_reverse_iterator crbegin () const
 Return const_reverse_iterator to begin reverse traversing the UList. More...
 
const_reverse_iterator crend () const
 Return const_reverse_iterator to end reverse traversing the UList. More...
 
const_reverse_iterator rbegin () const
 Return const_reverse_iterator to begin reverse traversing the UList. More...
 
const_reverse_iterator rend () const
 Return const_reverse_iterator to end reverse traversing the UList. More...
 
label size () const
 Return the number of elements in the UList. More...
 
label max_size () const
 Return size of the largest possible UList. More...
 
bool empty () const
 Return true if the UList is empty (ie, size() is zero) More...
 
void swap (UList< T > &)
 Swap two ULists of the same type in constant time. More...
 
bool operator== (const UList< T > &) const
 Equality operation on ULists of the same type. More...
 
bool operator!= (const UList< T > &) const
 The opposite of the equality operation. Takes linear time. More...
 
bool operator< (const UList< T > &) const
 Compare two ULists lexicographically. Takes linear time. More...
 
bool operator> (const UList< T > &) const
 Compare two ULists lexicographically. Takes linear time. More...
 
bool operator<= (const UList< T > &) const
 Return true if !(a > b). Takes linear time. More...
 
bool operator>= (const UList< T > &) const
 Return true if !(a < b). Takes linear time. More...
 
const bool & operator[] (const label i) const
 

Static Public Member Functions

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

Friends

class List< T >
 Declare friendship with the List class. More...
 
class SubList< T >
 Declare friendship with the SubList class. More...
 
Ostreamoperator (Ostream &, const UList< T > &)
 
Istreamoperator>> (Istream &, UList< T > &)
 Read UList contents from Istream. Requires size to have been set. More...
 

Detailed Description

template<class T>
class Foam::UList< T >

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

Storage is not allocated during construction or use but is supplied to the constructor as an argument. This type of list is particularly useful for lists that refer to parts of existing lists such as SubList.

Source files

Definition at line 73 of file UList.H.

Member Typedef Documentation

◆ value_type

typedef T value_type

Type of values the UList contains.

Definition at line 251 of file UList.H.

◆ reference

typedef T& reference

Type that can be used for storing into.

UList::value_type objects

Definition at line 255 of file UList.H.

◆ const_reference

typedef const T& const_reference

Type that can be used for storing into.

constant UList::value_type objects

Definition at line 259 of file UList.H.

◆ difference_type

The type that can represent the difference between any two.

UList iterator objects

Definition at line 263 of file UList.H.

◆ size_type

typedef label size_type

The type that can represent the size of a UList.

Definition at line 266 of file UList.H.

◆ iterator

typedef T* iterator

Random access iterator for traversing UList.

Definition at line 272 of file UList.H.

◆ const_iterator

typedef const T* const_iterator

Random access iterator for traversing UList.

Definition at line 284 of file UList.H.

◆ reverse_iterator

typedef std::reverse_iterator<iterator> reverse_iterator

Reverse iterator for reverse traversal of UList.

Definition at line 302 of file UList.H.

◆ const_reverse_iterator

typedef std::reverse_iterator<const_iterator> const_reverse_iterator

Reverse iterator for reverse traversal of constant UList.

Definition at line 314 of file UList.H.

Constructor & Destructor Documentation

◆ UList() [1/3]

UList
inline

Null constructor.

Definition at line 33 of file UListI.H.

◆ UList() [2/3]

UList ( T *__restrict__  v,
label  size 
)
inline

Construct from components.

Definition at line 41 of file UListI.H.

◆ UList() [3/3]

UList ( const UList< T > &  )
inlinedefault

Copy construct.

Member Function Documentation

◆ null()

const Foam::UList< T > & null
inlinestatic

Return a null UList.

Definition at line 51 of file UListI.H.

◆ fcIndex()

◆ rcIndex()

Foam::label rcIndex ( const label  i) const
inline

Return the reverse circular index, i.e. the previous index.

which returns to the last at the beginning of the list

Definition at line 65 of file UListI.H.

Referenced by polygonTriangulate::angle(), pointMVCWeight::calcWeights(), Foam::meshCheck::checkCommonOrder(), MPLICface::cutFace(), faceCoupleInfo::faceCoupleInfo(), edgeFaceCirculator::getMinIndex(), and createShellMesh::setRefinement().

Here is the caller graph for this function:

◆ byteSize()

std::streamsize byteSize

Return the binary size in number of characters of the UList.

if the element is a primitive type i.e. contiguous<T>() == true. Note that is of type streamsize since used in stream ops

Definition at line 100 of file UList.C.

References Foam::abort(), Foam::FatalError, FatalErrorInFunction, and Foam::T().

Referenced by distributionMapBase::distribute(), globalIndex::gather(), PatchTools::gatherAndMerge(), Pstream::gatherList(), decomposedBlockData::gatherSlaveData(), List< T >::List(), Pstream::listCombineGather(), Pstream::listCombineScatter(), Foam::meshCheck::mergeAndWrite(), processorLduInterface::receive(), globalIndex::scatter(), Pstream::scatterList(), OFstreamCollator::write(), decomposedBlockData::writeBlocks(), and decomposedBlockData::writeData().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cdata()

const T * cdata
inline

Return a const pointer to the first data element,.

similar to the STL front() method and the string::data() method This can be used (with caution) when interfacing with C code

Definition at line 142 of file UListI.H.

◆ data()

T * data
inline

Return a pointer to the first data element,.

similar to the STL front() method and the string::data() method This can be used (with caution) when interfacing with C code

Definition at line 149 of file UListI.H.

Referenced by mappedInternalPatchBase::calcMapping(), mappedPatchBase::calcMapping(), cellEdgeAddressing::cOwns(), Foam::cwd(), structured::decompose(), decompositionMethod::decompose(), patchProbes::findElements(), RemoteData< Type >::smallestEqOp::operator()(), RemoteData< Type >::smallestFirstEqOp::operator()(), Foam::operator==(), cellsToCellsStabilisation::update(), and patchToPatchStabilisation::update().

Here is the caller graph for this function:

◆ first() [1/2]

T & first
inline

Return the first element of the list.

Definition at line 114 of file UListI.H.

Referenced by preserveBafflesConstraint::add(), bladeModel::bladeModel(), Foam::meshCheck::checkFaceOrthogonality(), Foam::meshCheck::checkFacePyramids(), Foam::meshCheck::checkFaceSkewness(), Foam::meshCheck::checkFaceTets(), Foam::meshCheck::checkFaceWeights(), Foam::meshCheck::checkVolRatio(), TableReader< Type >::convertWrite(), meshRefinement::createZoneBaffles(), Distribution< Type >::cumulativeNormalised(), Distribution< Type >::cumulativeRaw(), DAC< ThermoType >::DAC(), pairPotential::energyTable(), masterUncollatedFileOperation::exists(), Foam::first(), pairPotential::forceTable(), Foam::triIntersect::generateLocations(), patchToPatch::intersectPatchQueue(), irregular::irregular(), phaseChange::Lfraction(), unintegrable::mean(), Distribution< Type >::median(), meshRefinement::mergeBaffles(), Distribution< Type >::normalised(), procLess::operator()(), Foam::operator<(), Foam::operator<<(), Foam::operator==(), Foam::operator>>(), coupledPolyPatch::order(), ParticleCollector< CloudType >::ParticleCollector(), SprayCloud< CloudType >::penetration(), unintegrable::Phi01(), unintegrableForNonZeroQ::Phi01(), BSpline::position(), CatmullRomSpline::position(), Distribution< Type >::raw(), timeControl::read(), Foam::readConfigFile(), Foam::reverse(), primitiveEntry::startLineNumber(), tabulatedCumulative::tabulatedCumulative(), thirdBodyEfficiencies::thirdBodyEfficiencies(), TriPatchIntersection< SrcPatchType, TgtPatchType >::TriPatchIntersection(), linearInterpolationWeights::valueWeights(), stepInterpolationWeights::valueWeights(), populationBalanceSizeDistribution::write(), SizeDistribution< CloudType >::write(), Distribution< Type >::write(), ensightSetWriter::write(), thirdBodyEfficiencies::write(), tabulatedCumulative::write(), tabulatedDensity::write(), pairPotential::writeEnergyAndForceTables(), and residuals::writeResidual().

Here is the caller graph for this function:

◆ first() [2/2]

const T & first
inline

Return first element of the list.

Definition at line 121 of file UListI.H.

◆ last() [1/2]

T & last
inline

Return the last element of the list.

Definition at line 128 of file UListI.H.

Referenced by eagerGAMGProcAgglomeration::agglomerate(), manualGAMGProcAgglomeration::agglomerate(), masterCoarsestGAMGProcAgglomeration::agglomerate(), procFacesGAMGProcAgglomeration::agglomerate(), polyLine::calcParam(), Foam::cutPoly::cellCuts(), MeshedSurface< Face >::checkZones(), surfMesh::checkZones(), processorLduInterface::compressedReceive(), processorLduInterface::compressedSend(), hexRef8::consistentSlowRefinement(), cutPolyIsoSurface::cutPolyIsoSurface(), decompositionMethod::decompositionMethod(), face::edges(), edgeSurface::edgeSurface(), primitiveEntry::endLineNumber(), Foam::cutPoly::faceCuts(), waveSpectrum::fFraction(), Time::findClosestTime(), searchableBox::findLineAll(), searchableExtrudedCircle::findParametricNearest(), globalIndex::gather(), Foam::triIntersect::generateLocations(), FreeStream< CloudType >::inflow(), linearInterpolationWeights::integrationWeights(), stepInterpolationWeights::integrationWeights(), irregular::irregular(), lduPrimitiveMesh::lduPrimitiveMesh(), nonConformalMappedFvPatchBase::map(), unintegrable::mean(), phaseInterface::nameToNameParts(), SprayCloud< CloudType >::penetration(), unintegrable::Phi01(), unintegrableForNonZeroQ::Phi01(), fvMesh::polyBFacePatches(), Foam::polyMeshZipUpCells(), BSpline::position(), CatmullRomSpline::position(), projectCurveEdge::position(), projectEdge::position(), GAMGAgglomeration::procAgglomerateRestrictAddressing(), collatedFileOperation::processorsDir(), nonConformalMappedPolyFacesFvsPatchLabelField::procSizes(), projectFace::project(), timeControl::read(), ITstream::read(), refinementHistory::refinementHistory(), Time::setControls(), specieCoeffs::setLRhs(), addPatchCellLayer::setRefinement(), createShellMesh::setRefinement(), tabulatedCumulative::tabulatedCumulative(), tabulatedDensity::tabulatedDensity(), linearInterpolationWeights::valueWeights(), stepInterpolationWeights::valueWeights(), populationBalanceSizeDistribution::write(), SizeDistribution< CloudType >::write(), tabulatedCumulative::write(), and regIOobject::writeObject().

Here is the caller graph for this function:

◆ last() [2/2]

const T & last
inline

Return the last element of the list.

Definition at line 135 of file UListI.H.

◆ checkStart()

void checkStart ( const label  start) const
inline

Check start is within valid range (0 ... size-1)

Definition at line 72 of file UListI.H.

References Foam::abort(), Foam::FatalError, FatalErrorInFunction, and Foam::max().

Referenced by SubList< T >::SubList().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkSize()

void checkSize ( const label  size) const
inline

Check size is within valid range (0 ... size)

Definition at line 84 of file UListI.H.

References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.

Referenced by SubList< Type >::null(), and SubList< T >::SubList().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkIndex()

void checkIndex ( const label  i) const
inline

Check index i is within valid range (0 ... size-1)

Definition at line 96 of file UListI.H.

References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.

Here is the call graph for this function:

◆ shallowCopy()

◆ deepCopy()

void deepCopy ( const UList< T > &  a)

Copy elements of the given UList.

Definition at line 35 of file UList.C.

References Foam::abort(), Foam::FatalError, FatalErrorInFunction, List_ACCESS, List_CONST_ACCESS, List_ELEM, List_END_FOR_ALL, List_FOR_ALL, and Foam::T().

Referenced by UPstream::allToAll(), and SubList< Type >::operator=().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator[]() [1/3]

◆ operator[]() [2/3]

const T & operator[] ( const label  i) const
inline

Return element of constant UList.

Note that the bool specialisation adds lazy evaluation so reading an out-of-range element returns false without any ill-effects

Definition at line 196 of file UListI.H.

◆ operator const Foam::List< T > &()

operator const Foam::List< T > &
inline

Allow cast to a const List<T>&.

Definition at line 206 of file UListI.H.

◆ operator=() [1/2]

void operator= ( const T t)

Assignment of all entries to the given value.

Definition at line 68 of file UList.C.

References List_ACCESS, List_ELEM, List_END_FOR_ALL, List_FOR_ALL, and Foam::T().

Here is the call graph for this function:

◆ operator=() [2/2]

void operator= ( const  zero)

Assignment of all entries to zero.

Definition at line 78 of file UList.C.

References List_ACCESS, List_ELEM, List_END_FOR_ALL, List_FOR_ALL, Foam::T(), and Foam::Zero.

Here is the call graph for this function:

◆ begin() [1/2]

Foam::UList< T >::iterator begin
inline

Return an iterator to begin traversing the UList.

Definition at line 216 of file UListI.H.

Referenced by UPstream::allToAll(), LduMatrix< Type, DType, LUType >::Amul(), lduMatrix::Amul(), UPtrList< T >::begin(), TDILUPreconditioner< Type, DType, LUType >::calcInvD(), DICPreconditioner::calcReciprocalD(), DILUPreconditioner::calcReciprocalD(), UPtrList< T >::cbegin(), distributionMapBase::compact(), processorLduInterface::compressedReceive(), processorLduInterface::compressedSend(), triSurfaceTools::delaunay2D(), diagonalPreconditioner::diagonalPreconditioner(), DiagonalPreconditioner< Type, DType, LUType >::DiagonalPreconditioner(), distributionMapBase::distribute(), FDICPreconditioner::FDICPreconditioner(), FDICSmoother::FDICSmoother(), decomposedBlockData::gather(), globalIndex::gather(), Pstream::gatherList(), decomposedBlockData::gatherSlaveData(), LduMatrix< Type, DType, LUType >::H(), lduMatrix::H(), lduMatrix::H1(), Pstream::listCombineGather(), Pstream::listCombineScatter(), UList< T >::operator<(), DiagonalPreconditioner< Type, DType, LUType >::precondition(), TDILUPreconditioner< Type, DType, LUType >::precondition(), diagonalPreconditioner::precondition(), DICPreconditioner::precondition(), DILUPreconditioner::precondition(), FDICPreconditioner::precondition(), noPreconditioner::precondition(), TDILUPreconditioner< Type, DType, LUType >::preconditionT(), DILUPreconditioner::preconditionT(), ITstream::print(), masterUncollatedFileOperation::readAndSend(), decomposedBlockData::readMasterHeader(), processorLduInterface::receive(), LduMatrix< Type, DType, LUType >::residual(), lduMatrix::residual(), ODESolver::resizeField(), globalIndex::scatter(), Pstream::scatterList(), processorLduInterface::send(), TGaussSeidelSmoother< Type, DType, LUType >::smooth(), nonBlockingGaussSeidelSmoother::smooth(), GaussSeidelSmoother::smooth(), symGaussSeidelSmoother::smooth(), DICSmoother::smooth(), DILUSmoother::smooth(), FDICSmoother::smooth(), PBiCCCG< Type, DType, LUType >::solve(), PBiCICG< Type, DType, LUType >::solve(), PCICG< Type, DType, LUType >::solve(), PBiCG::solve(), PBiCGStab::solve(), PCG::solve(), Foam::sort(), Foam::stableSort(), LduMatrix< Type, DType, LUType >::sumA(), lduMatrix::sumA(), TGaussSeidelSmoother< Type, DType, LUType >::TGaussSeidelSmoother(), LduMatrix< Type, DType, LUType >::Tmul(), lduMatrix::Tmul(), fft::transform(), ensightBinaryStream::write(), OFstreamCollator::write(), decomposedBlockData::writeBlocks(), and masterOFstream::~masterOFstream().

Here is the caller graph for this function:

◆ end() [1/2]

◆ cbegin()

Foam::UList< T >::const_iterator cbegin
inline

Return const_iterator to begin traversing the constant UList.

Definition at line 232 of file UListI.H.

Referenced by decomposedBlockData::writeData().

Here is the caller graph for this function:

◆ cend()

Foam::UList< T >::const_iterator cend
inline

Return const_iterator to end traversing the constant UList.

Definition at line 240 of file UListI.H.

◆ begin() [2/2]

Foam::UList< T >::const_iterator begin
inline

Return const_iterator to begin traversing the constant UList.

Definition at line 248 of file UListI.H.

◆ end() [2/2]

Foam::UList< T >::const_iterator end
inline

Return const_iterator to end traversing the constant UList.

Definition at line 256 of file UListI.H.

◆ rbegin() [1/2]

Foam::UList< T >::reverse_iterator rbegin
inline

Return reverse_iterator to begin reverse traversing the UList.

Definition at line 264 of file UListI.H.

Referenced by ITstream::print().

Here is the caller graph for this function:

◆ rend() [1/2]

Foam::UList< T >::reverse_iterator rend
inline

Return reverse_iterator to end reverse traversing the UList.

Definition at line 272 of file UListI.H.

◆ crbegin()

Foam::UList< T >::const_reverse_iterator crbegin
inline

Return const_reverse_iterator to begin reverse traversing the UList.

Definition at line 280 of file UListI.H.

◆ crend()

Return const_reverse_iterator to end reverse traversing the UList.

Definition at line 288 of file UListI.H.

◆ rbegin() [2/2]

Return const_reverse_iterator to begin reverse traversing the UList.

Definition at line 296 of file UListI.H.

◆ rend() [2/2]

Return const_reverse_iterator to end reverse traversing the UList.

Definition at line 304 of file UListI.H.

◆ size()

Foam::label size
inline

Return the number of elements in the UList.

Definition at line 311 of file UListI.H.

Referenced by fvMatrix< Type >::addToInternalField(), MeshedSurface< Face >::addZones(), pairGAMGAgglomeration::agglomerate(), GAMGAgglomeration::agglomerateLduAddressing(), cellToCellStencil::allCoupledFacesPatch(), cellToFaceStencil::allCoupledFacesPatch(), UPstream::allToAll(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), List< T >::append(), DynamicField< T, SizeInc, SizeMult, SizeDiv >::append(), Foam::average(), coupledPolyPatch::calcFaceTol(), symmetryPlanePolyPatch::calcGeometry(), wedgePolyPatch::calcGeometry(), viewFactor::calculate(), Foam::cutPoly::cellCuts(), cellEdgeAddressingData::cellEdgeAddressingData(), FixedList< label, 6 >::cend(), Foam::meshCheck::checkGeometry(), hexRef8::checkMesh(), Foam::checkNonConformalCoupledPatchOrdering(), GAMGAgglomeration::checkRestriction(), Foam::meshCheck::checkTopology(), ORourkeCollision< CloudType >::collide(), GAMGAgglomeration::compactLevels(), globalMeshData::coupledPatch(), Keyed< T >::createList(), directions::directions(), Foam::duplicateOrder(), HashTable< T, Key, Hash >::erase(), Pstream::exchange(), regionSizeDistribution::extractData(), FaceCellWave< Type, TrackingData >::FaceCellWave(), LduMatrix< Type, DType, LUType >::faceH(), lduMatrix::faceH(), patchProbes::findElements(), Foam::meshCheck::findOppositeWedge(), FixedList< T, Size >::FixedList(), distributionMapBase::flipAndCombine(), FreeStream< CloudType >::FreeStream(), meshRefinement::gAverage(), FaceCellWave< Type, TrackingData >::handleCyclicPatches(), FaceCellWave< Type, TrackingData >::handleProcPatches(), HashTable< T, Key, Hash >::HashTable(), Foam::Im(), Foam::ImComplexField(), coupledPolyPatch::initOrder(), Foam::inplaceSubset(), surfaceInterpolationScheme< scalar >::interpolate(), lduPrimitiveMesh::lduPrimitiveMesh(), meshRefinement::makePatch(), Foam::matchPoints(), MeshedSurface< face >::MeshedSurface(), LduMatrix< Type, DType, LUType >::negSumDiag(), lduMatrix::negSumDiag(), polyPatch::New(), Foam::operator<<(), PackedBoolList::operator=(), PackedList< nBits >::operator=(), BiIndirectList< T >::operator=(), UIndirectList< T >::operator=(), coupledPolyPatch::order(), pairPatchAgglomeration::pairPatchAgglomeration(), PatchEdgeFaceWave< PrimitivePatchType, Type, TrackingData >::PatchEdgeFaceWave(), mappedExtrudedPatchBase::patchFaceAreas(), nonConformalBoundary::patchPointOwnerOrigBoundaryPoints(), polyPatch::patchSlice(), patchZones::patchZones(), PointEdgeWave< Type, TrackingData >::PointEdgeWave(), Foam::polyMeshUnMergeCyclics(), Polynomial< PolySize >::Polynomial(), star::populate(), Foam::primitivePatchGetHalves(), Foam::primitivePatchGetZones(), fvMeshDistribute::printMeshInfo(), Foam::Re(), repatchMesh::read(), ensightParts::recalculate(), Foam::ReComplexField(), Foam::ReImSum(), ensightPart::renumber(), PtrList< T >::reorder(), UPtrList< T >::reorder(), Foam::repeat(), Foam::reverse(), patchInjectionBase::setPositionAndCell(), perfectInterface::setRefinement(), CompactListList< T >::setSize(), UnsortedMeshedSurface< Face >::setZones(), PtrList< T >::shuffle(), UPtrList< T >::shuffle(), fvPatch::size(), Foam::sortedOrder(), Foam::subset(), fvMatrix< Type >::subtractFromInternalField(), Foam::sumCmptProd(), LduMatrix< Type, DType, LUType >::sumDiag(), lduMatrix::sumDiag(), LduMatrix< Type, DType, LUType >::sumMagOffDiag(), lduMatrix::sumMagOffDiag(), Foam::sumProd(), syncTools::swapBoundaryCellList(), syncTools::swapBoundaryCellPositions(), syncTools::syncBoundaryFaceList(), syncTools::syncFaceList(), meshRefinement::testSyncBoundaryFaceList(), FreeStream< CloudType >::topoChange(), patchInjectionBase::topoChange(), Foam::transform(), triSurfaceTools::triangulate(), triSurfaceTools::triangulateFaceCentre(), UnsortedMeshedSurface< Face >::UnsortedMeshedSurface(), patch::update(), patchToPatchStabilisation::update(), movingWallVelocityFvPatchVectorField::updateCoeffs(), polyBoundaryMesh::whichPatch(), decomposedBlockData::writeBlocks(), ensightPartFaces::writeConnectivity(), VTKedgeFormat::writeEdges(), ensightPart::writeField(), WRLsurfaceFormatCore::writeHeader(), OFSsurfaceFormatCore::writeHeader(), AC3DsurfaceFormatCore::writeHeader(), Foam::meshTools::writeOBJ(), ensightPart::writeScalarField(), VTKsurfaceFormatCore::writeTail(), and ensightPart::writeVectorField().

Here is the caller graph for this function:

◆ max_size()

Foam::label max_size
inline

Return size of the largest possible UList.

Definition at line 318 of file UListI.H.

◆ empty()

bool empty
inline

Return true if the UList is empty (ie, size() is zero)

Definition at line 325 of file UListI.H.

Referenced by dynamicIndexedOctree< Type >::bb(), indexedOctree< Type >::bb(), boundBox::boundBox(), cellMapper::cellMapper(), triSurface::checkEdges(), Foam::meshCheck::checkPoints(), Foam::meshCheck::checkTopology(), boundBox::contains(), boundBox::containsAny(), dynamicCode::copyOrCreateFiles(), hexCellLooper::cut(), edgeSurface::edgeSurface(), primitiveEntry::endLineNumber(), fieldsExpression::execute(), faceMapper::faceMapper(), searchableSurfacesQueries::findAllIntersections(), Foam::findEtcFiles(), triSurfaceRegionSearch::findNearest(), searchableSurfacesQueries::findNearest(), Foam::triIntersect::generateLocations(), Distribution< Type >::index(), cyclicPolyPatch::initOrder(), intersectedSurface::intersectedSurface(), patchToPatch::intersectPatches(), Foam::inv(), LocalInteraction< CloudType >::LocalInteraction(), triSurface::markZone(), PatchTools::markZone(), Distribution< Type >::normalised(), dlLibraryTable::open(), cyclicPolyPatch::order(), triSurfaceMesh::overlaps(), ParticleErosion< CloudType >::ParticleErosion(), PatchPostProcessing< CloudType >::PatchPostProcessing(), polyBoundaryMesh::patchSet(), pointMapper::pointMapper(), Distribution< Type >::raw(), repatchMesh::readTriSurface(), edgeIntersections::removeDegenerates(), timeSelector::select0(), seriesProfile::seriesProfile(), specieCoeffs::setLRhs(), fieldsExpression::setResultName(), combineFaces::setUnrefinement(), SingleKineticRateDevolatilisation< CloudType >::SingleKineticRateDevolatilisation(), primitiveEntry::startLineNumber(), surfaceIntersection::surfaceIntersection(), Cloud< ParticleType >::topoChange(), probes::topoChange(), treeBoundBox::treeBoundBox(), walkPatch::walkPatch(), and writeObjectsBase::write().

Here is the caller graph for this function:

◆ swap()

void swap ( UList< T > &  a)

Swap two ULists of the same type in constant time.

Definition at line 90 of file UList.C.

References Foam::Swap().

Here is the call graph for this function:

◆ operator==()

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

Equality operation on ULists of the same type.

Returns true when the ULists are element-wise equal (using UList::value_type::operator==). Takes linear time

Definition at line 145 of file UList.C.

References Foam::equal(), List_CONST_ACCESS, List_ELEM, List_END_FOR_ALL, List_FOR_ALL, and Foam::T().

Referenced by labelRanges::const_iterator::operator!=().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator!=()

bool operator!= ( const UList< T > &  a) const

The opposite of the equality operation. Takes linear time.

Definition at line 166 of file UList.C.

References Foam::operator==().

Here is the call graph for this function:

◆ operator<()

bool operator< ( const UList< T > &  a) const

Compare two ULists lexicographically. Takes linear time.

Definition at line 173 of file UList.C.

References UList< T >::begin(), and UList< T >::end().

Here is the call graph for this function:

◆ operator>()

bool operator> ( const UList< T > &  a) const

Compare two ULists lexicographically. Takes linear time.

Definition at line 204 of file UList.C.

References UList< T >::operator.

◆ operator<=()

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

Return true if !(a > b). Takes linear time.

Definition at line 211 of file UList.C.

References Foam::operator>().

Here is the call graph for this function:

◆ operator>=()

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

Return true if !(a < b). Takes linear time.

Definition at line 218 of file UList.C.

References Foam::operator<().

Here is the call graph for this function:

◆ operator[]() [3/3]

const bool & operator[] ( const label  i) const
inline

Definition at line 180 of file UListI.H.

Friends And Related Function Documentation

◆ List< T >

friend class List< T >
friend

Declare friendship with the List class.

Definition at line 94 of file UList.H.

◆ SubList< T >

friend class SubList< T >
friend

Declare friendship with the SubList class.

Definition at line 94 of file UList.H.

◆ operator

◆ operator>>

Istream& operator>> ( Istream ,
UList< T > &   
)
friend

Read UList contents from Istream. Requires size to have been set.

before


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