List< T > Class Template Reference

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

Inherits UList< T >.

Inherited by DynamicList< ABAQUSCore::shapeType >, DynamicList< fileState >, DynamicList< FixedList< point, N > >, DynamicList< Foam::cellShape >, DynamicList< Foam::clockValue >, DynamicList< Foam::CompactSpatialTensor >, DynamicList< Foam::DynamicList< Foam::profilingInformation *> >, DynamicList< Foam::edge >, DynamicList< Foam::glTF::accessor >, DynamicList< Foam::glTF::animation >, DynamicList< Foam::glTF::animation::glTFChannel >, DynamicList< Foam::glTF::animation::glTFSampler >, DynamicList< Foam::glTF::bufferView >, DynamicList< Foam::glTF::mesh >, DynamicList< Foam::glTF::object >, DynamicList< Foam::Instant >, DynamicList< Foam::labelRange >, DynamicList< Foam::List< Foam::UPstream::commsStruct > >, DynamicList< Foam::List< int > >, DynamicList< Foam::PairCollisionRecord< PairType > >, DynamicList< Foam::PairCollisionRecord< vector > >, DynamicList< Foam::particleInfo >, DynamicList< Foam::profilingInformation *>, DynamicList< Foam::refinementHistory::splitCell8 >, DynamicList< Foam::SpatialTensor >, DynamicList< Foam::triPoints >, DynamicList< Foam::Tuple2< Foam::fileName, std::string > >, DynamicList< Foam::Tuple2< Foam::string, label > >, DynamicList< Foam::UPstream::Request >, DynamicList< Foam::WallCollisionRecord< vector > >, DynamicList< Foam::WallCollisionRecord< WallType > >, DynamicList< Foam::wordRe >, DynamicList< point >, DynamicList< taggedInfoType >, DynamicList< token >, DynamicList< tokenType >, DynamicList< void *>, DynamicList< vtmEntry >, Field< complexVector >, Field< DType >, Field< Foam::Field< Type > >, Field< Foam::SymmTensor >, Field< Foam::Vector2D >, Field< Foam::Vector< bool > >, Field< LUType >, Field< solveScalar >, Field< symmTensor >, Field< T >, Field< tensor >, Field< TypeGrad >, BinSum< IndexType, List, CombineOp >, CompactIOList< T, BaseType >, DynamicList< T, SizeMin >, faceToCellStencil, faceTriangulation, hashedWordList, IOList< T >, ITstream, PDRblock::location, polynomialFunction [private], processorColour, pTraits< List< T > >, SortableList< T >, and zoneCellStencils.

Collaboration diagram for List< T >:

Public Types

typedef SubList< TsubList
 Declare type of subList. More...
 
- Public Types inherited from UList< T >
typedef T value_type
 The value type the list contains. More...
 
typedef Tpointer
 The pointer type for non-const access to value_type items. More...
 
typedef const Tconst_pointer
 The pointer type for const access to value_type items. More...
 
typedef Treference
 The type used for storing into value_type objects. More...
 
typedef const Tconst_reference
 The type used for reading from constant value_type objects. More...
 
typedef Titerator
 Random access iterator for traversing a UList. More...
 
typedef const Tconst_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< iteratorreverse_iterator
 Reverse iterator (non-const access) More...
 
typedef std::reverse_iterator< const_iteratorconst_reverse_iterator
 Reverse iterator (const access) More...
 

Public Member Functions

constexpr List () noexcept
 Default construct. More...
 
 List (const label len)
 Construct with given size. More...
 
 List (const label len, const T &val)
 Construct with given size and value for all elements. More...
 
 List (const label len, const Foam::zero)
 Construct with given size initializing all elements to zero. More...
 
 List (const Foam::one, const T &val)
 Construct with length=1, copying the value as the only content. More...
 
 List (const Foam::one, T &&val)
 Construct with length=1, moving the value as the only content. More...
 
 List (const Foam::one, const Foam::zero)
 Construct with length=1, initializing content to zero. More...
 
 List (const List< T > &list)
 Copy construct from list. More...
 
 List (const UList< T > &list)
 Copy construct contents from list. More...
 
 List (List< T > &list, bool reuse)
 Construct as copy or re-use as specified. More...
 
 List (const UList< T > &list, const labelUList &indices)
 Copy construct subset of list. More...
 
template<unsigned N>
 List (const UList< T > &list, const FixedList< label, N > &indices)
 Copy construct subset of list. More...
 
template<unsigned N>
 List (const FixedList< T, N > &list)
 Construct as copy of FixedList<T, N> More...
 
 List (const PtrList< T > &list)
 Construct as copy of PtrList<T> More...
 
template<class Addr >
 List (const IndirectListBase< T, Addr > &list)
 Construct as copy of IndirectList contents. More...
 
 List (std::initializer_list< T > list)
 Construct from an initializer list. More...
 
 List (List< T > &&list) noexcept
 Move construct from List. More...
 
template<int SizeMin>
 List (DynamicList< T, SizeMin > &&list)
 Move construct from DynamicList. More...
 
 List (Istream &is)
 Construct from Istream. More...
 
autoPtr< List< T > > clone () const
 Clone. More...
 
 ~List ()
 Destructor. More...
 
void clear ()
 Clear the list, i.e. set size to zero. More...
 
void resize (const label len)
 Adjust allocated size of list. More...
 
void resize (const label len, const T &val)
 Adjust allocated size of list and set val for new elements. More...
 
void resize_fill (const label len, const T &val)
 Adjust allocated size of list and set val for all elements. More...
 
void resize_nocopy (const label len)
 Adjust allocated size of list without necessarily. More...
 
void resize_unsafe (const label len) noexcept
 Change the addressed list size directly without affecting any memory management (advanced usage). More...
 
void setSize (const label n)
 Alias for resize() More...
 
void setSize (const label n, const T &val)
 Alias for resize() More...
 
void transfer (List< T > &list)
 Transfer the contents of the argument List into this list and annul the argument list. More...
 
template<int SizeMin>
void transfer (DynamicList< T, SizeMin > &list)
 Transfer the contents of the argument List into this list and annul the argument list. More...
 
TnewElmt (const label i)
 Return subscript-checked element of UList and resizing the list if required. More...
 
template<class... Args>
Templace_back (Args &&... args)
 Construct an element at the end of the list, return reference to the new list element. More...
 
void push_back (const T &val)
 Append an element at the end of the list. More...
 
void push_back (T &&val)
 Move append an element at the end of the list. More...
 
void push_back (const UList< T > &list)
 Append a List to the end of this list. More...
 
template<class Addr >
void push_back (const IndirectListBase< T, Addr > &list)
 Append IndirectList contents at the end of this list. More...
 
label push_uniq (const T &val)
 Append an element if not already in the list. More...
 
void pop_back (label n=1)
 Reduce size by 1 or more elements. Can be called on an empty list. More...
 
void operator= (const UList< T > &list)
 Assignment to UList operator. Takes linear time. More...
 
void operator= (const List< T > &list)
 Assignment operator. Takes linear time. More...
 
