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...

Inherited by List< T >, pTraits< UList< T > >, SubList< T >, List< bool >, List< cell >, List< cellShape >, List< CGAL::indexedVertex >, List< char >, List< const Foam::cellModel *>, List< const Foam::Field *>, List< const Foam::UList *>, List< const label *>, List< const lduInterface *>, List< const lduInterfaceField *>, List< const LduInterfaceField< Type > *>, List< corrResidualData >, List< edge >, List< Face >, List< faceList >, List< FaceType >, List< Field< scalar > >, List< Field< Type > >, List< Foam::boundBox >, List< Foam::cellModel *>, List< Foam::diameterModels::sizeGroup *>, List< Foam::diameterModels::velocityGroup *>, List< Foam::dictionary >, List< Foam::DynamicList< char > >, List< Foam::DynamicList< Foam::List > >, List< Foam::DynamicList< Foam::molecule *> >, List< Foam::DynamicList< Foam::string > >, List< Foam::DynamicList< Foam::Vector > >, List< Foam::DynamicList< label > >, List< Foam::DynamicList< ParcelType *> >, List< Foam::DynamicList< parcelType *> >, List< Foam::DynamicList< scalar > >, List< Foam::face >, List< Foam::faceSets >, List< Foam::Field >, List< Foam::Field< Foam::Vector > >, List< Foam::Field< Type > *>, List< Foam::FixedList< label, 3 > >, List< Foam::FixedList< label, 4 > >, List< Foam::FixedList< scalar, 3 > >, List< Foam::fvFieldDecomposer::patchFieldDecomposer *>, List< Foam::fvFieldDecomposer::processorVolPatchFieldDecomposer *>, List< Foam::GeometricField *>, List< Foam::gradingDescriptors >, List< Foam::ILList< Foam::molecule > >, List< Foam::ILList< ParticleType > >, List< Foam::ILList< typename CloudType::parcelType > >, List< Foam::indexedOctree::node >, List< Foam::List >, List< Foam::List< Foam::Field< scalar > > >, List< Foam::List< Foam::List< scalar > > >, List< Foam::List< Foam::meshReader::cellFaceIdentifier > >, List< Foam::List< Foam::specieElement > >, List< Foam::List< Foam::treeBoundBox > >, List< Foam::List< Foam::Vector > >, List< Foam::List< Key > >, List< Foam::List< label > >, List< Foam::List< scalar > >, List< Foam::List< T > >, List< Foam::molecule::constantProperties >, List< Foam::objectHit >, List< Foam::objectMap >, List< Foam::PackedBoolList >, List< Foam::Pair >, List< Foam::Pair< Foam::word > >, List< Foam::phasePairKey >, List< Foam::phaseProperties >, List< Foam::pointConstraint >, List< Foam::pointFieldDecomposer::patchFieldDecomposer *>, List< Foam::PointIndexHit >, List< Foam::PtrList< Foam::Function2< scalar > > >, List< Foam::referredWallFace >, List< Foam::searchableSurface *>, List< Foam::SHA1Digest >, List< Foam::spatialTransform >, List< Foam::SpatialVector >, List< Foam::specieCoeffs >, List< Foam::surfZone >, List< Foam::surfZoneIdentifier >, List< Foam::Tensor >, List< Foam::token >, List< Foam::topoDistanceData >, List< Foam::transformer >, List< Foam::Tuple2< Foam::word, Foam::Tuple2< bool, scalar > > >, List< Foam::Tuple2< Foam::word, Foam::word > >, List< Foam::Tuple2< Foam::word, label > >, List< Foam::Tuple2< Foam::word, scalar > >, List< Foam::Tuple2< label, Foam::List< Foam::List > > >, List< Foam::Tuple2< label, scalar > >, List< Foam::Tuple2< mapType, Foam::List > >, List< Foam::Tuple2< scalar, Foam::fileName > >, List< Foam::Tuple2< scalar, scalar > >, List< Foam::Tuple2< scalar, Type > >, List< Foam::Tuple2< Type, Type > >, List< Foam::VectorSpace >, List< Foam::volumeType >, List< Foam::word >, List< geometricSurfacePatch >, List< gradingDescriptor >, List< instant >, List< int >, List< label >, List< labelledTri >, List< labelList >, List< labelListList >, List< lduScheduleEntry >, List< List< pointIndexHit > >, List< List< scalar > >, List< mergeFace >, List< mergeInfo >, List< momentumParcelInjectionData >, List< patchInteractionData >, List< phaseModel *>, List< polyDecomp >, List< reactingMultiphaseParcelInjectionData >, List< reactingParcelInjectionData >, List< refineCell >, List< refineMode >, List< residualData >, List< scalarField >, List< scalarList >, List< scalarRange >, List< sideVolumeType >, List< string >, List< substance >, List< surfAndLabel >, List< T *>, List< thermoParcelInjectionData >, List< treeBoundBox >, List< triFace >, List< typename ParcelType::constantProperties >, List< unsigned int >, List< vector >, List< vectorField >, List< volatileData >, List< vtkTextActor *>, List< word >, and List< wordRe >.

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...
 
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...
 
