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 |
struct | Hash |
struct | hasher |
struct | less |
Public Types | |
typedef T | value_type |
typedef T * | pointer |
typedef T & | reference |
typedef T * | iterator |
typedef label | size_type |
typedef label | difference_type |
typedef std::reverse_iterator< iterator > | reverse_iterator |
typedef std::reverse_iterator< const_iterator > | const_reverse_iterator |
Public Member Functions | |
UList (const UList< T > &)=default | |
constexpr | UList () noexcept |
UList (T *__restrict__ v, const label len) noexcept | |
label | fcIndex (const label i) const noexcept |
label | rcIndex (const label i) const noexcept |
const T & | fcValue (const label i) const |
T & | fcValue (const label i) |
const T & | rcValue (const label i) const |
T & | rcValue (const label i) |
const T * | cdata () const noexcept |
T * | data () noexcept |
const char * | cdata_bytes () const noexcept |
char * | data_bytes () noexcept |
T & | first () |
const T & | first () const |
T & | last () |
const T & | last () const |
std::streamsize | size_bytes () const noexcept |
std::streamsize | byteSize () const |
void | checkStart (const label start) const |
void | checkSize (const label size) const |
void | checkRange (const label start, const label len) const |
void | checkIndex (const label i) const |
bool | uniform () const |
label | find (const T &val, label pos=0) const |
label | rfind (const T &val, label pos=-1) const |
bool | found (const T &val, label pos=0) const |
void | moveFirst (const label i) |
void | moveLast (const label i) |
void | swapFirst (const label i) |
void | swapLast (const label i) |
void | shallowCopy (const UList< T > &list) |
void | deepCopy (const UList< T > &list) |
template<class Addr > | |
void | deepCopy (const IndirectListBase< T, Addr > &list) |
SubList< T > | slice (const label pos, label len=-1) |
const SubList< T > | slice (const label pos, label len=-1) const |
SubList< T > | slice (const labelRange &range) |
const SubList< T > | slice (const labelRange &range) const |
T & | operator[] (const label i) |
const T & | operator[] (const label i) const |
operator const Foam::List< T > & () const | |
void | operator= (const T &val) |
void | operator= (const Foam::zero) |
iterator | begin () noexcept |
iterator | end () noexcept |
const_iterator | cbegin () const noexcept |
const_iterator | cend () const noexcept |
const_iterator | begin () const noexcept |
const_iterator | end () const noexcept |
reverse_iterator | rbegin () |
reverse_iterator | rend () |
const_reverse_iterator | crbegin () const |
const_reverse_iterator | crend () const |
const_reverse_iterator | rbegin () const |
const_reverse_iterator | rend () const |
label | size () const noexcept |
bool | empty () const noexcept |
void | swap (UList< T > &list) |
bool | operator== (const UList< T > &a) const |
bool | operator!= (const UList< T > &a) const |
bool | operator< (const UList< T > &list) const |
bool | operator> (const UList< T > &a) const |
bool | operator<= (const UList< T > &a) const |
bool | operator>= (const UList< T > &a) const |
Istream & | readList (Istream &is) |
void | writeEntry (const word &keyword, Ostream &os) const |
Ostream & | writeList (Ostream &os, const label shortLen=0) const |
template<class TypeT = T> | |
std::enable_if< std::is_same< bool, TypeT >::value, bool >::type | test (const label i) const |
template<class TypeT = T> | |
std::enable_if< std::is_same< bool, TypeT >::value, bool >::type | get (const label i) const |
template<class TypeT = T> | |
std::enable_if< std::is_same< bool, TypeT >::value, bool >::type | unset (const label i) |
template<class T > | |
void | deepCopy (const UList< T > &list) |
Istream & | readList (Istream &is) |
Ostream & | writeList (Ostream &os, const label) const |
const bool & | operator[] (const label i) const |
Foam::UPstream::commsStruct & | operator[] (const label procID) |
const Foam::UPstream::commsStruct & | operator[] (const label procID) const |
UPstream::commsStruct & | operator[] (const label) |
const UPstream::commsStruct & | operator[] (const label) const |
Ostream & | writeList (Ostream &os, const label) const |
Istream & | readList (Istream &is) |
Static Public Member Functions | |
static const UList< T > & | null () |
static constexpr label | max_size () noexcept |
Public Attributes | |
const typedef T * | const_pointer |
const typedef T & | const_reference |
const typedef T * | const_iterator |
Protected Member Functions | |
void | setAddressableSize (const label n) noexcept |
void | size (const label n) |
void | writeEntry (Ostream &os) const |
labelRange | validateRange (const labelRange &requestedRange) const |
UList< T > & | operator= (const UList< T > &)=delete |
void | writeEntry (Ostream &os) const |
void | writeEntry (Ostream &os) const |
Friends | |
class | List< T > |
class | SubList< T > |
Istream & | operator>> (Istream &os, UList< T > &list) |
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 99 of file HashTable.H.
typedef T value_type |
typedef label difference_type |
typedef std::reverse_iterator<iterator> reverse_iterator |
typedef std::reverse_iterator<const_iterator> const_reverse_iterator |
|
inlineconstexprnoexcept |
|
inlineprotectednoexcept |
Definition at line 406 of file UListI.H.
Referenced by UList< Foam::wordRe >::size().
|
inlineprotected |
Definition at line 110 of file UList.H.
Referenced by dynamicOversetFvMesh::active(), fvMeshPrimitiveLduAddressing::addAddressing(), dynamicOversetFvMesh::addInterpolation(), faMatrix< Type >::addToInternalField(), fvMatrix< Type >::addToInternalField(), 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< Type >::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< Type >::euclidianInterpolate(), Pstream::exchange(), functionObjectList::execute(), regionSizeDistribution::extractData(), FaceCellWave< Type, int >::FaceCellWave(), NASCore::faceDecomposition(), ABAQUSCore::faceDecomposition(), lduMatrix::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< Type >::interpolate(), surfaceInterpolationScheme< scalar >::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=(), FixedList< Type, 3 >::operator=(), HashSet< word, Hash< word > >::operator=(), List< vectorField >::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::setSize(), Foam::ListOps::setValue(), UnsortedMeshedSurface< Face >::setZones(), directFieldMapper::size(), directPointPatchFieldMapper::size(), directFvPatchFieldMapper::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(), 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(), Foam::vtk::writeListsParallel(), coupledPolyPatch::writeOBJ(), Foam::meshTools::writeOBJ(), Foam::ensightOutput::writePolysPoints(), nastranWriter::writeTemplate(), starcdWriter::writeTemplate(), and Foam::zip().
|
protected |
|
protected |
|
inlinestatic |
Definition at line 46 of file UListI.H.
Referenced by FieldMapper::directAddressing(), pointFieldReconstructor::pointPatchFieldReconstructor::directAddressing(), fvFieldReconstructor::fvPatchFieldReconstructor::directAddressing(), faFieldReconstructor::faPatchFieldReconstructor::directAddressing(), globalIndex::localStarts(), polyPatch::nbrCells(), vtuSizing::reset(), and starcdWriter::write().
|
inlinenoexcept |
Definition at line 223 of file UListI.H.
Referenced by UPstream::allToAll(), UList::hasher::operator()(), OFstreamCollator::write(), and decomposedBlockData::writeBlocks().
Definition at line 230 of file UListI.H.
Referenced by UList< Foam::wordRe >::readList().
|
inlinenoexcept |
Definition at line 237 of file UListI.H.
Referenced by UPstream::listScatterValues(), globalIndex::mpiGather(), and Foam::vtk::writeListsParallel().
|
inlinenoexcept |
Definition at line 244 of file UListI.H.
Referenced by UList< Foam::wordRe >::readList().
|
inline |
Definition at line 195 of file UListI.H.
Referenced by weightedPosition::getPoints(), and Foam::printTable().
|
inline |
Definition at line 209 of file UListI.H.
Referenced by globalIndex::gather().
|
inlinenoexcept |
Definition at line 251 of file UListI.H.
Referenced by globalIndex::mpiGather(), UList::hasher::operator()(), UList< Foam::wordRe >::readList(), OFstreamCollator::write(), decomposedBlockData::writeBlocks(), and Foam::vtk::writeListsParallel().
|
inline |
Definition at line 109 of file UListI.H.
Referenced by SubList::SubList().
|
inline |
Definition at line 123 of file UListI.H.
Referenced by SubList::SubList().
Definition at line 258 of file UListI.H.
Referenced by findNearestMaskedOp< PatchType >::operator()(), and foundOp< StringType >::operator()().
Definition at line 265 of file UListI.H.
Referenced by surfMesh::updateRefs(), SlicedGeometricField::Internal::~Internal(), and SlicedGeometricField::~SlicedGeometricField().
void deepCopy | ( | const IndirectListBase< T, Addr > & | list | ) |
Foam::SubList< Type > slice | ( | const labelRange & | range | ) |
const Foam::SubList< Type > slice | ( | const labelRange & | range | ) | const |
|
inline |
|
inline |
void operator= | ( | const Foam::zero | ) |
|
inlinenoexcept |
Referenced by bitSet::bitSet(), TDILUPreconditioner< Type, DType, LUType >::calcInvD(), 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(), TGaussSeidelSmoother< Type, DType, LUType >::smooth(), symGaussSeidelSmoother::smooth(), GaussSeidelSmoother::smooth(), nonBlockingGaussSeidelSmoother::smooth(), Foam::sort(), Foam::stableSort(), fft::transform(), HashSet< word, Hash< word > >::unset(), and bitSet::unset().
|
inlinenoexcept |
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 |
Definition at line 336 of file UListI.H.
Referenced by IndirectListBase< T, Addr >::begin(), IndirectListBase< T, Addr >::cbegin(), HashTable< Foam::autoPtr< Foam::interfaceCompositionModel > >::erase(), and Foam::isFaceCut().
|
inlinenoexcept |
Definition at line 357 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 |
Definition at line 420 of file UListI.H.
Referenced by faMeshBoundaryHalo::distributeSparse(), UPstream::listScatterValues(), Foam::printTable(), UnsortedMeshedSurface< Face >::remapFaces(), MeshedSurface< Foam::face >::remapFaces(), Foam::system(), and treeBoundBox::treeBoundBox().
|
inlinestaticconstexprnoexcept |
Definition at line 427 of file UListI.H.
Referenced by DynamicField< Foam::Vector >::readList(), and Foam::Swap().
Referenced by Foam::operator<<(), decomposedBlockData::writeBlockEntry(), and ensightCells::writeDict().
Foam::Istream & readList | ( | Istream & | is | ) |
Foam::UPstream::commsStruct & operator[] | ( | const label | procID | ) |
Definition at line 253 of file UPstream.C.
const Foam::UPstream::commsStruct & operator[] | ( | const label | procID | ) | const |
Definition at line 354 of file UPstream.C.
UPstream::commsStruct & operator[] | ( | const | label | ) |
const UPstream::commsStruct & operator[] | ( | const | label | ) | const |
|
protected |
Definition at line 64 of file charUList.C.
Definition at line 91 of file charUList.C.
Definition at line 101 of file charUList.C.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.