template<class Addr >
void operator= (const IndirectListBase< T, Addr > &list)
 Assignment from IndirectList. Takes linear time. More...
 
template<unsigned N>
void operator= (const FixedList< T, N > &list)
 Copy assignment from FixedList. More...
 
void operator= (std::initializer_list< T > list)
 Assignment to an initializer list. More...
 
void operator= (const T &val)
 Assignment of all entries to the given value. More...
 
void operator= (const Foam::zero)
 Assignment of all entries to zero. More...
 
void operator= (List< T > &&list)
 Move assignment. Takes constant time. More...
 
template<int SizeMin>
void operator= (DynamicList< T, SizeMin > &&list)
 Move assignment. Takes constant time. More...
 
IstreamreadList (Istream &is)
 Read List from Istream, discarding contents of existing List. More...
 
void shallowCopy (const UList< T > &)=delete
 No shallowCopy permitted. More...
 
template<class TypeT = T>
std::enable_if< std::is_same< bool, TypeT >::value, bool >::type set (const label i, bool val=true)
 A bitSet::set() method for a list of bool. More...
 
void append (const T &val)
 Append an element at the end of the list. More...
 
void append (T &&val)
 Move append an element at the end of the list. More...
 
void append (const UList< T > &list)
 Append a List to the end of this list. More...
 
template<class Addr >
void append (const IndirectListBase< T, Addr > &list)
 Append IndirectList contents at the end of this list. More...
 
label appendUniq (const T &val)
 Same as push_uniq() More...
 
 List (const SLList< T > &list)
 Copy construct from SLList. More...
 
void operator= (const SLList< T > &list)
 Copy assign from SLList in linear time. More...
 
template<>
void resize (const label newLen)
 
- Public Member Functions inherited from UList< T >
 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
 The forward circular index. The next index in the list which returns to the first at the end of the list. More...
 
label rcIndex (const label i) const noexcept
 The reverse circular index. The previous index in the list which returns to the last at the beginning of the list. More...
 
const TfcValue (const label i) const
 Return forward circular value (ie, next value in the list) More...
 
TfcValue (const label i)
 Return forward circular value (ie, next value in the list) More...
 
const TrcValue (const label i) const
 Return reverse circular value (ie, previous value in the list) More...
 
TrcValue (const label i)
 Return reverse circular value (ie, previous value in the list) More...
 
const Tcdata () const noexcept
 Return pointer to the underlying array serving as data storage. More...
 
Tdata () 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...
 
Tfront ()
 Access first element of the list, position [0]. More...
 
const Tfront () const
 Access first element of the list. More...
 
Tback ()
 Access last element of the list, position [size()-1]. More...
 
const Tback () const
 Access last element of the list, position [size()-1]. More...
 
std::streamsize size_bytes () const noexcept
 Number of contiguous bytes for the List data. More...
 
std::streamsize byteSize () const
 Number of contiguous bytes for the List data, runtime FatalError if type is not contiguous. More...
 
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...
 
bool contains (const T &val) const
 True if the value is contained in the list. More...
 
bool contains (const T &val, label pos, label len=-1) const
 Is the value contained in the list? More...
 
label find (const T &val) const
 Find index of the first occurrence of the value. More...
 
label find (const T &val, label pos, label len=-1) 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...
 
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 (T *__restrict__ ptr, const label len) noexcept
 Copy the pointer and size. More...
 
void shallowCopy (const UList< T > &list) noexcept
 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< Tslice (const label pos, label len=-1)
 Return SubList slice (non-const access) - no range checking. More...
 
const SubList< Tslice (const label pos, label len=-1) const
 Return SubList slice (const access) - no range checking. More...
 
SubList< Tslice (const labelRange &range)
 Return SubList slice (non-const access) - with range checking. More...
 
const SubList< Tslice (const labelRange &range) const
 Return SubList slice (const access) - with range checking. More...
 
Toperator[] (const label i)
 Return element of UList. More...
 
const Toperator[] (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...
 
iterator begin (const label i) noexcept
 Return iterator at offset i from begin, clamped to [0,size] range. 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...
 
const_iterator cbegin (const label i) const noexcept
 Return const_iterator at offset i from begin, clamped to [0,size] range. More...
 
const_iterator begin (const label i) const noexcept
 Return const_iterator at offset i from begin, clamped to [0,size] range. 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...
 
bool empty () const noexcept
 True if List is empty (ie, size() is zero) More...
 
label size () const noexcept
 The number of elements in the container. More...
 
label capacity () const noexcept
 Size of the underlying storage. More...
 
void swap (UList< T > &list) noexcept
 Swap content with another UList of the same type in constant time. More...
 
bool operator== (const UList< T > &list) const
 Equality operation on ULists of the same type. More...
 
bool operator!= (const UList< T > &list) 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 > &list) const
 Compare two ULists lexicographically. Takes linear time. More...
 
bool operator<= (const UList< T > &list) const
 Return true if !(a > b). Takes linear time. More...
 
bool operator>= (const UList< T > &list) const
 Return true if !(a < b). Takes linear time. More...
 