template<>
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 60 of file HashTable.H.

Member Typedef Documentation

◆ value_type

typedef T value_type

Type of values the UList contains.

Definition at line 248 of file UList.H.

◆ reference

typedef T& reference

Type that can be used for storing into.

UList::value_type objects

Definition at line 252 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 256 of file UList.H.

◆ difference_type

The type that can represent the difference between any two.

UList iterator objects

Definition at line 260 of file UList.H.

◆ size_type

typedef label size_type

The type that can represent the size of a UList.

Definition at line 263 of file UList.H.

◆ iterator

typedef T* iterator

Random access iterator for traversing UList.

Definition at line 269 of file UList.H.

◆ const_iterator

typedef const T* const_iterator

Random access iterator for traversing UList.

Definition at line 281 of file UList.H.

◆ reverse_iterator

typedef std::reverse_iterator<iterator> reverse_iterator

Reverse iterator for reverse traversal of UList.

Definition at line 299 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 311 of file UList.H.

Constructor & Destructor Documentation

◆ UList() [1/2]

UList ( )
inline

Null constructor.

Definition at line 33 of file UListI.H.

Referenced by UList< T >::greater::operator()().

Here is the caller graph for this function:

◆ UList() [2/2]

UList ( T *__restrict__  v,
label  size 
)
inline

Construct from components.

Definition at line 41 of file UListI.H.

Member Function Documentation

◆ null()

const Foam::UList< T > & null ( )
inlinestatic

Return a null UList.

Definition at line 51 of file UListI.H.

Referenced by generalFieldMapper::directAddressing(), ensightPart::writeScalarField(), and ensightPart::writeVectorField().

Here is the caller graph for this function:

◆ fcIndex()

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

Return the forward circular index, i.e. the next index.

which returns to the first at the end of the list

Definition at line 58 of file UListI.H.

Referenced by polygonTriangulate::angle(), face::area(), face::average(), pointMVCWeight::calcWeights(), tetOverlapVolume::cellCellOverlapMinDecomp(), tetOverlapVolume::cellCellOverlapVolumeMinDecomp(), face::centre(), primitiveMesh::checkCommonOrder(), primitiveMesh::checkEdgeLength(), Foam::polyMeshCheck::checkFaceAngles(), edgeCollapser::checkMeshQuality(), Foam::polyMeshCheck::checkTriangleTwist(), MPLICface::cutFace(), face::edgeDirection(), primitiveMeshTools::faceConcavity(), face::faceEdge(), primitiveMesh::faceEdges(), hexRef8::faceLevel(), mappedPatchBase::facePoint(), tetIndices::faceTriIs(), searchableSurfacesQueries::findNearest(), edgeFaceCirculator::getMinIndex(), combineFaces::getOutsideFace(), face::inertia(), NamedEnum< compressibleField, 8 >::names(), face::nextLabel(), polygonTriangulate::nIntersections(), minEqOpFace::operator()(), listPlusEqOp< T >::operator()(), ifEqEqOp< value >::operator()(), UList< T >::greater::operator()(), triSurfaceTools::otherEdges(), treeDataFace::overlaps(), Foam::primitivePatchGetZones(), polygonTriangulate::randomPolygon(), OBJsurfaceFormat< Face >::read(), OFFsurfaceFormat< Face >::read(), AC3DsurfaceFormat< Face >::read(), VTKsurfaceFormat< Face >::read(), snappySnapDriver::repatchToSurface(), faceCollapser::setRefinement(), tetDecomposer::setRefinement(), createShellMesh::setRefinement(), addPatchCellLayer::setRefinement(), meshRefinement::splitFaces(), syncTools::syncEdgeMap(), MeshedSurface< Foam::face >::triangulate(), triSurfaceTools::triangulateFaceCentre(), patchEdgeFaceRegions::updateEdge(), and patchEdgeFaceRegions::updateFace().

