Public Types | Public Member Functions | Static Public Member Functions | Friends | List of all members
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 *, 16 > >, 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, 16 >, 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], pTraits< List< T > >, SortableList< T >, and zoneCellStencils.

Collaboration diagram for List< T >:
Collaboration graph
[legend]

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 > &a)
 Copy construct from list. More...
 
 List (const UList< T > &a)
 Copy construct contents from list. More...
 
 List (List< T > &a, 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...
 
 List (const SLList< T > &list)
 Construct as copy of SLList<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)
 Move construct from List. More...
 
template<int SizeMin>
 List (DynamicList< T, SizeMin > &&list)
 Move construct from DynamicList. More...
 
 List (SLList< T > &&list)
 Move construct from SLList. 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_nocopy (const label len)
 Adjust allocated size of list without necessarily. 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 > &a)
 Assignment to UList operator. Takes linear time. More...
 
void operator= (const List< T > &list)
 Assignment operator. Takes linear time. More...
 
void operator= (const SLList< T > &list)
 Assignment to SLList 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...
 
void operator= (SLList< T > &&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)
 Append an element if not already in the list. More...
 
template<>
IstreamreadList (Istream &is)
 Specialized list reading for character lists which always uses binary format. More...
 
template<>
void resize (const label newLen)
 
template<>
IstreamreadList (Istream &is)
 
- 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...
 
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 contains (const T &val, label pos=0) const
 Is the value contained 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< 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 List. 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...
 
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<>
IstreamreadList (Istream &is)
 Specialized list reading for character lists which always uses binary format. More...
 
template<>
OstreamwriteList (Ostream &os, const label) const
 Specialized writeList for character lists which always uses binary format. 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
 
template<>
OstreamwriteList (Ostream &os, const label) const
 
template<>
IstreamreadList (Istream &is)
 

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...
 
UList< T > & operator= (const UList< T > &)=delete
 No copy assignment (default: shallow copy) More...
 
template<>
void writeEntry (Ostream &os) const
 Specialized writeEntry for character lists which always uses binary format. More...
 
template<>
void writeEntry (Ostream &os) const
 

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 122 of file List.H.

Constructor & Destructor Documentation

◆ List() [1/21]

constexpr List ( )
inlinenoexcept

Default construct.

Definition at line 88 of file ListI.H.

◆ List() [2/21]

List ( const label  len)
explicit

Construct with given size.

Definition at line 103 of file List.C.

◆ List() [3/21]

List ( const label  len,
const T val 
)

Construct with given size and value for all elements.

Definition at line 119 of file List.C.

◆ List() [4/21]

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

Construct with given size initializing all elements to zero.

Definition at line 144 of file List.C.

◆ List() [5/21]

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

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

Definition at line 169 of file List.C.

◆ List() [6/21]

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

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

Definition at line 178 of file List.C.

◆ List() [7/21]

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

Construct with length=1, initializing content to zero.

Definition at line 187 of file List.C.

◆ List() [8/21]

List ( const List< T > &  a)

Copy construct from list.

Definition at line 229 of file List.C.

◆ List() [9/21]

List ( const UList< T > &  a)
explicit

Copy construct contents from list.

Definition at line 196 of file List.C.

◆ List() [10/21]

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

Construct as copy or re-use as specified.

Definition at line 262 of file List.C.

◆ List() [11/21]

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

Copy construct subset of list.

Definition at line 304 of file List.C.

◆ List() [12/21]

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

Copy construct subset of list.

Definition at line 327 of file List.C.

◆ List() [13/21]

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

Construct as copy of FixedList<T, N>

Definition at line 349 of file List.C.

◆ List() [14/21]

List ( const PtrList< T > &  list)
explicit

Construct as copy of PtrList<T>

Definition at line 359 of file List.C.

◆ List() [15/21]

List ( const SLList< T > &  list)
explicit

Construct as copy of SLList<T>

Definition at line 369 of file List.C.

◆ List() [16/21]

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

Construct as copy of IndirectList contents.

Definition at line 377 of file List.C.

◆ List() [17/21]

List ( std::initializer_list< T list)

Construct from an initializer list.

Definition at line 387 of file List.C.

◆ List() [18/21]

List ( List< T > &&  list)

Move construct from List.

Definition at line 394 of file List.C.

◆ List() [19/21]

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

Move construct from DynamicList.

Definition at line 405 of file List.C.

◆ List() [20/21]

List ( SLList< T > &&  list)

Move construct from SLList.

Definition at line 414 of file List.C.

◆ List() [21/21]