IstreamreadList (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...
 
OstreamwriteList (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
 Test bool value at specified position, always false for out-of-range access. More...
 
template<class TypeT = T>
std::enable_if< std::is_same< bool, TypeT >::value, bool >::type get (const label i) const
 Return bool value at specified position, always false for out-of-range access. More...
 
template<class TypeT = T>
std::enable_if< std::is_same< bool, TypeT >::value, bool >::type unset (const label i)
 Unset the bool entry at specified position, always false for out-of-range access. More...
 
Tfirst ()
 Access first element of the list, position [0]. More...
 
const Tfirst () const
 Access first element of the list. More...
 
Tlast ()
 Access last element of the list, position [size()-1]. More...
 
const Tlast () const
 Access last element of the list, position [size()-1]. More...
 
bool found (const T &val, label pos=0) const
 Same as contains() More...
 
template<>
const bool & operator[] (const label i) const
 
template<>
UPstream::commsStructoperator[] (const label procID)
 
template<>
const UPstream::commsStructoperator[] (const label procID) const
 
template<>
Foam::UPstream::commsStructoperator[] (const label procID)
 
template<>
const Foam::UPstream::commsStructoperator[] (const label procID) const
 

Static Public Member Functions

static const List< T > & null ()
 Return a null List. More...
 
- Static Public Member Functions inherited from UList< T >
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...
 

Friends

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

Additional Inherited Members

- Protected Member Functions inherited from UList< T >
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
 Return a validated (start,size) subset range, which means that it always addresses a valid section of the list. More...
 
void fill_uniform (const T &val)
 Assign all entries to the given value. More...
 
void fill_uniform (const Foam::zero)
 Assign all entries to zero. More...
 
UList< T > & operator= (const UList< T > &)=delete
 No copy assignment (default: shallow copy) More...
 
template<>
void writeEntry (Ostream &os) const
 Character list writeEntry. More...
 
template<>
void operator= (const Foam::zero)
 Character list assign zero - avoids Foam::zero casting ambiguities. More...
 
template<>
void writeEntry (Ostream &os) const
 
template<>
void operator= (const Foam::zero)
 

Detailed Description

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

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

Storage is allocated on free-store during construction.

Source files

Definition at line 56 of file BitOps.H.

Member Typedef Documentation

◆ subList

typedef SubList<T> subList

Declare type of subList.

Definition at line 144 of file List.H.

Constructor & Destructor Documentation

◆ List() [1/20]

constexpr List ( )
inlinenoexcept

Default construct.

Definition at line 116 of file ListI.H.

◆ List() [2/20]

List ( const label  len)
explicit

Construct with given size.

Definition at line 83 of file List.C.

◆ List() [3/20]

List ( const label  len,
const T val 
)

Construct with given size and value for all elements.

Definition at line 99 of file List.C.

◆ List() [4/20]

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

Construct with given size initializing all elements to zero.

Definition at line 119 of file List.C.

◆ List() [5/20]

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

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

Definition at line 139 of file List.C.

◆ List() [6/20]

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

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

Definition at line 148 of file List.C.

◆ List() [7/20]

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

Construct with length=1, initializing content to zero.

Definition at line 157 of file List.C.

◆ List() [8/20]

List ( const List< T > &  list)

Copy construct from list.

Definition at line 179 of file List.C.

◆ List() [9/20]

List ( const UList< T > &  list)
explicit

Copy construct contents from list.

Definition at line 166 of file List.C.

◆ List() [10/20]

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

Construct as copy or re-use as specified.

Definition at line 192 of file List.C.

◆ List() [11/20]

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

Copy construct subset of list.

Definition at line 214 of file List.C.

◆ List() [12/20]

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

Copy construct subset of list.

Definition at line 226 of file List.C.

◆ List() [13/20]

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

Construct as copy of FixedList<T, N>

Definition at line 240 of file List.C.

◆ List() [14/20]

List ( const PtrList< T > &  list)
explicit

Construct as copy of PtrList<T>

Definition at line 247 of file List.C.

◆ List() [15/20]

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

Construct as copy of IndirectList contents.

Definition at line 258 of file List.C.

◆ List() [16/20]

List ( std::initializer_list< T list)

Construct from an initializer list.

Definition at line 271 of file List.C.

◆ List() [17/20]

List ( List< T > &&  list)
noexcept

Move construct from List.

Definition at line 278 of file List.C.

◆ List() [18/20]

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

Move construct from DynamicList.

Definition at line 289 of file List.C.

◆ List() [19/20]

List ( Istream is)

Construct from Istream.

Definition at line 31 of file ListIO.C.

◆ ~List()

~List ( )

Destructor.

Definition at line 300 of file List.C.

◆ List() [20/20]

List ( const SLList< T > &  list)
explicit

Copy construct from SLList.

Definition at line 487 of file List.C.

Member Function Documentation

◆ null()

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

Return a null List.

Definition at line 130 of file ListI.H.

Referenced by mapDistributeBase::whichSchedule().

Here is the caller graph for this function:

◆ clone()

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

Clone.

Definition at line 121 of file ListI.H.

◆ clear()

void clear ( )
inline

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

Definition at line 137 of file ListI.H.

Referenced by polyMeshAdder::add(), GAMGAgglomeration::agglomerateLduAddressing(), InterfaceForce< CloudType >::cacheFields(), PressureGradientForce< CloudType >::cacheFields(), LiftForce< CloudType >::cacheFields(), holeToFace::calcClosure(), coupledFaPatch::calcTransformTensors(), correctedCellVolumeWeightMethod::calculateAddressing(), cellVolumeWeightMethod::calculateAddressing(), primitiveMesh::cellEdges(), primitiveMesh::cellPoints(), ensightPart::clear(), SortableList< T >::clear(), meshedSurfRef::clear(), mergedSurf::clear(), zone::clearPrimitives(), PackedList< 2 >::clearStorage(), memorybuf::out_dynamic::clearStorage(), polySurface::copySurface(), surfMesh::copySurface(), removePoints::countPointUsage(), distanceSurface::createGeometry(), box::createMap(), meshRefinement::createZoneBaffles(), metisLikeDecomp::decomposeGeneral(), DimensionedField< Type, Foam::pointMesh >::DimensionedField(), Foam::duplicateOrder(), Pstream::exchange(), Pstream::exchangeSizes(), Field< Foam::vector >::Field(), FieldField< Foam::Field, LUType >::FieldField(), boundaryDataSurfaceReader::fieldNames(), refinementSurfaces::findAllIntersections(), searchablePlane::findLineAll(), searchablePlate::findLineAll(), searchableDisk::findLineAll(), searchableCylinder::findLineAll(), searchableSurfaceWithGaps::findLineAll(), searchableSurfaceCollection::findLineAll(), searchableRotatedBox::findLineAll(), searchableBox::findLineAll(), searchableCone::findLineAll(), searchableSphere::findLineAll(), distributedTriSurfaceMesh::findLineAll(), globalIndex::gather(), globalIndex::gatherValues(), FaceCellWave< Foam::wallPointData< bool > >::handleProcPatches(), meshedSurfRef::movePoints(), argList::parse(), Foam::parseStream(), STARCDsurfaceFormat< Face >::read(), TRIsurfaceFormat< Face >::read(), STLsurfaceFormat< Face >::read(), areaWrite::read(), ensightWrite::read(), STARCDMeshReader::readCells(), Time::readDict(), lumpedPointMovement::readDict(), List< Field< scalar > >::readList(), boundaryMesh::readTriSurface(), polyMesh::readUpdate(), surfMesh::removeZones(), particleTracksSampler::reset(), meshedSurfRef::reset(), memorybuf::in_dynamic::reset(), meshedSurfRef::resetPoints(), cyclicAMIPolyPatch::restoreScaledGeometry(), decompositionMethod::setConstraints(), lumpedPointMovement::setInterpolator(), faceSetOption::setSelection(), cellSetOption::setSelection(), zoneDistribute::setUpCommforZone(), MeshedSurface< Foam::face >::stitchFaces(), hexRef8::storeData(), PatchTools::subsetMap(), UnsortedMeshedSurface< Face >::swap(), trackingInverseDistance::update(), cellVolumeWeight::update(), inverseDistance::update(), levelSetDesignVariables::updateSignedDistances(), while(), zoneToPoint::zones(), zoneToCell::zones(), and zoneToFace::zones().

◆ resize() [1/3]

void resize ( const label  len)
inline

Adjust allocated size of list.

The boolList version fills new memory with false.

Definition at line 160 of file ListI.H.

Referenced by preservePatches::add(), singleProcessorFaceSets::add(), geometric::add(), object::addData(), regIOobject::addWatch(), AMIInterpolation::agglomerate(), UPstream::allGatherValues(), Foam::blankElementMasks(), searchablePlane::boundingSpheres(), searchableDisk::boundingSpheres(), searchablePlate::boundingSpheres(), searchableSphere::boundingSpheres(), box::box(), SurfaceFilmModel< Foam::KinematicCloud< Cloud< basicKinematicCollidingParcel > > >::cacheFilmFields(), globalMeshData::calcCellCells(), isoSurfaceBase::calcCellCuts(), Foam::calcElementMasks(), polyLine::calcParam(), topoSetSource::check(), MeshedSurface< Foam::face >::checkFaces(), cellShape::collapsedFaces(), triSurfaceTools::collapseEdges(), collector::collector(), mappedPatchBase::collectSamples(), multiWorldConnections::comms(), wallDistAddressing::correct(), distanceSurface::createGeometry(), metisLikeDecomp::decomposeGeneral(), faMeshDecomposition::decomposeMesh(), metisDecomp::decomposeSerial(), kahipDecomp::decomposeSerial(), scotchDecomp::decomposeSerial(), directions::directions(), faMeshDistributor::distribute(), Foam::duplicateOrder(), cell::edges(), extendedEdgeMesh::edgeTreesByType(), Foam::etcDirs(), externalWallHeatFluxTemperatureFvPatchScalarField::externalWallHeatFluxTemperatureFvPatchScalarField(), ITstream::extract(), NASCore::faceDecomposition(), ABAQUSCore::faceDecomposition(), patchProbes::findElements(), searchableDisk::findLine(), searchableSphere::findLine(), searchableSphere::findLineAll(), searchableSphere::findLineAny(), namesList< solutionEntry >::findNames(), searchableDisk::findNearest(), searchableSphere::findNearest(), lumpedPointMovement::forcesAndMoments(), decomposedBlockData::gather(), decomposedBlockData::gatherSlaveData(), fileOperation::getGlobalHostIORanks(), Foam::getHostGroupIds(), Foam::exprTools::getList(), searchableDisk::getNormal(), searchableSphere::getNormal(), searchableDisk::getRegion(), searchableSphere::getRegion(), searchableSphere::getVolumeType(), Foam::identity(), dynamicMultiMotionSolverFvMesh::init(), heatExchangerModel::initialise(), GAMGInterface::interfaceInternalField(), Foam::invertOneToMany(), isoSurfaceTopo::isoSurfaceTopo(), dictionary::keys(), labelRange::labels(), UPstream::listGatherValues(), triSurfaceLoader::load(), dlLibraryTable::loaded(), processorFaPatch::makeNonGlobalPatchPoints(), PatchTools::matchEdges(), wordRes::matching(), scalars::matching(), PatchTools::matchPoints(), triSurfaceTools::mergePoints(), globalIndex::mpiGather(), extendedEdgeMesh::nearestFeatureEdgeByType(), processorTopology::New(), Foam::nonProcessorPatchNames(), polynomialFunction::operator+=(), polynomialFunction::operator-=(), argList::parse(), Foam::parseStream(), ParticleHistogram< CloudType >::ParticleHistogram(), sampledPatch::patchIDs(), phaseSystem::phaseSystem(), pointCells::pointCells(), KinematicReynoldsNumber< CloudType >::postEvolve(), ThermoReynoldsNumber< CloudType >::postEvolve(), Foam::prependList(), Foam::printTable(), processorTopology::procAdjacency(), faFieldDecomposer::processorAreaPatchFieldDecomposer::processorAreaPatchFieldDecomposer(), ABAQUSsurfaceFormat< Face >::read(), pointNoise::read(), limitHeight::read(), multiphaseMangrovesTurbulenceModel::read(), writeObjects::read(), explicitPorositySource::read(), derivedFields::read(), areaWrite::read(), surfaceNoise::read(), exprValue::read(), functionObjectList::read(), Foam::readBlock(), Foam::readDir(), masterUncollatedFileOperation::readHeader(), masterUncollatedFileOperation::readStream(), functionEntry::readStringList(), surfaceNoise::readSurfaceData(), isoAlpha::reconstruct(), searchableBox::regions(), searchableDisk::regions(), searchablePlate::regions(), searchableSphere::regions(), ITstream::remove(), fvMeshTools::removeEmptyPatches(), profilingPstream::report(), PackedList< 2 >::reserve(), memorybuf::out_dynamic::reserve(), faMeshBoundaryHalo::reset(), fvMeshSubset::reset(), globalIndex::reset(), PDRblock::gridControl::resize(), sampledCuttingSurface::sampledCuttingSurface(), sampledPlane::sampledPlane(), Foam::BitOps::set(), List< Field< scalar > >::set(), PackedList< 2 >::setCapacity(), lumpedPointMovement::setInterpolator(), faceSetOption::setSelection(), cellSetOption::setSelection(), List< Field< scalar > >::setSize(), PackedList< 2 >::shrink(), memorybuf::out_dynamic::shrink(), LUscalarMatrix::solve(), basicThermo::splitThermoName(), MeshedSurface< Foam::face >::stitchFaces(), streamLineParticle::streamLineParticle(), memorybuf::out_dynamic::swap(), syncTools::swapBoundaryCellList(), syncTools::swapBoundaryCellPositions(), masterUncollatedFileOperation::sync(), HashTable< const regIOobject * >::tocEntries(), HashTable< const regIOobject * >::tocKeys(), HashTable< const regIOobject * >::tocValues(), exprValue::tokens(), topoBoolSet::topoBoolSet(), faceAreaIntersect::triangulate(), hashedWordList::uniq(), PrimitivePatch<::Foam::List< labelledTri >, pointField >::uniqBoundaryFaces(), Foam::uniqueOrder(), sampledFaceZone::update(), sampledPatch::update(), faceZone::updateMesh(), polyMesh::updateMesh(), faMesh::updateMesh(), wallBoundedStreamLineParticle::wallBoundedStreamLineParticle(), multiFieldValue::write(), ParticleZoneInfo< CloudType >::write(), decomposedBlockData::writeBlocks(), lumpedPointMovement::writeStateVTP(), zeroATCcells::zeroATCcells(), adjointkOmegaSST::zeroFirstCell(), zoneToCell::zones(), zoneToPoint::zones(), zoneToFace::zones(), and faceZoneToCell::zones().

◆ resize() [2/3]

void resize ( const label  len,
const T val 
)

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

Definition at line 309 of file List.C.

◆ resize_fill()

void resize_fill ( const label  len,
const T val 
)
inline

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

Definition at line 167 of file ListI.H.

◆ resize_nocopy()

void resize_nocopy ( const label  len)
inline

Adjust allocated size of list without necessarily.

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

Definition at line 175 of file ListI.H.

Referenced by AMIInterpolation::agglomerate(), holeToFace::calcClosure(), mapDistributeBase::calcCompactAddressing(), primitiveMesh::calcPointOrder(), distributedDILUPreconditioner::calcReciprocalD(), processorColour::cellColour(), processorColour::colour(), metisLikeDecomp::decomposeGeneral(), metisDecomp::decomposeSerial(), kahipDecomp::decomposeSerial(), scotchDecomp::decomposeSerial(), fvMeshDistribute::distribute(), mapDistributeBase::distribute(), Pstream::exchange(), Pstream::exchangeConsensus(), Pstream::exchangeSizes(), Foam::fillTokens(), patchProbes::findElements(), PstreamBuffers::finishedSends(), globalIndex::gather(), globalIndex::gatherValues(), globalIndex::get(), searchableBox::getVolumeType(), distributedTriSurfaceMesh::getVolumeType(), memorybuf::in_dynamic::in_dynamic(), calculatedProcessorFvPatchField< Type >::initEvaluate(), heatExchangerModel::initialise(), surfaceNoise::initialise(), lduCalculatedProcessorField< Type >::initInterfaceMatrixUpdate(), calculatedProcessorFvPatchField< Type >::initInterfaceMatrixUpdate(), distributedTriSurfaceMesh::localQueries(), primitiveMeshTools::makeFaceCentresAndAreas(), mapDistribute::mapDistribute(), mapDistributeBase::mapDistributeBase(), fvMesh::mapFields(), AMIInterpolation::normaliseWeights(), cyclicPolyPatch::order(), Foam::blockMeshTools::read(), List< Field< scalar > >::readList(), surfaceNoise::readSurfaceData(), PDRblock::location::reset(), memorybuf::in_dynamic::reset(), option::resetApplied(), particleTracksSampler::resetCloud(), mapDistributeBase::send(), decompositionMethod::setConstraints(), faceSetOption::setFaceSelection(), Foam::sortedOrder(), sampledFaceZone::update(), and ensightFaces::write().

◆ resize_unsafe()

void resize_unsafe ( const label  len)
inlinenoexcept

Change the addressed list size directly without affecting any memory management (advanced usage).

It is left to the caller to avoid unsafe lengthening beyond the allocated memory region.

Definition at line 182 of file ListI.H.

◆ setSize() [1/2]

void setSize ( const label  n)
inline

Alias for resize()

Definition at line 316 of file List.H.

Referenced by preserveBaffles::add(), preserveFaceZones::add(), fvMeshAdder::add(), polyMeshAdder::add(), refinementHistory::add(), fvMeshPrimitiveLduAddressing::addAddressing(), cyclicAMIPolyPatch::addAMIFaces(), cellTable::addCellZones(), addPatchCellLayer::addedCells(), lduPrimitiveMesh::addInterfaces(), edgeSurface::addIntersectionEdges(), snappyLayerDriver::addLayers(), interRegionExplicitPorositySource::addSup(), adjointSolverManager::adjointSolverManager(), AMIInterpolation::agglomerate(), GAMGAgglomeration::agglomerateLduAddressing(), face::areaInContact(), FreeStream< CloudType >::autoMap(), extendedEdgeMesh::autoMap(), meshRefinement::balance(), Bezier::Bezier(), bladeModel::bladeModel(), booleanSurface::booleanSurface(), searchableExtrudedCircle::boundingSpheres(), searchableBox::boundingSpheres(), searchableCylinder::boundingSpheres(), searchableSurfaceCollection::boundingSpheres(), searchableCone::boundingSpheres(), triSurfaceMesh::boundingSpheres(), nearWallFields::calcAddressing(), highAspectRatioFvGeometryScheme::calcAspectRatioWeights(), primitiveMesh::calcCells(), addPatchCellLayer::calcExtrudeInfo(), cellToFaceStencil::calcFaceStencil(), CentredFitSnGradData< Polynomial >::calcFit(), FitData< CentredFitSnGradData< Polynomial >, extendedCentredCellToFaceStencil, Polynomial >::calcFit(), createShellMesh::calcPointRegions(), coupledPolyPatch::calcTransformTensors(), waveMethod::calculate(), correctedCellVolumeWeightMethod::calculate(), surfaceNoise::calculate(), meshRefinement::calculateEdgeWeights(), GAMGAgglomeration::calculateRegionMaster(), nutUSpaldingWallFunctionFvPatchScalarField::calcUTau(), pointMVCWeight::calcWeights(), primitiveMeshTools::cellClosedness(), fvMotionSolver::cellMotionBoundaryTypes(), boundaryMesh::changeFaces(), extractEulerianParticles::checkFaceZone(), GAMGAgglomeration::checkRestriction(), refinementHistory::clone(), extendedCellToFaceStencil::collectData(), extendedFaceToCellStencil::collectData(), holeToFace::combine(), removeFaces::compatibleRemoves(), axisAligned::computeControlPoints(), transformBox::computeControlPoints(), NURBS3DVolume::computeParametricCoordinates(), inverseFaceDistanceDiffusivity::correct(), inversePointDistanceDiffusivity::correct(), removePoints::countPointUsage(), meshRefinement::createZoneBaffles(), motionSmootherAlgo::curPoints(), hexCellLooper::cut(), geomCellLooper::cut(), cyclicACMIGAMGInterface::cyclicACMIGAMGInterface(), cyclicAMIGAMGInterface::cyclicAMIGAMGInterface(), faMeshDecomposition::decomposeMesh(), scotchDecomp::decomposeSerial(), mapPatchChange::deletedPatches(), meshRefinement::directionalRefineCandidates(), snappySnapDriver::doSnap(), mapDistributeBase::exchangeAddressing(), extendedEdgeMesh::extendedEdgeMesh(), extendedFeatureEdgeMesh::extendedFeatureEdgeMesh(), extendedUpwindCellToFaceStencil::extendedUpwindCellToFaceStencil(), primitiveMesh::faceEdges(), primitiveMeshTools::facePyramidVolume(), searchablePlateFeatures::features(), searchableSurfacesQueries::findAllIntersections(), refinementSurfaces::findAllIntersections(), searchableSurfacesQueries::findAnyIntersection(), shellSurfaces::findDirectionalLevel(), shellSurfaces::findHigherGapLevel(), refinementSurfaces::findHigherIntersection(), refinementSurfaces::findInside(), shellSurfaces::findLevel(), triSurfaceSearch::findLine(), searchablePlane::findLine(), searchablePlate::findLine(), searchableCylinder::findLine(), searchableSurfaceWithGaps::findLine(), searchableSurfaceCollection::findLine(), searchableRotatedBox::findLine(), searchableBox::findLine(), searchableCone::findLine(), triSurfaceSearch::findLineAll(), searchablePlane::findLineAll(), searchablePlate::findLineAll(), searchableDisk::findLineAll(), searchableCylinder::findLineAll(), searchableSurfaceWithGaps::findLineAll(), searchableSurfaceCollection::findLineAll(), searchableRotatedBox::findLineAll(), searchableBox::findLineAll(), searchableCone::findLineAll(), distributedTriSurfaceMesh::findLineAll(), triSurfaceSearch::findLineAny(), searchableCylinder::findLineAny(), searchableRotatedBox::findLineAny(), searchableBox::findLineAny(), searchableCone::findLineAny(), mappedPatchBase::findLocalSamples(), searchableSurfacesQueries::findNearest(), triSurfaceRegionSearch::findNearest(), triSurfaceSearch::findNearest(), searchablePlane::findNearest(), searchableExtrudedCircle::findNearest(), searchablePlate::findNearest(), searchableCylinder::findNearest(), searchableRotatedBox::findNearest(), searchableBox::findNearest(), searchableCone::findNearest(), distributedTriSurfaceMesh::findNearest(), refinementFeatures::findNearestEdge(), searchableSurfacesQueries::findNearestIntersection(), refinementSurfaces::findNearestIntersection(), refinementFeatures::findNearestPoint(), refinementSurfaces::findNearestRegion(), refinementFeatures::findNearestRegionEdge(), searchableExtrudedCircle::findParametricNearest(), NURBS3DVolume::findPointsInBox(), mappedPatchBase::findSamples(), polyMeshAdder::findSharedPoints(), FreeStream< CloudType >::FreeStream(), decomposedBlockData::gather(), combineFaces::getMergeSets(), decompositionConstraint::getMinBoundaryValue(), searchableExtrudedCircle::getNormal(), searchablePlate::getNormal(), searchableCylinder::getNormal(), searchableSurfaceCollection::getNormal(), searchableBox::getNormal(), triSurfaceMesh::getNormal(), searchableCone::getNormal(), distributedTriSurfaceMesh::getNormal(), boundaryMesh::getNTris(), weightedPosition::getPoints(), searchablePlane::getRegion(), searchableExtrudedCircle::getRegion(), searchablePlate::getRegion(), searchableCylinder::getRegion(), searchableSurfaceCollection::getRegion(), searchableRotatedBox::getRegion(), searchableBox::getRegion(), triSurfaceMesh::getRegion(), searchableCone::getRegion(), distributedTriSurfaceMesh::getRegion(), removePoints::getUnrefimentSet(), cellLooper::getVertEdgesNonFace(), triSurfaceTools::getVertexTriangles(), searchableCylinder::getVolumeType(), triSurfaceMesh::getVolumeType(), searchableCone::getVolumeType(), distributedTriSurfaceMesh::getVolumeType(), meshRefinement::getZoneFaces(), cellCellStencil::globalCellCells(), addPatchCellLayer::globalEdgeFaces(), triSurfaceTools::greenRefine(), Distribution< Type >::index(), meshToMeshMethod::initialise(), InjectedParticleDistributionInjection< CloudType >::initialise(), fluxSummary::initialiseSurfaceAndDirection(), optimisationManager::initialize(), linearInterpolationWeights::integrationWeights(), AMIInterpolation::interpolateToSource(), AMIInterpolation::interpolateToTarget(), isoSurfaceCell::isoSurfaceCell(), isoSurfacePoint::isoSurfacePoint(), lduPrimitiveMesh::lduPrimitiveMesh(), distributedTriSurfaceMesh::localQueries(), highAspectRatioFvGeometryScheme::makeAverageCentres(), volPointInterpolationAdjoint::makeBoundaryWeights(), voxelMeshSearch::makeMesh(), averageNeighbourFvGeometryScheme::makeNonOrthoWeights(), averageNeighbourFvGeometryScheme::makePyrHeights(), mappedWallPolyPatch::mapCollocatedFaces(), mappedPolyPatch::mapCollocatedFaces(), cyclicACMIPolyPatch::mapCollocatedFaces(), cyclicPolyPatch::mapCollocatedFaces(), mapDistributeBase::mapDistributeBase(), faMesh::mapOldAreas(), trackingInverseDistance::markDonors(), inverseDistance::markDonors(), boundaryMesh::markFaces(), PatchTools::markZones(), triSurface::markZones(), Foam::matchPoints(), cellToFaceStencil::merge(), edgeIntersections::merge(), meshRefinement::mergeBaffles(), globalMeshData::mergePoints(), extendedEdgeMesh::mergePointsAndSort(), fileOperation::mergeTimes(), engineValve::movingPatchIDs(), extendedEdgeMesh::nearestFeatureEdge(), surfaceFeatures::nearestSurfEdge(), cellCuts::nonAnchorPoints(), Distribution< Type >::normalised(), objectiveManager::objectiveManager(), oldCyclicPolyPatch::order(), processorPolyPatch::order(), cyclicAMIPolyPatch::order(), distributedTriSurfaceMesh::overlappingSurface(), ParticleCollector< CloudType >::ParticleCollector(), polyMeshAdder::patchFacePairs(), pointFieldReconstructor::pointFieldReconstructor(), PatchTools::pointNormals(), Foam::polyMeshZipUpCells(), powerLawLopesdaCostaZone::powerLawLopesdaCostaZone(), snappySnapDriver::preSmoothPatch(), GAMGAgglomeration::procAgglomerateLduAddressing(), Distribution< Type >::raw(), TRIsurfaceFormat< Face >::read(), runTimeControl::read(), cloudSolution::read(), multiphaseMangrovesTurbulenceModel::read(), STLsurfaceFormat< Face >::read(), STARCDMeshReader::readBoundary(), STARCDMeshReader::readCells(), FIREMeshReader::readFaces(), reader::readField(), boundaryMesh::readTriSurface(), EFA< CompType, ThermoType >::reduceMechanism(), PFA< CompType, ThermoType >::reduceMechanism(), DAC< CompType, ThermoType >::reduceMechanism(), DRGEP< CompType, ThermoType >::reduceMechanism(), meshRefinement::refineCandidates(), searchablePlane::regions(), searchableExtrudedCircle::regions(), searchableCylinder::regions(), searchableSurfaceCollection::regions(), searchableCone::regions(), triSurfaceMesh::regions(), edgeMesh::regions(), fvMeshSubset::reset(), searchableSurfaces::searchableSurfaces(), extendedEdgeMesh::select(), meshRefinement::selectIntersectedFaces(), levelSetDesignVariables::setActiveDesignVariables(), weightedPosition::setPoints(), box::setRefineFlags(), duplicatePoints::setRefinement(), refinementIterator::setRefinement(), boundaryCutter::setRefinement(), removePoints::setRefinement(), tetDecomposer::setRefinement(), addPatchCellLayer::setRefinement(), hexRef8::setRefinement(), propellerInfo::setSampleDiskGeometry(), SortableListDRGEP< Type >::setSize(), SortableListEFA< Type >::setSize(), bufferedAccumulator< scalar >::setSizes(), removePoints::setUnrefinement(), ParSortableList< Type >::sort(), extendedEdgeMesh::sortedOrder(), extendedEdgeMesh::sortPointsAndEdges(), meshRefinement::splitFacesUndo(), leastSquares::stencilWeights(), cellVolumeWeight::stencilWeights(), inverseDistance::stencilWeights(), oversetFvPatchField< Type >::storeFringeCoefficients(), triSurfaceRegionSearch::treeByRegion(), boundaryMesh::triangulate(), triSurfaceTools::triangulate(), triSurfaceTools::triangulateFaceCentre(), boundaryMesh::triangulateLocal(), advancingFrontAMI::triangulatePatch(), triSurface::triFaceFaces(), streamLineBase::trimToBox(), trackingInverseDistance::update(), inverseDistance::update(), oversetFvMeshBase::updateAddressing(), turbulentTemperatureRadCoupledMixedFvPatchScalarField::updateCoeffs(), designVariablesUpdate::updateGradientsAndValues(), edgeVertex::updateLabels(), removePoints::updateMesh(), boundaryCutter::updateMesh(), addPatchCellLayer::updateMesh(), faMesh::updateMesh(), ISQP::updateSizes(), MMA::updateSizes(), zoneCellStencils::validBoundaryFaces(), cellToCellStencil::validBoundaryFaces(), cellToFaceStencil::validBoundaryFaces(), splineInterpolationWeights::valueWeights(), linearInterpolationWeights::valueWeights(), topOVariablesBase::writeFluidSolidInterface(), topOVariablesBase::writeSurfaceFiles(), streamLineBase::writeToFile(), and adjointkOmegaSST::zeroFirstCell().

◆ setSize() [2/2]

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

Alias for resize()

Definition at line 321 of file List.H.

◆ transfer() [1/2]

void transfer ( List< T > &  list)

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

Definition at line 326 of file List.C.

Referenced by geometric::add(), extendedEdgeMesh::allNearestFeatureEdges(), extendedEdgeMesh::allNearestFeaturePoints(), faceZoneToFaceZone::applyToSet(), setToCellZone::applyToSet(), setToPointZone::applyToSet(), setAndNormalToFaceZone::applyToSet(), setToFaceZone::applyToSet(), searchableSurfaceToFaceZone::applyToSet(), setsToFaceZone::applyToSet(), cellToFaceZone::applyToSet(), extendedEdgeMesh::autoMap(), PDRblock::blockMeshDict(), polyDualMesh::calcFeatures(), createShellMesh::calcPointRegions(), correctedCellVolumeWeightMethod::calculateAddressing(), cellVolumeWeightMethod::calculateAddressing(), mapNearestMethod::calculateAddressing(), directMethod::calculateAddressing(), triSurface::compactPoints(), MeshedSurface< Foam::face >::compactPoints(), removeFaces::compatibleRemoves(), distanceSurface::createGeometry(), inverseDistance::createStencil(), geomCellLooper::cut(), topoCellLooper::cut(), extendedEdgeMesh::cut(), cyclicACMIGAMGInterface::cyclicACMIGAMGInterface(), cyclicAMIGAMGInterface::cyclicAMIGAMGInterface(), fvMeshDistribute::distribute(), pointNoise::filterTimeData(), triSurfaceSearch::findLineAll(), searchableRotatedBox::findLineAll(), searchableBox::findLineAll(), distributedTriSurfaceMesh::findNearest(), for(), PatchTools::gatherAndMerge(), Foam::getSelectedProcs(), memorybuf::in_dynamic::in_dynamic(), InjectedParticleInjection< CloudType >::initialise(), InjectedParticleDistributionInjection< CloudType >::initialise(), isoSurfaceCell::isoSurfaceCell(), isoSurfacePoint::isoSurfacePoint(), triSurfaceLoader::load(), voxelMeshSearch::makeMesh(), PatchTools::markZone(), momentOfInertia::massPropertiesPatch(), polyBoundaryMesh::matchGroups(), cellToCellStencil::merge(), fileOperation::mergeTimes(), MeshedSurface< Foam::face >::MeshedSurface(), meshedSurfRef::movePoints(), oversetFvMeshBase::normalisation(), properties::objectResultEntries(), noiseFFT::octaveBandInfo(), SortableList< T >::operator=(), memorybuf::out_dynamic::out_dynamic(), SortableList< T >::partialReverseSort(), SortableList< T >::partialSort(), GAMGAgglomeration::procAgglomerateRestrictAddressing(), OBJedgeFormat::read(), binModel::read(), streamLineParticle::readFields(), List< Field< scalar > >::readList(), UList< Foam::vector >::readList(), STARCDCore::readPoints(), edgeMesh::regions(), cuttingSurfaceBase::remapFaces(), SortableList< T >::reverseSort(), noiseModel::setOctaveBands(), box::setRefineFlags(), hexRef8::setRefinement(), SortableListEFA< Type >::sort(), SortableListDRGEP< Type >::sort(), SortableList< T >::sort(), extendedEdgeMesh::sortPointsAndEdges(), SortableListDRGEP< Type >::stableSort(), SortableListEFA< Type >::stableSort(), PackedList< 2 >::transfer(), trackingInverseDistance::update(), inverseDistance::update(), mappedVelocityFluxFixedValueFvPatchField::updateCoeffs(), uniformInterpolatedDisplacementPointPatchVectorField::updateCoeffs(), topoBoolSet::updateLabels(), meshRefinement::updateList(), hexRef8Data::updateMesh(), boundaryCutter::updateMesh(), localPointRegion::updateMesh(), hexRef8::updateMesh(), meshRefinement::updateMesh(), solverFieldSelection::updateSelection(), volFieldSelection::updateSelection(), cellCellStencil::walkFront(), and streamLineBase::writeToFile().

◆ transfer() [2/2]

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

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

Definition at line 345 of file List.C.

◆ newElmt()

T & newElmt ( const label  i)
inline

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

Definition at line 189 of file ListI.H.

◆ emplace_back()

T & emplace_back ( Args &&...  args)
inline

Construct an element at the end of the list, return reference to the new list element.

If this is frequently required, consider a DynamicList instead.

Definition at line 212 of file ListI.H.

Referenced by exprValue::tokens().

Here is the caller graph for this function:

◆ push_back() [1/4]

◆ push_back() [2/4]

void push_back ( T &&  val)
inline

Move append an element at the end of the list.

If this is frequently required, consider a DynamicList

Definition at line 237 of file ListI.H.

◆ push_back() [3/4]

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

Append a List to the end of this list.

If this is frequently required, consider a DynamicList

Definition at line 247 of file ListI.H.

◆ push_back() [4/4]

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

Append IndirectList contents at the end of this list.

If this is frequently required, consider a DynamicList

Definition at line 264 of file ListI.H.

◆ push_uniq()

Foam::label push_uniq ( const T val)
inline

Append an element if not already in the list.

Returns
the change in list length

Definition at line 285 of file ListI.H.

Referenced by List< Field< scalar > >::appendUniq(), and mapDistributeBase::schedule().

Here is the caller graph for this function:

◆ pop_back()

void pop_back ( label  n = 1)
inline

Reduce size by 1 or more elements. Can be called on an empty list.

Definition at line 300 of file ListI.H.

Referenced by correctedCellVolumeWeightMethod::calculateAddressing(), cellVolumeWeightMethod::calculateAddressing(), and noiseFFT::octaveBandInfo().

Here is the caller graph for this function:

◆ operator=() [1/10]

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

Assignment to UList operator. Takes linear time.

Definition at line 360 of file List.C.

Referenced by SortableListDRGEP< Type >::operator=(), SortableListEFA< Type >::operator=(), SortableList< T >::operator=(), and ITstream::operator=().

Here is the caller graph for this function:

◆ operator=() [2/10]

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

Assignment operator. Takes linear time.

Definition at line 377 of file List.C.

◆ operator=() [3/10]

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

Assignment from IndirectList. Takes linear time.

Definition at line 405 of file List.C.

◆ operator=() [4/10]

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

Copy assignment from FixedList.

Definition at line 395 of file List.C.

◆ operator=() [5/10]

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

Assignment to an initializer list.

Definition at line 413 of file List.C.

◆ operator=() [6/10]

void operator= ( const T val)
inline

Assignment of all entries to the given value.

Definition at line 316 of file ListI.H.

◆ operator=() [7/10]

void operator= ( const Foam::zero  )
inline

Assignment of all entries to zero.

Definition at line 323 of file ListI.H.

◆ operator=() [8/10]

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

Move assignment. Takes constant time.

Definition at line 422 of file List.C.

◆ operator=() [9/10]

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

Move assignment. Takes constant time.

Definition at line 435 of file List.C.

◆ readList()

Foam::Istream & readList ( Istream is)

Read List from Istream, discarding contents of existing List.

Definition at line 169 of file ListIO.C.

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

Here is the caller graph for this function:

◆ shallowCopy()

void shallowCopy ( const UList< T > &  )
delete

No shallowCopy permitted.

Referenced by ODESolver::resizeField().

Here is the caller graph for this function:

◆ set()

std::enable_if<std::is_same<bool, TypeT>::value, bool>::type set ( const label  i,
bool  val = true 
)
inline

A bitSet::set() method for a list of bool.

Increases size when setting an out-of-bounds value.

Returns
True if value changed.

Definition at line 489 of file List.H.

Referenced by GAMGAgglomeration::agglomerateLduAddressing(), meshRefinement::blockLeakFaces(), edgeCollapser::consistentCollapse(), hexRef8::consistentUnrefinement(), MomentumTransferPhaseSystem< BasePhaseSystem >::ddtCorrByAs(), faceSet::distribute(), pointSet::distribute(), cellSet::distribute(), distanceSurface::filterPrepareRegionSplit(), distanceSurface::filterRegionProximity(), masterUncollatedFileOperation::findTimes(), syncTools::getMasterEdges(), syncTools::getMasterPoints(), dynamicRefineFvMesh::init(), InjectedParticleDistributionInjection< CloudType >::initialise(), isoSurfacePoint::isoSurfacePoint(), MomentumTransferPhaseSystem< BasePhaseSystem >::momentumTransferf(), multiphaseSystem::multiphaseSystem(), oversetFvMeshBase::normalisation(), phaseSystem::phaseSystem(), GAMGAgglomeration::procAgglomerateLduAddressing(), ABAQUSCore::readHelper::purge_solids(), boundaryMesh::readTriSurface(), refinementSurfaces::refinementSurfaces(), sampledMeshedSurface::sampledMeshedSurface(), Foam::BitOps::set(), fvMatrix< Type >::setBounAndInterCoeffs(), FaceCellWave< Foam::wallPointData< bool > >::setFaceInfo(), lumpedPointMovement::setInterpolator(), addPatchCellLayer::setRefinement(), hexRef8::setRefinement(), ISQP::ShermanMorrisonPrecon(), fieldSmoother::smoothNormals(), multiphaseSystem::solve(), multiphaseSystem::solveAlphas(), MultiComponentPhaseModel< BasePhaseModel, phaseThermo >::solveYi(), pointSet::sync(), faceSet::sync(), topoBoolSet::updateLabels(), dynamicRefineFvMesh::updateTopology(), cellCellStencil::walkFront(), and faMeshDecomposition::writeDecomposition().

Here is the caller graph for this function:

◆ append() [1/4]

void append ( const T val)
inline

Append an element at the end of the list.

If this is frequently required, consider a DynamicList FOAM_DEPRECATED_FOR(2022-10, "push_back()")

Definition at line 517 of file List.H.

Referenced by singleProcessorFaceSets::add(), cellTable::addCellZones(), unwatchedIOdictionary::addWatch(), AMIInterpolation::agglomerate(), PDRblock::gridControl::append(), Foam::appendNamedEntry(), createShellMesh::calcPointRegions(), waveMethod::calculate(), directMethod::calculateAddressing(), GAMGAgglomeration::checkRestriction(), triSurface::compactPoints(), MeshedSurface< Foam::face >::compactPoints(), removeFaces::compatibleRemoves(), hexRef8::consistentSlowRefinement(), hexRef8::consistentSlowRefinement2(), box::createMap(), faMeshDecomposition::decomposeMesh(), distributedDILUPreconditioner::distributedDILUPreconditioner(), snappyLayerDriver::doLayers(), edgeSurface::edgeSurface(), zeroGradient::execute(), ddt2::execute(), shellSurfaces::findDirectionalLevel(), localPointRegion::findDuplicateFacePairs(), Foam::findEtcEntries(), distributedTriSurfaceMesh::findNearest(), removeCells::getExposedFaces(), MRFZoneList::getFromName(), meshRefinement::getZones(), triSurfaceTools::greenRefine(), inverseDistance::holeExtrapolationStencil(), InjectedParticleDistributionInjection< CloudType >::initialise(), viewFactor::initialise(), fluxSummary::initialiseCellZoneAndDirection(), fluxSummary::initialiseFaceZone(), fluxSummary::initialiseFaceZoneAndDirection(), fluxSummary::initialiseSurface(), fluxSummary::initialiseSurfaceAndDirection(), triSurfaceLoader::load(), LuoSvendsen::LuoSvendsen(), marchingCells::march(), trackingInverseDistance::markDonors(), inverseDistance::markDonors(), PatchTools::markZone(), triSurface::markZone(), blockMesh::mesh(), meshRefinement::meshedPatches(), findCellParticle::move(), boundaryMesh::patchify(), refinementParameters::refinementParameters(), edgeMesh::regions(), regionSplit2D::regionSplit2D(), edgeCollapser::setRefinement(), hexRef8::setRefinement(), Foam::fvc::spread(), faceZoneSet::subset(), meshRefinement::subsetBaffles(), Foam::fvc::sweep(), faceZoneSet::sync(), oversetFvMeshBase::updateAddressing(), uniformInterpolatedDisplacementPointPatchVectorField::updateCoeffs(), externalDisplacementMeshMover::updateMesh(), and particleDistribution::write().

◆ append() [2/4]

void append ( T &&  val)
inline

Move append an element at the end of the list.

If this is frequently required, consider a DynamicList FOAM_DEPRECATED_FOR(2022-10, "push_back()")

Definition at line 525 of file List.H.

◆ append() [3/4]

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

Append a List to the end of this list.

If this is frequently required, consider a DynamicList FOAM_DEPRECATED_FOR(2022-10, "push_back()")

Definition at line 533 of file List.H.

◆ append() [4/4]

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

Append IndirectList contents at the end of this list.

If this is frequently required, consider a DynamicList FOAM_DEPRECATED_FOR(2022-10, "push_back()")

Definition at line 542 of file List.H.

◆ appendUniq()

label appendUniq ( const T val)
inline

Same as push_uniq()

Definition at line 551 of file List.H.

◆ operator=() [10/10]

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

Copy assign from SLList in linear time.

Definition at line 494 of file List.C.

◆ resize() [3/3]

void resize ( const label  newLen)
inline

Definition at line 152 of file ListI.H.

Friends And Related Function Documentation

◆ operator>>

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

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

Definition at line 581 of file List.H.


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