◆ rcIndex()

◆ byteSize()

std::streamsize byteSize ( ) const

◆ cdata()

const T * cdata ( ) const
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.

Referenced by UList< T >::greater::operator()(), ISstream::read(), and PackedList< 2 >::write().

Here is the caller graph for this function:

◆ 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 patchDataWave< TransferType >::correct(), Foam::cwd(), decompositionMethod::decompose(), List< Field< scalar > >::List(), UList< T >::greater::operator()(), ISstream::read(), PackedList< 2 >::read(), and Foam::writeEntry().

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::polyMeshCheck::checkFaceAngles(), Foam::polyMeshCheck::checkFaceDotProduct(), Foam::polyMeshCheck::checkFacePyramids(), Foam::polyMeshCheck::checkFaceSkewness(), Foam::polyMeshCheck::checkFaceTets(), Foam::polyMeshCheck::checkFaceWeights(), edgeCollapser::checkMeshQuality(), Foam::polyMeshCheck::checkVolRatio(), meshRefinement::createZoneBaffles(), Distribution< Type >::cumulativeNormalised(), Distribution< Type >::cumulativeRaw(), Reaction< ReactionThermo >::dwdc(), masterUncollatedFileOperation::exists(), primitiveMeshTools::faceConcavity(), patchProbes::findElements(), mappedPatchBase::findSamples(), cell::labels(), distribution::median(), Distribution< Type >::median(), meshRefinement::mergeBaffles(), distribution::normalised(), Distribution< Type >::normalised(), distribution::normalisedShifted(), procLess::operator()(), listPlusEqOp< T >::operator()(), UList< T >::greater::operator()(), Distribution< Type >::operator=(), coupledPolyPatch::order(), ParticleCollector< CloudType >::ParticleCollector(), SprayCloud< Foam::DSMCCloud >::penetration(), BSpline::position(), CatmullRomSpline::position(), polyLine::position(), distribution::raw(), Distribution< Type >::raw(), ITstream::rewind(), primitiveEntry::startLineNumber(), Distribution< Type >::write(), pairPotential::writeEnergyAndForceTables(), residuals::writeResidual(), and RaviPetersen::~RaviPetersen().

Here is the caller graph for this function:

◆ first() [2/2]

const T & first ( ) const
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 masterCoarsestGAMGProcAgglomeration::agglomerate(), eagerGAMGProcAgglomeration::agglomerate(), manualGAMGProcAgglomeration::agglomerate(), procFacesGAMGProcAgglomeration::agglomerate(), polyLine::calcParam(), Foam::polyMeshCheck::checkFaceAngles(), edgeCollapser::checkMeshQuality(), MeshedSurface< Foam::face >::checkZones(), surfMesh::checkZones(), processorLduInterface::compressedReceive(), processorLduInterface::compressedSend(), decompositionMethod::decompositionMethod(), face::edges(), edgeSurface::edgeSurface(), primitiveEntry::endLineNumber(), ifeqEntry::execute(), primitiveMeshTools::faceConcavity(), Time::findClosestTime(), searchableBox::findLineAll(), searchableExtrudedCircle::findParametricNearest(), globalIndex::gather(), FreeStream< CloudType >::inflow(), distribution::insertMissingKeys(), lduPrimitiveMesh::lduPrimitiveMesh(), NamedEnum< compressibleField, 8 >::names(), procLess::operator()(), UList< T >::greater::operator()(), SprayCloud< Foam::DSMCCloud >::penetration(), BSpline::position(), CatmullRomSpline::position(), projectCurveEdge::position(), projectEdge::position(), polyLine::position(), GAMGAgglomeration::procAgglomerateRestrictAddressing(), collatedFileOperation::processorsDir(), ITstream::read(), ISstream::read(), regIOobject::readHeaderOk(), regIOobject::readIfModified(), Time::setControls(), surfaceFeatures::setFromStatus(), hexRef8::setInstance(), specieCoeffs::setLRhs(), patchInjectionBase::setPositionAndCell(), createShellMesh::setRefinement(), addPatchCellLayer::setRefinement(), globalIndex::size(), triSurface::triSurfInstance(), and RaviPetersen::~RaviPetersen().