List ( Istream is)

Construct from Istream.

Definition at line 31 of file ListIO.C.

◆ ~List()

~List ( )

Destructor.

Definition at line 425 of file List.C.

Member Function Documentation

◆ null()

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

Return a null List.

Definition at line 102 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 93 of file ListI.H.

◆ clear()

void clear ( )
inline

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

Definition at line 109 of file ListI.H.

Referenced by polyMeshAdder::add(), 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(), IListStreamAllocator::clearStorage(), PackedList< 2 >::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< Type, TrackingData >::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(), surfMesh::removeZones(), particleTracksSampler::reset(), meshedSurfRef::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(), while(), zoneToCell::zones(), zoneToPoint::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 132 of file ListI.H.

Referenced by preservePatches::add(), singleProcessorFaceSets::add(), geometric::add(), object::addData(), regIOobject::addWatch(), UPstream::allGatherValues(), Foam::blankElementMasks(), searchablePlane::boundingSpheres(), searchableDisk::boundingSpheres(), searchablePlate::boundingSpheres(), searchableSphere::boundingSpheres(), box::box(), SurfaceFilmModel< Foam::KinematicCloud< Cloud< basicKinematicCollidingParcel > > >::cacheFilmFields(), 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(), directions::directions(), faMeshDistributor::distribute(), mapDistributeBase::distribute(), Foam::duplicateOrder(), cell::edges(), extendedEdgeMesh::edgeTreesByType(), Foam::etcDirs(), externalWallHeatFluxTemperatureFvPatchScalarField::externalWallHeatFluxTemperatureFvPatchScalarField(), NASCore::faceDecomposition(), ABAQUSCore::faceDecomposition(), faceZone::faceZone(), 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(), dynamicMultiMotionSolverFvMesh::init(), heatExchangerModel::initialise(), GAMGInterface::interfaceInternalField(), Foam::invertOneToMany(), isoSurfaceTopo::isoSurfaceTopo(), dictionary::keys(), 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(), Foam::blockMeshTools::read(), ABAQUSsurfaceFormat< Face >::read(), pointNoise::read(), limitHeight::read(), multiphaseMangrovesTurbulenceModel::read(), writeObjects::read(), explicitPorositySource::read(), derivedFields::read(), areaWrite::read(), surfaceNoise::read(), functionObjectList::read(), Foam::readBlock(), Foam::readDir(), masterUncollatedFileOperation::readHeader(), List< Field< scalar > >::readList(), masterUncollatedFileOperation::readStream(), functionEntry::readStringList(), surfaceNoise::readSurfaceData(), isoAlpha::reconstruct(), searchableBox::regions(), searchableDisk::regions(), searchablePlate::regions(), searchableSphere::regions(), fvMeshTools::removeEmptyPatches(), profilingPstream::report(), PackedList< 2 >::reserve(), faMeshBoundaryHalo::reset(), globalIndex::reset(), fvMeshSubset::reset(), PDRblock::gridControl::resize(), sampledCuttingSurface::sampledCuttingSurface(), sampledPlane::sampledPlane(), Foam::BitOps::set(), List< Field< scalar > >::set(), PackedList< 2 >::setCapacity(), faBoundaryMesh::setGroup(), ZoneMesh< cellZone, polyMesh >::setGroup(), polyBoundaryMesh::setGroup(), lumpedPointMovement::setInterpolator(), edgeCollapser::setRefinement(), faceSetOption::setSelection(), cellSetOption::setSelection(), List< Field< scalar > >::setSize(), PackedList< 2 >::shrink(), LUscalarMatrix::solve(), basicThermo::splitThermoName(), MeshedSurface< Foam::face >::stitchFaces(), streamLineParticle::streamLineParticle(), surfZoneIOList::surfZoneIOList(), syncTools::swapBoundaryCellList(), syncTools::swapBoundaryCellPositions(), masterUncollatedFileOperation::sync(), HashTable< const regIOobject * >::tocEntries(), HashTable< const regIOobject * >::tocKeys(), HashTable< const regIOobject * >::tocValues(), topoBoolSet::topoBoolSet(), faceAreaIntersect::triangulate(), hashedWordList::uniq(), PrimitivePatch<::Foam::List< labelledTri >, pointField >::uniqBoundaryFaces(), Foam::uniqueOrder(), sampledFaceZone::update(), sampledPatch::update(), polyMesh::updateMesh(), faMesh::updateMesh(), wallBoundedStreamLineParticle::wallBoundedStreamLineParticle(), multiFieldValue::write(), ParticleZoneInfo< CloudType >::write(), ensightFaces::write(), decomposedBlockData::writeBlocks(), lumpedPointMovement::writeStateVTP(), zeroATCcells::zeroATCcells(), adjointkOmegaSST::zeroFirstCell(), zoneToPoint::zones(), zoneToCell::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 437 of file List.C.

