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...
Classes | |
struct | greater |
A list compare binary predicate for reverse sort. More... | |
struct | Hash |
Deprecated(2021-04) hashing functor. Use hasher() More... | |
struct | hasher |
Hashing functor for UList. More... | |
struct | less |
A list compare binary predicate for normal sort. More... | |
Public Types | |
typedef T | value_type |
The value type the list contains. More... | |
typedef T * | pointer |
The pointer type for non-const access to value_type items. More... | |
typedef T & | reference |
The type used for storing into value_type objects. More... | |
typedef T * | iterator |
Random access iterator for traversing a UList. More... | |
typedef label | size_type |
The type to represent the size of a UList. More... | |
typedef label | difference_type |
The difference between iterator objects. More... | |
typedef std::reverse_iterator< iterator > | reverse_iterator |
Reverse iterator (non-const access) More... | |
typedef std::reverse_iterator< const_iterator > | const_reverse_iterator |
Reverse iterator (const access) More... | |
Public Member Functions | |
UList (const UList< T > &)=default | |
Copy construct. More... | |
constexpr | UList () noexcept |
Default construct, zero-sized and nullptr. More... | |
UList (T *__restrict__ v, const label len) noexcept | |
Construct from components. More... | |
label | fcIndex (const label i) const noexcept |
label | rcIndex (const label i) const noexcept |
const T & | fcValue (const label i) const |
Return forward circular value (ie, next value in the list) More... | |
T & | fcValue (const label i) |
Return forward circular value (ie, next value in the list) More... | |
const T & | rcValue (const label i) const |
Return reverse circular value (ie, previous value in the list) More... | |
T & | rcValue (const label i) |
Return reverse circular value (ie, previous value in the list) More... | |
const T * | cdata () const noexcept |
Return pointer to the underlying array serving as data storage. More... | |
T * | data () noexcept |
Return pointer to the underlying array serving as data storage. More... | |
const char * | cdata_bytes () const noexcept |
Return pointer to the underlying array serving as data storage,. More... | |
char * | data_bytes () noexcept |
Return pointer to the underlying array serving as data storage,. More... | |
T & | first () |
Return the first element of the list. More... | |
const T & | first () const |
Return first element of the list. More... | |
T & | last () |
Return the last element of the list. More... | |
const T & | last () const |
Return the last element of the list. More... | |
std::streamsize | size_bytes () const noexcept |
Number of contiguous bytes for the List data. More... | |
std::streamsize | byteSize () const |
void | checkStart (const label start) const |
Check start is within valid range [0,size) More... | |
void | checkSize (const label size) const |
Check size is within valid range [0,size]. More... | |
void | checkRange (const label start, const label len) const |
Check that start and length define a valid range. More... | |
void | checkIndex (const label i) const |
Check index is within valid range [0,size) More... | |
bool | uniform () const |
True if all entries have identical values, and list is non-empty. More... | |
label | find (const T &val, label pos=0) const |
Find index of the first occurrence of the value. More... | |
label | rfind (const T &val, label pos=-1) const |
Find index of the last occurrence of the value. More... | |
bool | found (const T &val, label pos=0) const |
True if the value if found in the list. More... | |
void | moveFirst (const label i) |
Move element to the first position. More... | |
void | moveLast (const label i) |
Move element to the last position. More... | |
void | swapFirst (const label i) |
Swap element with the first element. Fatal on an empty list. More... | |
void | swapLast (const label i) |
Swap element with the last element. Fatal on an empty list. More... | |
void | shallowCopy (const UList< T > &list) |
Copy the pointer and size held by the given UList. More... | |
void | deepCopy (const UList< T > &list) |
Copy elements of the given UList. Sizes must match! More... | |
template<class Addr > | |
void | deepCopy (const IndirectListBase< T, Addr > &list) |
Copy elements of the given indirect list. Sizes must match! More... | |
SubList< T > | slice (const label pos, label len=-1) |
Return SubList slice (non-const access) - no range checking. More... | |
const SubList< T > | slice (const label pos, label len=-1) const |
Return SubList slice (const access) - no range checking. More... | |
SubList< T > | slice (const labelRange &range) |
Return SubList slice (non-const access) - with range checking. More... | |
const SubList< T > | slice (const labelRange &range) const |
Return SubList slice (const access) - with range checking. More... | |
T & | operator[] (const label i) |
Return element of UList. More... | |
const T & | operator[] (const label i) 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 &val) |
Assignment of all entries to the given value. More... | |
void | operator= (const Foam::zero) |
Assignment of all entries to zero. More... | |
iterator | begin () noexcept |
Return an iterator to begin traversing the UList. More... | |
iterator | end () noexcept |
Return an iterator to end traversing the UList. More... | |
const_iterator | cbegin () const noexcept |
Return const_iterator to begin traversing the constant UList. More... | |
const_iterator | cend () const noexcept |
Return const_iterator to end traversing the constant UList. More... | |
const_iterator | begin () const noexcept |
Return const_iterator to begin traversing the constant UList. More... | |
const_iterator | end () const noexcept |
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 noexcept |
The number of elements in the UList. More... | |
bool | empty () const noexcept |
True if the UList is empty (ie, size() is zero) More... | |
void | swap (UList< T > &list) |
Swap content with another UList of the same type in constant time. More... | |
bool | operator== (const UList< T > &a) const |
Equality operation on ULists of the same type. More... | |
bool | operator!= (const UList< T > &a) const |
The opposite of the equality operation. Takes linear time. More... | |
bool | operator< (const UList< T > &list) const |
Compare two ULists lexicographically. Takes linear time. More... | |
bool | operator> (const UList< T > &a) const |
Compare two ULists lexicographically. Takes linear time. More... | |
bool | operator<= (const UList< T > &a) const |
Return true if !(a > b). Takes linear time. More... | |
bool | operator>= (const UList< T > &a) const |
Return true if !(a < b). Takes linear time. More... | |
Istream & | readList (Istream &is) |
Read List contents from Istream. More... | |
void | writeEntry (const word &keyword, Ostream &os) const |
Write the List as a dictionary entry with keyword. More... | |
Ostream & | writeList (Ostream &os, const label shortLen=0) const |
Write List, with line-breaks in ASCII when length exceeds shortLen. More... | |
template<class TypeT = T> | |
std::enable_if< std::is_same< bool, TypeT >::value, bool >::type | test (const label i) const |
A bitSet::test() method for a list of bool. More... | |
template<class TypeT = T> | |
std::enable_if< std::is_same< bool, TypeT >::value, bool >::type | get (const label i) const |
A bitSet::get() method for a list of bool. More... | |
template<class TypeT = T> | |
std::enable_if< std::is_same< bool, TypeT >::value, bool >::type | unset (const label i) |
A bitSet::unset() method for a list of bool. More... | |
template<> | |
Istream & | readList (Istream &is) |
template<> | |
Ostream & | writeList (Ostream &os, const label) const |
template<> | |
const bool & | operator[] (const label i) const |
template<> | |
Foam::UPstream::commsStruct & | operator[] (const label procID) |
template<> | |
const Foam::UPstream::commsStruct & | operator[] (const label procID) const |
template<> | |
UPstream::commsStruct & | operator[] (const label) |
template<> | |
const UPstream::commsStruct & | operator[] (const label) const |
template<> | |
Ostream & | writeList (Ostream &os, const label) const |
template<> | |
Istream & | readList (Istream &is) |
Static Public Member Functions | |
static const UList< T > & | null () |
Return a UList reference to a nullObject. More... | |
static constexpr label | max_size () noexcept |
The size of the largest possible UList. More... | |
Public Attributes | |
const typedef T * | const_pointer |
The pointer type for const access to value_type items. More... | |
const typedef T & | const_reference |
The type used for reading from constant value_type objects. More... | |
const typedef T * | const_iterator |
Random access iterator for traversing a UList. More... | |
Protected Member Functions | |
void | setAddressableSize (const label n) noexcept |
Set addressed size to be inconsistent with allocated storage. More... | |
void | size (const label n) |
Older name for setAddressableSize. More... | |
void | writeEntry (Ostream &os) const |
Write the UList with its compound type. More... | |
labelRange | validateRange (const labelRange &requestedRange) const |
UList< T > & | operator= (const UList< T > &)=delete |
No copy assignment (default: shallow copy) More... | |
template<> | |
void | writeEntry (Ostream &os) const |
template<> | |
void | writeEntry (Ostream &os) const |
Friends | |
class | List< T > |
Declare friendship with the List class. More... | |
class | SubList< T > |
Declare friendship with the SubList class. More... | |
Istream & | operator>> (Istream &os, UList< T > &list) |
Use the readList() method to read contents from Istream. More... | |
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.
Definition at line 103 of file HashTable.H.
typedef T value_type |
typedef label size_type |
typedef label difference_type |
typedef std::reverse_iterator<iterator> reverse_iterator |
typedef std::reverse_iterator<const_iterator> const_reverse_iterator |
|
inlineconstexprnoexcept |
|
inlineprotectednoexcept |
Set addressed size to be inconsistent with allocated storage.
Use with care
Definition at line 413 of file UListI.H.
Referenced by UList< Foam::wordRe >::size().
|
inlineprotected |
Older name for setAddressableSize.
Definition at line 114 of file UList.H.
Referenced by AABBTree< Type >::AABBTree(), dynamicOversetFvMesh::active(), fvMeshPrimitiveLduAddressing::addAddressing(), dynamicOversetFvMesh::addInterpolation(), faMatrix< Type >::addToInternalField(), fvMatrix< Type >::addToInternalField(), MeshedSurface< Foam::face >::addZones(), pairGAMGAgglomeration::agglomerate(), GAMGAgglomeration::agglomerateLduAddressing(), UPstream::allToAll(), List< vectorField >::append(), ITstream::append(), DynamicList< Foam::FixedList< scalar, 3 > >::append(), DynamicField< Foam::Vector >::append(), Foam::appendCsvLabels(), assemblyFaceAreaPairGAMGAgglomeration::assemblyFaceAreaPairGAMGAgglomeration(), Field< Foam::Vector2D >::autoMap(), fvPatchField< vector >::autoMap(), bitSet::bitSet(), isoSurfaceBase::blockCells(), coupledPolyPatch::calcFaceTol(), globalIndex::calcOffsets(), globalIndex::calcRanges(), Foam::checkFaceSizeMatch(), GAMGAgglomeration::checkRestriction(), lduPrimitiveMesh::checkUpperTriangular(), ensightFaces::classify(), ORourkeCollision< CloudType >::collide(), GAMGAgglomeration::compactLevels(), vtuAdaptor::convertField(), UList< Foam::wordRe >::deepCopy(), Matrix< RectangularMatrix< Type >, Type >::diag(), faMeshBoundaryHalo::distributeSparse(), edgeInterpolationScheme< scalar >::euclidianInterpolate(), Pstream::exchange(), functionObjectList::execute(), regionSizeDistribution::extractData(), FaceCellWave< Type, TrackingData >::FaceCellWave(), NASCore::faceDecomposition(), ABAQUSCore::faceDecomposition(), lduMatrix::faceH(), LduMatrix< Type, DType, LUType >::faceH(), Foam::vtk::Tools::Faces(), fft::fftRenumberRecurse(), FixedList< Type, 3 >::FixedList(), mapDistributeBase::flipAndCombine(), globalIndex::gather(), globalIndex::get(), coupledPolyPatch::getAnchorPoints(), GenericPatchGeoFieldsWriter< PatchType >::getFaceField(), Foam::ensightOutput::Detail::getFaceSizes(), weightedPosition::getPoints(), Foam::ensightOutput::Detail::getPolysNFaces(), globalIndex::globalIndex(), Foam::Im(), Foam::ImComplexField(), vtuAdaptor::internal(), cyclicACMIGAMGInterface::internalFieldTransfer(), cyclicAMIGAMGInterface::internalFieldTransfer(), cyclicAMIPolyPatch::interpolate(), edgeInterpolationScheme< scalar >::interpolate(), surfaceInterpolationScheme< GType >::interpolate(), AMIInterpolation::interpolateToSource(), AMIInterpolation::interpolateToTarget(), interpolationTable< scalar >::interpolateValues(), meshToMeshMethod::intersect(), meshToMeshMethod::interVol(), meshToMeshMethod::interVolAndCentroid(), Foam::inv(), cell::labels(), lduPrimitiveMesh::lduPrimitiveMesh(), List< vectorField >::List(), UPstream::listScatterValues(), polyTopoChange::makeMesh(), Field< Foam::Vector2D >::map(), mapDistributeBase::mapDistributeBase(), Foam::matchPoints(), PrimitivePatch<::Foam::List< labelledTri >, pointField >::meshEdges(), MeshedSurface< Foam::face >::MeshedSurface(), LduMatrix< Type, DType, LUType >::negSumDiag(), lduMatrix::negSumDiag(), noiseFFT::octaves(), noiseModel::octaves(), dlLibraryTable::open(), Foam::operator<<(), BiIndirectList< T >::operator=(), List< vectorField >::operator=(), FixedList< Type, 3 >::operator=(), HashSet< word, Hash< word > >::operator=(), PackedList< 2 >::PackedList(), Foam::peekTokenAt(), vtuAdaptor::points(), Foam::vtk::Tools::Points(), Polynomial< 8 >::Polynomial(), seriesWriter::print(), faFieldDecomposer::processorAreaPatchFieldDecomposer::processorAreaPatchFieldDecomposer(), fvFieldDecomposer::processorVolPatchFieldDecomposer::processorVolPatchFieldDecomposer(), FIRECore::putFireLabels(), Foam::Re(), UList< Foam::wordRe >::readList(), hashedWordList::rehash(), Foam::ReImSum(), UnsortedMeshedSurface< Face >::remapFaces(), MeshedSurface< Foam::face >::remapFaces(), UPtrList< const Foam::UList >::reorder(), globalIndex::reset(), vtuSizing::reset(), vtuSizing::resetShapes(), Foam::reverse(), face::reverseFace(), SortList< T >::reverseSort(), sampledSurface::sampleOnFaces(), sampledSurface::sampleOnPoints(), triSurfaceLoader::select(), weightedPosition::setPoints(), removeCells::setRefinement(), CompactListList< T, Container >::setSize(), Foam::ListOps::setValue(), UnsortedMeshedSurface< Face >::setZones(), directFieldMapper::size(), directFvPatchFieldMapper::size(), directPointPatchFieldMapper::size(), distributedUnallocatedDirectFieldMapper::size(), distributedUnallocatedDirectFvPatchFieldMapper::size(), LLTMatrix< Type >::solve(), SortList< T >::sort(), UPtrList< const Foam::UList >::sortOrder(), extendedEdgeMesh::sortPointsAndEdges(), Foam::stabilise(), faMatrix< Type >::subtractFromInternalField(), 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::syncPointList(), weightedPosition::syncPoints(), Foam::system(), meshRefinement::testSyncBoundaryFaceList(), fft::transform(), PackedList< 2 >::unpack(), dynamicOversetFvMesh::updateAddressing(), topoBoolSet::updateLabels(), topoBitSet::updateLabels(), topoSet::updateLabels(), Foam::HashSetOps::used(), Foam::vtk::Tools::Vertices(), FLMAsurfaceFormat< Face >::write(), OBJsurfaceFormat< Face >::write(), SMESHsurfaceFormat< Face >::write(), OFFsurfaceFormat< Face >::write(), GTSsurfaceFormat< Face >::write(), ABAQUSsurfaceFormat< Face >::write(), dynamicOversetFvMesh::write(), STARCDsurfaceFormat< Face >::write(), NASsurfaceFormat< Face >::write(), VTPsurfaceFormat< Face >::write(), OBJstream::write(), decomposedBlockData::writeBlocks(), STARCDsurfaceFormatCore::writeCase(), VTKsurfaceFormatCore::writeCellData(), VTPsurfaceFormatCore::writeCellData(), lumpedPointMovement::writeData(), lumpedPointMovement::writeForcesAndMomentsVTP(), VTPsurfaceFormatCore::writeHeader(), VTKsurfaceFormatCore::writeHeader(), AC3DsurfaceFormatCore::writeHeader(), UList< Foam::wordRe >::writeList(), Foam::vtk::writeListsParallel(), coupledPolyPatch::writeOBJ(), Foam::meshTools::writeOBJ(), Foam::ensightOutput::writePolysPoints(), nastranWriter::writeTemplate(), starcdWriter::writeTemplate(), and Foam::zip().
|
protected |
Write the UList with its compound type.
Definition at line 38 of file UListIO.C.
Referenced by faceZone::writeDict().
|
protected |
No copy assignment (default: shallow copy)
Assignment may need to be shallow (copy pointer) or deep (copy elements) depending on context or type of list. Disallow default assignment and provide separate 'shallowCopy' and 'deepCopy' member functions.
Referenced by SortableList< T >::operator=().
|
inlinestatic |
Return a UList reference to a nullObject.
Definition at line 53 of file UListI.H.
Referenced by FieldMapper::directAddressing(), pointFieldReconstructor::pointPatchFieldReconstructor::directAddressing(), fvFieldReconstructor::fvPatchFieldReconstructor::directAddressing(), faFieldReconstructor::faPatchFieldReconstructor::directAddressing(), globalIndex::localStarts(), voxelMeshSearch::makeMesh(), polyPatch::nbrCells(), vtuSizing::reset(), and starcdWriter::write().
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinenoexcept |
Return pointer to the underlying array serving as data storage.
Definition at line 230 of file UListI.H.
Referenced by UPstream::allToAll(), UList< T >::hasher::operator()(), OFstreamCollator::write(), and decomposedBlockData::writeBlocks().
Return pointer to the underlying array serving as data storage.
Definition at line 237 of file UListI.H.
Referenced by UList< Foam::wordRe >::readList().
|
inlinenoexcept |
Return pointer to the underlying array serving as data storage,.
reinterpreted as byte data
Definition at line 244 of file UListI.H.
Referenced by UPstream::listScatterValues(), globalIndex::mpiGather(), UList< Foam::wordRe >::writeList(), and Foam::vtk::writeListsParallel().
|
inlinenoexcept |
Return pointer to the underlying array serving as data storage,.
reinterpreted as byte data
Definition at line 251 of file UListI.H.
Referenced by UList< Foam::wordRe >::readList().
|
inline |
Return the first element of the list.
Definition at line 202 of file UListI.H.
Referenced by weightedPosition::getPoints(), and Foam::printTable().
|
inline |
|
inline |
Return the last element of the list.
Definition at line 216 of file UListI.H.
Referenced by globalIndex::gather().
|
inline |
|
inlinenoexcept |
Number of contiguous bytes for the List data.
Definition at line 258 of file UListI.H.
Referenced by globalIndex::mpiGather(), UList< T >::hasher::operator()(), UList< Foam::wordRe >::readList(), OFstreamCollator::write(), decomposedBlockData::writeBlocks(), UList< Foam::wordRe >::writeList(), and Foam::vtk::writeListsParallel().
std::streamsize byteSize | ( | ) | const |
|
inline |
|
inline |
Check size is within valid range [0,size].
Definition at line 116 of file UListI.H.
Referenced by SubList< T >::SubList().
|
inline |
Check that start and length define a valid range.
Definition at line 130 of file UListI.H.
Referenced by SubList< T >::SubList().
|
inline |
True if all entries have identical values, and list is non-empty.
Definition at line 178 of file UListI.H.
Referenced by UList< Foam::wordRe >::writeList().
Foam::label find | ( | const T & | val, |
label | pos = 0 |
||
) | const |
Foam::label rfind | ( | const T & | val, |
label | pos = -1 |
||
) | const |
True if the value if found in the list.
Any occurrences before the start pos are ignored. Linear search.
Definition at line 265 of file UListI.H.
Referenced by findNearestMaskedOp< PatchType >::operator()(), and foundOp< StringType >::operator()().
void moveFirst | ( | const label | i | ) |
void moveLast | ( | const label | i | ) |
void swapFirst | ( | const label | i | ) |
void swapLast | ( | const label | i | ) |
Copy the pointer and size held by the given UList.
Definition at line 272 of file UListI.H.
Referenced by surfMesh::updateRefs().
Copy elements of the given UList. Sizes must match!
Definition at line 107 of file UList.C.
Referenced by UPstream::allToAll().
void deepCopy | ( | const IndirectListBase< T, Addr > & | list | ) |
Foam::SubList< Type > slice | ( | const label | pos, |
label | len = -1 |
||
) |
const Foam::SubList< Type > slice | ( | const label | pos, |
label | len = -1 |
||
) | const |
Foam::SubList< Type > slice | ( | const labelRange & | range | ) |
const Foam::SubList< Type > slice | ( | const labelRange & | range | ) | const |
|
inline |
|
inline |
|
inline |
void operator= | ( | const T & | val | ) |
void operator= | ( | const Foam::zero | ) |
|
inlinenoexcept |
Return an iterator to begin traversing the UList.
Definition at line 329 of file UListI.H.
Referenced by bitSet::bitSet(), DICPreconditioner::calcReciprocalD(), DILUPreconditioner::calcReciprocalD(), Foam::ListListOps::combineOffset(), edge::erase(), objectRegistry::erase(), lduMatrix::H(), lduMatrix::H1(), HashSet< word, Hash< word > >::HashSet(), Foam::ListOps::identity(), edge::insert(), HashSet< word, Hash< word > >::insert(), UList< Foam::wordRe >::operator<(), HashSet< word, Hash< word > >::operator=(), vtuSizing::renumberFaceLabelsXml(), vtuSizing::renumberVertLabelsLegacy(), bitSet::set(), Foam::shuffle(), GaussSeidelSmoother::smooth(), symGaussSeidelSmoother::smooth(), nonBlockingGaussSeidelSmoother::smooth(), Foam::sort(), Foam::stableSort(), fft::transform(), HashSet< word, Hash< word > >::unset(), and bitSet::unset().
|
inlinenoexcept |
Return an iterator to end traversing the UList.
Definition at line 350 of file UListI.H.
Referenced by bitSet::bitSet(), edge::erase(), objectRegistry::erase(), HashSet< word, Hash< word > >::HashSet(), Foam::ListOps::identity(), edge::insert(), HashSet< word, Hash< word > >::insert(), UList< Foam::wordRe >::operator<(), HashSet< word, Hash< word > >::operator=(), vtuSizing::renumberFaceLabelsXml(), vtuSizing::renumberVertLabelsLegacy(), bitSet::set(), Foam::shuffle(), Foam::sort(), Foam::stableSort(), HashSet< word, Hash< word > >::unset(), and bitSet::unset().
|
inlinenoexcept |
Return const_iterator to begin traversing the constant UList.
Definition at line 343 of file UListI.H.
Referenced by IndirectListBase< T, Addr >::begin(), IndirectListBase< T, Addr >::cbegin(), HashTable< Foam::autoPtr< Foam::interfaceCompositionModel > >::erase(), and Foam::isFaceCut().
|
inlinenoexcept |
Return const_iterator to end traversing the constant UList.
Definition at line 364 of file UListI.H.
Referenced by IndirectListBase< T, Addr >::cend(), IndirectListBase< T, Addr >::end(), HashTable< Foam::autoPtr< Foam::interfaceCompositionModel > >::erase(), and Foam::isFaceCut().
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
True if the UList is empty (ie, size() is zero)
Definition at line 427 of file UListI.H.
Referenced by AABBTree< Type >::AABBTree(), faMeshBoundaryHalo::distributeSparse(), UPstream::listScatterValues(), Foam::printTable(), UnsortedMeshedSurface< Face >::remapFaces(), MeshedSurface< Foam::face >::remapFaces(), Foam::system(), and treeBoundBox::treeBoundBox().
|
inlinestaticconstexprnoexcept |
Swap content with another UList of the same type in constant time.
Definition at line 434 of file UListI.H.
Referenced by DynamicField< Foam::Vector >::readList(), and Foam::Swap().
Foam::Istream & readList | ( | Istream & | is | ) |
Foam::Ostream & writeList | ( | Ostream & | os, |
const label | shortLen = 0 |
||
) | const |
Write List, with line-breaks in ASCII when length exceeds shortLen.
Using '0' suppresses line-breaks entirely.
Definition at line 79 of file UListIO.C.
Referenced by Foam::operator<<(), decomposedBlockData::writeBlockEntry(), and ensightCells::writeDict().
A bitSet::test() method for a list of bool.
A bitSet::get() method for a list of bool.
A bitSet::unset() method for a list of bool.
Specialized list reading for character lists which always uses binary format.
|
protected |
Specialized writeEntry for character lists which always uses binary format.
Specialized writeList for character lists which always uses binary format.
Foam::UPstream::commsStruct & operator[] | ( | const label | procID | ) |
Definition at line 260 of file UPstream.C.
const Foam::UPstream::commsStruct & operator[] | ( | const label | procID | ) | const |
Definition at line 361 of file UPstream.C.
UPstream::commsStruct & operator[] | ( | const | label | ) |
const UPstream::commsStruct & operator[] | ( | const | label | ) | const |
|
protected |
Definition at line 71 of file charUList.C.
Definition at line 98 of file charUList.C.
Definition at line 108 of file charUList.C.
Use the readList() method to read contents from Istream.
const typedef T* const_pointer |
const typedef T& const_reference |
const typedef T* const_iterator |