Here is the caller graph for this function:

◆ last() [2/2]

const T & last ( ) const
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.

Referenced by UList< T >::greater::operator()(), and SubList< Type >::SubList().

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.

Referenced by UList< T >::greater::operator()(), and SubList< Type >::SubList().

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.

Referenced by UList< T >::greater::operator()().

Here is the caller graph for this function:

◆ shallowCopy()

void shallowCopy ( const UList< T > &  a)
inline

Copy the pointer held by the given UList.

Definition at line 156 of file UListI.H.

Referenced by UList< T >::greater::operator()(), and ODESolver::resizeField().

Here is the caller graph for this function:

◆ deepCopy()

void deepCopy ( const UList< T > &  a)

Copy elements of the given UList.

Definition at line 35 of file UList.C.

Referenced by UPstream::allToAll(), UList< T >::greater::operator()(), and globalIndex::scatter().

Here is the caller graph for this function:

◆ operator[]() [1/3]

T & operator[] ( const label  i)
inline

Return element of UList.

Definition at line 167 of file UListI.H.

Referenced by labelRanges::add(), DynamicField< T, SizeInc, SizeMult, SizeDiv >::append(), face::average(), triSurfaceMesh::boundingSpheres(), face::collapse(), triSurface::curvature(), triSurface::faces(), cellClassification::fillHangingCells(), cellClassification::fillRegionEdges(), cellClassification::fillRegionPoints(), triSurfaceMesh::getRegion(), distributedTriSurfaceMesh::getRegion(), cellClassification::growSurface(), hashedWordList::hashedWordList(), sortLabelledTri::indices(), interpolationLookUpTable::interpolationLookUpTable(), gradingDescriptors::inv(), interpolationLookUpTable::lookUp(), edgeIntersections::merge(), mixture::mixture(), face::nextLabel(), UList< T >::greater::operator()(), DynamicField< T, SizeInc, SizeMult, SizeDiv >::operator()(), PackedList< 2 >::operator=(), hashedWordList::operator[](), interpolationLookUpTable::operator[](), cellShape::points(), face::points(), face::prevLabel(), probes::probe(), ITstream::read(), labelRanges::remove(), DynamicField< T, SizeInc, SizeMult, SizeDiv >::remove(), PackedList< 2 >::resize(), SortableList< T >::reverseSort(), scalarRanges::selected(), timeSelector::selected(), PackedList< 2 >::setCapacity(), DynamicField< T, SizeInc, SizeMult, SizeDiv >::setSize(), SortableList< T >::sort(), sortLabelledTri::sortLabelledTri(), cellClassification::trimCutCells(), primitiveEntry::write(), and triSurface::writeStats().

Here is the caller graph for this function:

◆ 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 > & ( ) const
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.

◆ operator=() [2/2]

void operator= ( const zero  )

Assignment of all entries to zero.

Definition at line 78 of file UList.C.