◆ resize_nocopy()

void resize_nocopy ( const label  len)
inline

◆ setSize() [1/2]

void setSize ( const label  n)
inline

Alias for resize()

Definition at line 289 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(), sensitivitySurfacePoints::assembleSensitivities(), 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(), decompositionMethod::calcCellCells(), 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(), sensitivitySurface::computeDerivativesSize(), optimisationType::computeMeritFunction(), NURBS3DVolume::computeParametricCoordinates(), inverseFaceDistanceDiffusivity::correct(), inversePointDistanceDiffusivity::correct(), removePoints::countPointUsage(), cyclicPolyPatch::coupledPoints(), meshRefinement::createZoneBaffles(), motionSmootherAlgo::curPoints(), hexCellLooper::cut(), geomCellLooper::cut(), faMeshDecomposition::decomposeMesh(), mapPatchChange::deletedPatches(), meshRefinement::directionalRefineCandidates(), fvMeshDistribute::distribute(), 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(), surfaceNoise::initialise(), fluxSummary::initialiseSurfaceAndDirection(), objectivePtLosses::initialize(), objectiveUniformityPatch::initialize(), linearInterpolationWeights::integrationWeights(), AMIInterpolation::interpolateToSource(), AMIInterpolation::interpolateToTarget(), isoSurfaceCell::isoSurfaceCell(), isoSurfacePoint::isoSurfacePoint(), lduPrimitiveMesh::lduPrimitiveMesh(), distributedTriSurfaceMesh::localQueries(), highAspectRatioFvGeometryScheme::makeAverageCentres(), voxelMeshSearch::makeMesh(), averageNeighbourFvGeometryScheme::makeNonOrthoWeights(), averageNeighbourFvGeometryScheme::makePyrHeights(), mappedWallPolyPatch::mapCollocatedFaces(), mappedPolyPatch::mapCollocatedFaces(), cyclicACMIPolyPatch::mapCollocatedFaces(), cyclicPolyPatch::mapCollocatedFaces(), mapDistribute::mapDistribute(), 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(), AMIInterpolation::normaliseWeights(), objectiveManager::objectiveManager(), oldCyclicPolyPatch::order(), processorPolyPatch::order(), cyclicPolyPatch::order(), cyclicAMIPolyPatch::order(), distributedTriSurfaceMesh::overlappingSurface(), ParticleCollector< CloudType >::ParticleCollector(), polyMeshAdder::patchFacePairs(), pointFieldReconstructor::pointFieldReconstructor(), PatchTools::pointNormals(), Foam::polyMeshZipUpCells(), powerLawLopesdaCostaZone::powerLawLopesdaCostaZone(), snappySnapDriver::preSmoothPatch(), Distribution< Type >::raw(), TRIsurfaceFormat< Face >::read(), runTimeControl::read(), cloudSolution::read(), multiphaseMangrovesTurbulenceModel::read(), STLsurfaceFormat< Face >::read(), regIOobject::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(), decompositionMethod::setConstraints(), weightedPosition::setPoints(), box::setRefineFlags(), duplicatePoints::setRefinement(), refinementIterator::setRefinement(), boundaryCutter::setRefinement(), removePoints::setRefinement(), tetDecomposer::setRefinement(), addPatchCellLayer::setRefinement(), hexRef8::setRefinement(), propellerInfo::setSampleDiskGeometry(), SortableListEFA< Type >::setSize(), SortableListDRGEP< 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(), optimisationType::updateGradientsAndValues(), edgeVertex::updateLabels(), removePoints::updateMesh(), faGlobalMeshData::updateMesh(), boundaryCutter::updateMesh(), faceZone::updateMesh(), addPatchCellLayer::updateMesh(), faMesh::updateMesh(), zoneCellStencils::validBoundaryFaces(), cellToFaceStencil::validBoundaryFaces(), cellToCellStencil::validBoundaryFaces(), splineInterpolationWeights::valueWeights(), linearInterpolationWeights::valueWeights(), streamLineBase::writeToFile(), and adjointkOmegaSST::zeroFirstCell().

◆ setSize() [2/2]

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

Alias for resize()