◆ 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::Amul(), TDILUPreconditioner< Type, DType, LUType >::calcInvD(), DICPreconditioner::calcReciprocalD(), DILUPreconditioner::calcReciprocalD(), mapDistributeBase::compact(), processorLduInterface::compressedReceive(), processorLduInterface::compressedSend(), triSurfaceTools::delaunay2D(), mapDistributeBase::distribute(), globalIndex::gather(), decomposedBlockData::gather(), Pstream::gatherList(), decomposedBlockData::gatherSlaveData(), lduMatrix::H(), lduMatrix::H1(), Pstream::listCombineGather(), Pstream::listCombineScatter(), LUscalarMatrix::LUscalarMatrix(), UList< Foam::wordRe >::operator<(), SortableListDRGEP< Type >::partialSort(), SortableListEFA< Type >::partialSort(), noPreconditioner::precondition(), DICPreconditioner::precondition(), DILUPreconditioner::precondition(), diagonalPreconditioner::precondition(), FDICPreconditioner::precondition(), DILUPreconditioner::preconditionT(), ITstream::print(), masterUncollatedFileOperation::readAndSend(), decomposedBlockData::readMasterHeader(), processorLduInterface::receive(), lduMatrix::residual(), ODESolver::resizeField(), globalIndex::scatter(), processorLduInterface::send(), Foam::shuffle(), GaussSeidelSmoother::smooth(), symGaussSeidelSmoother::smooth(), TGaussSeidelSmoother< Type, DType, LUType >::smooth(), DILUSmoother::smooth(), DICSmoother::smooth(), FDICSmoother::smooth(), nonBlockingGaussSeidelSmoother::smooth(), PBiCCCG< Type, DType, LUType >::solve(), PBiCICG< Type, DType, LUType >::solve(), PCICG< Type, DType, LUType >::solve(), PCG::solve(), PBiCG::solve(), PBiCGStab::solve(), Foam::sort(), Foam::stableSort(), lduMatrix::sumA(), TGaussSeidelSmoother< Type, DType, LUType >::TGaussSeidelSmoother(), lduMatrix::Tmul(), fft::transform(), ensightBinaryStream::write(), OFstreamCollator::write(), decomposedBlockData::writeBlocks(), masterOFstream::~masterOFstream(), and UOPstream::~UOPstream().

◆ end() [1/2]

◆ cbegin()

Foam::UList< T >::const_iterator cbegin ( ) const
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 ( ) const
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 ( ) const
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 ( ) const
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 ( ) const
inline

Return const_reverse_iterator to begin reverse traversing the UList.

Definition at line 280 of file UListI.H.

◆ crend()

Foam::UList< T >::const_reverse_iterator crend ( ) const
inline

Return const_reverse_iterator to end reverse traversing the UList.

Definition at line 288 of file UListI.H.

◆ rbegin() [2/2]

Foam::UList< T >::const_reverse_iterator rbegin ( ) const
inline

Return const_reverse_iterator to begin reverse traversing the UList.

Definition at line 296 of file UListI.H.

◆ rend() [2/2]

Foam::UList< T >::const_reverse_iterator rend ( ) const
inline

Return const_reverse_iterator to end reverse traversing the UList.

Definition at line 304 of file UListI.H.

◆ size()

Foam::label size ( ) const
inline

Return the number of elements in the UList.

Definition at line 311 of file UListI.H.

Referenced by mapDistributeBase::accessAndFlip(), fvMatrix< Type >::addToInternalField(), MeshedSurface< Foam::face >::addZones(), pairGAMGAgglomeration::agglomerate(), GAMGAgglomeration::agglomerateLduAddressing(), UPstream::allToAll(), DynamicList< Foam::triFace >::append(), DynamicField< T, SizeInc, SizeMult, SizeDiv >::append(), List< Field< scalar > >::append(), Foam::average(), coupledPolyPatch::calcFaceTol(), edgeCollapser::checkMeshQuality(), GAMGAgglomeration::checkRestriction(), Foam::cmptAv(), Foam::cmptMag(), Foam::cmptMax(), Foam::cmptMin(), meshRefinement::collectAndPrint(), ORourkeCollision< CloudType >::collide(), GAMGAgglomeration::compactLevels(), Foam::ComplexField(), processorLduInterface::compressedReceive(), processorLduInterface::compressedSend(), Keyed< T >::createList(), directFvPatchFieldMapper::directFvPatchFieldMapper(), directPointPatchFieldMapper::directPointPatchFieldMapper(), Foam::duplicateOrder(), HashTable< Pair< autoPtr< interfaceCompositionModel > >, phasePairKey, phasePairKey::hash >::erase(), Pstream::exchange(), regionSizeDistribution::extractData(), FaceCellWave< Type, TrackingData >::FaceCellWave(), lduMatrix::faceH(), LduMatrix< Type, DType, LUType >::faceH(), Foam::facePointN(), FixedList< Type, 3 >::FixedList(), mapDistributeBase::flipAndCombine(), globalIndex::gather(), Foam::gAverage(), meshRefinement::gAverage(), Foam::Im(), Foam::ImComplexField(), Foam::inplaceSubset(), cyclicAMIGAMGInterface::internalFieldTransfer(), regionCoupledFvPatch::internalFieldTransfer(), regionCoupledWallFvPatch::internalFieldTransfer(), surfaceInterpolationScheme< GType >::interpolate(), AMIInterpolation::interpolateToSource(), AMIInterpolation::interpolateToTarget(), Foam::inv(), cell::labels(), lduPrimitiveMesh::lduPrimitiveMesh(), LduMatrix< Type, DType, LUType >::lower(), Foam::mag(), Foam::magSqr(), Field< PointType >::map(), fvFieldDecomposer::mapField(), Foam::matchPoints(), Foam::max(), Foam::maxMagSqr(), Foam::mergePoints(), MeshedSurface< Foam::face >::MeshedSurface(), Foam::min(), Foam::minMagSqr(), LduMatrix< Type, DType, LUType >::negSumDiag(), lduMatrix::negSumDiag(), procLess::operator()(), lessProcPatches::operator()(), UList< T >::greater::operator()(), Foam::operator<<(), BiIndirectList< T >::operator=(), UIndirectList< Foam::Vector >::operator=(), PackedBoolList::operator=(), DynamicList< Foam::triFace >::operator=(), FixedList< Type, 3 >::operator=(), PackedList< 2 >::operator=(), fvFieldDecomposer::patchFieldDecomposer::patchFieldDecomposer(), Polynomial< 8 >::Polynomial(), Foam::pow(), polygonTriangulate::randomPolygon(), Foam::Re(), OBJsurfaceFormat< Face >::read(), OFFsurfaceFormat< Face >::read(), Foam::ReComplexField(), fvFieldReconstructor::reconstructFvSurfaceField(), fvFieldReconstructor::reconstructFvVolumeField(), Foam::ReImSum(), UnsortedMeshedSurface< Face >::remapFaces(), cuttingPlane::remapFaces(), MeshedSurface< Foam::face >::remapFaces(), ensightPart::renumber(), UPtrList< Foam::diameterModels::velocityGroup >::reorder(), PtrList< transferModel >::reorder(), Foam::reverse(), CompactListList< T, Container >::setSize(), UnsortedMeshedSurface< Face >::setZones(), UPtrList< Foam::diameterModels::velocityGroup >::shuffle(), PtrList< transferModel >::shuffle(), directPointPatchFieldMapper::size(), Foam::sortedOrder(), Foam::sqr(), Foam::stabilise(), Foam::subset(), fvMatrix< Type >::subtractFromInternalField(), Foam::sum(), Foam::sumCmptMag(), Foam::sumCmptProd(), LduMatrix< Type, DType, LUType >::sumDiag(), lduMatrix::sumDiag(), Foam::sumMag(), LduMatrix< Type, DType, LUType >::sumMagOffDiag(), lduMatrix::sumMagOffDiag(), Foam::sumProd(), Foam::sumSqr(), syncTools::swapBoundaryCellList(), syncTools::swapBoundaryCellPositions(), syncTools::syncBoundaryFaceList(), meshRefinement::testSyncBoundaryFaceList(), Foam::transform(), polygonTriangulate::triangulate(), UnsortedMeshedSurface< Face >::UnsortedMeshedSurface(), patch::update(), cylindrical::updatePoints(), LduMatrix< Type, DType, LUType >::upper(), decomposedBlockData::writeBlocks(), ensightPartFaces::writeConnectivity(), VTKedgeFormat::writeEdges(), Foam::writeEntry(), ensightPart::writeField(), WRLsurfaceFormatCore::writeHeader(), OFSsurfaceFormatCore::writeHeader(), AC3DsurfaceFormatCore::writeHeader(), Foam::meshTools::writeOBJ(), ensightPart::writeScalarField(), VTKsurfaceFormatCore::writeTail(), ensightPart::writeVectorField(), and ensightPartCells::~ensightPartCells().