Definition at line 294 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 452 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(), InjectedParticleInjection< CloudType >::initialise(), InjectedParticleDistributionInjection< CloudType >::initialise(), objectivePtLosses::initialize(), objectiveUniformityPatch::initialize(), 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=(), 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(), SortableListEFA< Type >::stableSort(), SortableListDRGEP< 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 471 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 146 of file ListI.H.

Referenced by Foam::parseStream().

Here is the caller graph for this function:

◆ 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 169 of file ListI.H.

◆ push_back() [1/4]

void push_back ( const T val)
inline

◆ 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 195 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 205 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 227 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 242 of file ListI.H.

Referenced by List< Field< scalar > >::appendUniq().

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 257 of file ListI.H.

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

Here is the caller graph for this function:

◆ operator=() [1/11]

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

Assignment to UList operator. Takes linear time.

Definition at line 485 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/11]

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

Assignment operator. Takes linear time.

Definition at line 521 of file List.C.

◆ operator=() [3/11]

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

Assignment to SLList operator. Takes linear time.

Definition at line 533 of file List.C.

◆ operator=() [4/11]

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

Assignment from IndirectList. Takes linear time.

Definition at line 570 of file List.C.

◆ operator=() [5/11]

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

Copy assignment from FixedList.

Definition at line 554 of file List.C.

◆ operator=() [6/11]

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

Assignment to an initializer list.

Definition at line 589 of file List.C.

◆ operator=() [7/11]

void operator= ( const T val)
inline

Assignment of all entries to the given value.

Definition at line 273 of file ListI.H.

◆ operator=() [8/11]

void operator= ( const Foam::zero  )
inline

Assignment of all entries to zero.

Definition at line 280 of file ListI.H.

◆ operator=() [9/11]

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

Move assignment. Takes constant time.

Definition at line 609 of file List.C.

◆ operator=() [10/11]

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

Move assignment. Takes constant time.

Definition at line 622 of file List.C.

◆ operator=() [11/11]

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

Move assignment. Takes constant time.

Definition at line 629 of file List.C.

◆ readList() [1/3]

Foam::Istream & readList ( Istream is)

Read List from Istream, discarding contents of existing List.

Definition at line 42 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 472 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(), mapDistributeBase::send(), Foam::BitOps::set(), fvMatrix< Type >::setBounAndInterCoeffs(), FaceCellWave< Type, TrackingData >::setFaceInfo(), lumpedPointMovement::setInterpolator(), addPatchCellLayer::setRefinement(), hexRef8::setRefinement(), 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 500 of file List.H.

Referenced by singleProcessorFaceSets::add(), cellTable::addCellZones(), unwatchedIOdictionary::addWatch(), AMIInterpolation::agglomerate(), PDRblock::gridControl::append(), AMIInterpolation::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(), faceCells::faceCells(), shellSurfaces::findDirectionalLevel(), localPointRegion::findDuplicateFacePairs(), Foam::findEtcEntries(), distributedTriSurfaceMesh::findNearest(), volBSplinesBase::getAllControlPoints(), 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(), trackingInverseDistance::markDonors(), inverseDistance::markDonors(), PatchTools::markZone(), triSurface::markZone(), blockMesh::mesh(), meshRefinement::meshedPatches(), findCellParticle::move(), boundaryMesh::patchify(), refinementParameters::refinementParameters(), edgeMesh::regions(), regionSplit2D::regionSplit2D(), timeSelector::select0(), edgeCollapser::setRefinement(), hexRef8::setRefinement(), Foam::fvc::spread(), faceZoneSet::subset(), meshRefinement::subsetBaffles(), Foam::fvc::sweep(), faceZoneSet::sync(), oversetFvMeshBase::updateAddressing(), uniformInterpolatedDisplacementPointPatchVectorField::updateCoeffs(), externalDisplacementMeshMover::updateMesh(), solverFieldSelection::updateSelection(), 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 508 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 516 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 525 of file List.H.

◆ appendUniq()

label appendUniq ( const T val)
inline

Append an element if not already in the list.

FOAM_DEPRECATED_FOR(2022-10, "push_uniq()")

Definition at line 535 of file List.H.

Referenced by faPatch::faPatch(), polyPatch::polyPatch(), and mapDistributeBase::schedule().

Here is the caller graph for this function:

◆ readList() [2/3]

Istream & readList ( Istream is)

Specialized list reading for character lists which always uses binary format.

◆ resize() [3/3]

void resize ( const label  newLen)
inline

Definition at line 124 of file ListI.H.

◆ readList() [3/3]

Istream & readList ( Istream is)

Definition at line 42 of file charList.C.

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 561 of file List.H.


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