◆ max_size()

Foam::label max_size ( ) const
inline

Return size of the largest possible UList.

Definition at line 318 of file UListI.H.

◆ empty()

bool empty ( ) const
inline

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

Definition at line 325 of file UListI.H.

Referenced by DynamicID< meshPointZones >::active(), labelRanges::add(), dynamicIndexedOctree< Foam::dynamicTreeDataPoint >::bb(), indexedOctree< Foam::treeDataFace >::bb(), boundBox::boundBox(), cellVolumeWeightMethod::calculateAddressing(), cellMapper::cellMapper(), triSurface::checkEdges(), edgeCollapser::checkMeshQuality(), primitiveMesh::checkPoints(), labelRanges::const_iterator::const_iterator(), boundBox::contains(), boundBox::containsAny(), dynamicCode::copyOrCreateFiles(), hexCellLooper::cut(), fvSchemes::d2dt2Scheme(), fvSchemes::ddtScheme(), fvSchemes::divScheme(), edgeSurface::edgeSurface(), primitiveEntry::endLineNumber(), fieldsExpression::execute(), faceMapper::faceMapper(), searchableSurfacesQueries::findAllIntersections(), Foam::findEtcFiles(), MeshZones< cellZone, polyMesh >::findIndex(), polyBoundaryMesh::findIndex(), triSurfaceRegionSearch::findNearest(), searchableSurfacesQueries::findNearest(), fvSchemes::gradScheme(), DynamicID< meshPointZones >::index(), Distribution< Type >::index(), fvSchemes::interpolationScheme(), intersectedSurface::intersectedSurface(), fvSchemes::laplacianScheme(), cellCuts::nonAnchorPoints(), Distribution< Type >::normalised(), dlLibraryTable::open(), listPlusEqOp< T >::operator()(), cellToFaceStencil::unionEqOp::operator()(), cellToCellStencil::unionEqOp::operator()(), triSurfaceMesh::overlaps(), ParticleErosion< CloudType >::ParticleErosion(), patchInteractionDataList::patchInteractionDataList(), PatchPostProcessing< CloudType >::PatchPostProcessing(), polyBoundaryMesh::patchSet(), pointMapper::pointMapper(), Distribution< Type >::raw(), ISstream::read(), repatchMesh::readTriSurface(), triSurfaceMesh::regions(), labelRanges::remove(), timeSelector::select0(), specieCoeffs::setLRhs(), combineFaces::setUnrefinement(), fvSchemes::snGradScheme(), primitiveEntry::startLineNumber(), surfaceIntersection::surfaceIntersection(), treeBoundBox::treeBoundBox(), plane::update(), walkPatch::walkPatch(), and writeObjectsBase::write().

◆ swap()

void swap ( UList< T > &  a)

Swap two ULists of the same type in constant time.

Definition at line 90 of file UList.C.

◆ 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 152 of file UList.C.

◆ operator!=()

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

The opposite of the equality operation. Takes linear time.

Definition at line 173 of file UList.C.

◆ operator<()

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

Compare two ULists lexicographically. Takes linear time.

Definition at line 180 of file UList.C.

◆ operator>()

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

Compare two ULists lexicographically. Takes linear time.

Definition at line 211 of file UList.C.

◆ operator<=()

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

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

Definition at line 218 of file UList.C.

◆ operator>=()

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

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

Definition at line 225 of file UList.C.

◆ 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 102 of file UList.H.

◆ SubList< T >

friend class SubList< T >
friend

Declare friendship with the SubList class.

Definition at line 105 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: