OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

UList< T > Class Template Reference

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

Collaboration diagram for UList< T >:

List of all members.


Classes

class  less
 Less function class that can be used for sorting. More...

Public Types

typedef T value_type
 Type of values the UList contains.
typedef T & reference
 Type that can be used for storing into.
typedef const T & const_reference
 Type that can be used for storing into.
typedef label difference_type
 The type that can represent the difference between any two.
typedef label size_type
 The type that can represent the size of a UList.
typedef T * iterator
 Random access iterator for traversing UList.
typedef const T * const_iterator
 Random access iterator for traversing UList.
typedef T * reverse_iterator
 Reverse iterator for reverse traversal of UList.
typedef const T * const_reverse_iterator
 Reverse iterator for reverse traversal of constant UList.

Public Member Functions

 UList ()
 Null constructor.
 UList (T *__restrict__ v, label size)
 Construct from components.
label fcIndex (const label i) const
 Return the forward circular index, i.e. the next index.
label rcIndex (const label i) const
 Return the reverse circular index, i.e. the previous index.
label byteSize () const
 Return the binary size in number of characters of the UList.
const T * cdata () const
 Return a const pointer to the first data element,.
T * data ()
 Return a pointer to the first data element,.
void checkStart (const label start) const
 Check start is within valid range (0 ... size-1).
void checkSize (const label size) const
 Check size is within valid range (0 ... size).
void checkIndex (const label i) const
 Check index i is within valid range (0 ... size-1).
void writeEntry (Ostream &) const
 Write the UList as a dictionary entry.
void writeEntry (const word &keyword, Ostream &) const
 Write the UList as a dictionary entry with keyword.
void assign (const UList< T > &)
 Assign elements to those from UList.
T & operator[] (const label)
 Return element of UList.
const T & operator[] (const label) const
 Return element of constant UList.
 operator const Foam::List< T > & () const
 Allow cast to a const List<T>&.
void operator= (const T &)
 Assignment of all entries to the given value.
iterator begin ()
 Return an iterator to begin traversing the UList.
iterator end ()
 Return an iterator to end traversing the UList.
const_iterator cbegin () const
 Return const_iterator to begin traversing the constant UList.
const_iterator cend () const
 Return const_iterator to end traversing the constant UList.
const_iterator begin () const
 Return const_iterator to begin traversing the constant UList.
const_iterator end () const
 Return const_iterator to end traversing the constant UList.
reverse_iterator rbegin ()
 Return reverse_iterator to begin reverse traversing the UList.
reverse_iterator rend ()
 Return reverse_iterator to end reverse traversing the UList.
const_reverse_iterator crbegin () const
 Return const_reverse_iterator to begin reverse traversing the UList.
const_reverse_iterator crend () const
 Return const_reverse_iterator to end reverse traversing the UList.
const_reverse_iterator rbegin () const
 Return const_reverse_iterator to begin reverse traversing the UList.
const_reverse_iterator rend () const
 Return const_reverse_iterator to end reverse traversing the UList.
label size () const
 Return the number of elements in the UList.
label max_size () const
 Return size of the largest possible UList.
bool empty () const
 Return true if the UList is empty (ie, size() is zero).
void swap (UList< T > &)
 Swap two ULists of the same type in constant time.
bool operator== (const UList< T > &) const
 Equality operation on ULists of the same type.
bool operator!= (const UList< T > &) const
 The opposite of the equality operation. Takes linear time.
bool operator< (const UList< T > &) const
 Compare two ULists lexicographically. Takes linear time.
bool operator> (const UList< T > &) const
 Compare two ULists lexicographically. Takes linear time.
bool operator<= (const UList< T > &) const
 Return true if !(a > b). Takes linear time.
bool operator>= (const UList< T > &) const
 Return true if !(a < b). Takes linear time.
template<>
const bool & operator[] (const label i) const

Static Public Member Functions

static const UList< T > & null ()
 Return a null UList.

Friends

class List< T >
 Declare friendship with the List class.
class SubList< T >
 Declare friendship with the SubList class.
Ostream & operator (Ostream &, const UList< T > &)

Detailed Description

template<class T>
class Foam::UList< T >

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

Storage is not allocated during construction or use but is supplied to the constructor as an argument. This type of list is particularly useful for lists that refer to parts of existing lists such as SubList.

Source files

Definition at line 63 of file UList.H.


Member Typedef Documentation

typedef T value_type

Type of values the UList contains.

Definition at line 203 of file UList.H.

typedef T& reference

Type that can be used for storing into.

UList::value_type objects.

Definition at line 209 of file UList.H.

typedef const T& const_reference

Type that can be used for storing into.

constant UList::value_type objects

Definition at line 215 of file UList.H.

The type that can represent the difference between any two.

UList iterator objects.

Definition at line 221 of file UList.H.

typedef label size_type

The type that can represent the size of a UList.

Definition at line 224 of file UList.H.

typedef T* iterator

Random access iterator for traversing UList.

Definition at line 230 of file UList.H.

typedef const T* const_iterator

Random access iterator for traversing UList.

Definition at line 242 of file UList.H.

typedef T* reverse_iterator

Reverse iterator for reverse traversal of UList.

Definition at line 260 of file UList.H.

typedef const T* const_reverse_iterator

Reverse iterator for reverse traversal of constant UList.

Definition at line 272 of file UList.H.


Constructor & Destructor Documentation

UList (  )  [inline]

Null constructor.

Definition at line 25 of file UListI.H.

UList ( T *__restrict__  v,
label  size 
) [inline]

Construct from components.

Definition at line 33 of file UListI.H.


Member Function Documentation

const Foam::UList< T > & null (  )  [inline, static]

Return a null UList.

Reimplemented in List< T >, SubList< T >, DimensionedField< Type, GeoMesh >, SubDimensionedField< Type, GeoMesh >, DynamicField< Type >, Field< Type >, SubField< Type >, GeometricField< Type, PatchField, GeoMesh >, List< processorSurfacePatchFieldDecomposer * >, List< fieldAverageItem >, List< labelPairList >, List< curvedEdge * >, List< primitivePatch * >, List< const treeLeaf< Type > * >, List< pair >, List< treeBoundBox >, List< word >, List< Face >, List< injector * >, List< procLduInterface * >, List< List< T > >, List< cellZone * >, List< lduInterfacePtrsList * >, List< objectHit >, List< ParcelType * >, List< translationRotationVectors >, List< typename ReactingCloud< BasicReactingMultiphaseParcel< ThermoType > >::thermoType * >, List< labelledTri >, List< cellModel * >, List< const unallocLabelList * >, List< phaseProperties >, List< node >, List< MRFZone * >, List< substance >, List< face >, List< scalar >, List< Field< scalar > >, List< referredMolecule >, List< pointMesh * >, List< STLpoint >, List< Pair< word > >, List< faceList >, List< typename ReactingCloud< BasicReactingParcel< ThermoType > >::thermoType * >, List< lduInterfaceFieldPtrsList * >, List< cell >, List< labelList * >, List< Time * >, List< const lduInterfaceField * >, List< commsStruct >, List< dsmcParcel * >, List< DynamicList< dsmcParcel * > >, List< refineCell >, List< polyMeshModifier * >, List< T >, List< searchableSurface * >, List< const lduInterface * >, List< DynamicList< molecule * > >, List< coordSet * >, List< int >, List< liquid * >, List< wordList >, List< pointPatchMapper * >, List< referredCell >, List< scalarField >, List< T * >, List< instant >, List< DynamicList< label > >, List< List< cellFaceIdentifier > >, List< Key >, List< List< point > >, List< DynamicList< ParcelType * > >, List< pointIndexHit >, List< surfAndLabel >, List< pairPotential * >, List< Tuple2< scalar, Type > >, List< typename CloudType::thermoType * >, List< gasThermoPhysics * >, List< lduMatrix * >, List< FixedList< label, 3 > >, List< PointType >, List< cellShape >, List< DynamicList< autoPtr< parcelType > > >, List< Tuple2< scalar, scalar > >, List< porousZone * >, List< sampledSet * >, List< FieldField< Field, scalar > * >, List< treeLeaf< Type > * >, List< primitivePatchInterpolation * >, List< string >, List< procPointList >, List< solid * >, List< sendingReferralList >, List< molecule::constantProperties >, List< ZoneType * >, List< vectorField >, List< functionObject * >, List< geometricSurfacePatch >, List< refineMode >, List< dictionary >, List< radiativeIntensityRay * >, List< fvMesh * >, List< typename ReactingCloud< CoalParcel< ThermoType > >::thermoType * >, List< splitCell8 >, List< processorVolPatchFieldDecomposer * >, List< vtkTextActor * >, List< faceZone * >, List< tensor >, List< const cellModel * >, List< symmTensor >, List< labelIOList * >, List< SHA1Digest >, List< sampledSurface * >, List< entry * >, List< faceSets >, List< pointZone * >, List< ignitionSite * >, List< char >, List< coordinateSystem * >, List< surfZoneIdentifier >, List< DimensionedField< scalar, volMesh > * >, List< Field< Type > >, List< pointHitSort >, List< labelPair >, List< bool >, List< Field< scalar > * >, List< molecule * >, List< ThermoType * >, List< lduScheduleEntry >, List< point >, List< polyDecomp >, List< List< Key > >, List< labelListList >, List< lduPrimitiveMesh * >, List< labelField * >, List< const label * >, List< receivingReferralList >, List< scalarList >, List< List< Field< scalar > > >, List< ensightPart * >, List< List< treeBoundBox > >, List< patchInteractionData >, List< fvPatchMapper * >, List< unsigned int >, List< typename dsmcParcel::constantProperties >, List< block * >, List< mergeInfo >, List< Tuple2< mapType, labelList > >, List< fieldNameValuePair >, List< volScalarField * >, List< typename ParcelType::constantProperties >, List< coupledFacePair * >, List< edge >, List< PatchField< Type > * >, List< List< pointIndexHit > >, List< scalarRange >, List< engineValve * >, List< thermoType * >, List< surfZone >, List< tetherPotential * >, List< Type >, List< patchFieldDecomposer * >, List< complexVector >, List< cellFaceIdentifier >, List< pointSourceProperties >, List< objectMap >, List< cellCutType >, List< autoPtr< parcelType > >, List< boundaryPatch * >, List< Reaction< ThermoType > * >, List< specieCoeffs >, List< scalarField * >, List< FixedList< scalar, 3 > >, List< Field< Type > * >, List< typename ReactingCloud< ParcelType >::thermoType * >, List< labelList >, List< vector >, List< label >, SubList< point >, SubList< Type >, DimensionedField< scalar, volMesh >, DimensionedField< scalar, pointMesh >, DimensionedField< symmTensor, volMesh >, DimensionedField< vector, pointMesh >, DimensionedField< Type, GeoMesh >, DimensionedField< Type, volMesh >, DimensionedField< scalar, surfaceMesh >, DimensionedField< vector, volMesh >, DimensionedField< Type, pointMesh >, DimensionedField< Type, surfaceMesh >, DimensionedField< tensor, volMesh >, Field< tensor >, Field< scalar >, Field< label >, Field< complexVector >, Field< translationRotationVectors >, Field< Field< Type > >, Field< symmTensor >, Field< point >, Field< Type >, Field< PointType >, Field< vector >, SubField< Type >, SubField< point >, GeometricField< symmTensor, fvPatchField, volMesh >, GeometricField< tensor, fvPatchField, volMesh >, GeometricField< scalar, fvPatchField, volMesh >, GeometricField< scalar, fvsPatchField, surfaceMesh >, GeometricField< Type, fvsPatchField, surfaceMesh >, GeometricField< Type, PatchField, GeoMesh >, GeometricField< scalar, pointPatchField, pointMesh >, GeometricField< vector, fvPatchField, volMesh >, GeometricField< Type, pointPatchField, pointMesh >, GeometricField< vector, pointPatchField, pointMesh >, and GeometricField< Type, fvPatchField, volMesh >.

Definition at line 43 of file UListI.H.

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

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

which returns to the first at the end of the list

Definition at line 50 of file UListI.H.

Foam::label rcIndex ( const label  i  )  const [inline]

Return the reverse circular index, i.e. the previous index.

which returns to the last at the begining of the list

Definition at line 57 of file UListI.H.

References UList< T >::size().

Here is the call graph for this function:

Foam::label byteSize (  )  const [inline]

Return the binary size in number of characters of the UList.

if the element is a primitive type i.e. contiguous<T>() == true

Definition at line 98 of file UList.C.

Referenced by Pstream::listCombineGather(), Foam::operator<<(), processorLduInterface::send(), and LUscalarMatrix::solve().

Here is the caller graph for this function:

const T * cdata (  )  const [inline]

Return a const pointer to the first data element,.

similar to the STL front() method and the string::data() method This can be used (with caution) when interfacing with C code.

Definition at line 109 of file UListI.H.

References Foam::abort(), Foam::FatalError, and FatalErrorIn.

Referenced by Foam::operator<<().

Here is the call graph for this function:

Here is the caller graph for this function:

T * data (  )  [inline]

Return a pointer to the first data element,.

similar to the STL front() method and the string::data() method This can be used (with caution) when interfacing with C code.

Definition at line 116 of file UListI.H.

void checkStart ( const label  start  )  const [inline]

Check start is within valid range (0 ... size-1).

Definition at line 65 of file UListI.H.

References UList< T >::size().

Here is the call graph for this function:

void checkSize ( const label  size  )  const [inline]

Check size is within valid range (0 ... size).

Definition at line 78 of file UListI.H.

Referenced by SubList< T >::SubList().

Here is the caller graph for this function:

void checkIndex ( const label  i  )  const [inline]

Check index i is within valid range (0 ... size-1).

Definition at line 91 of file UListI.H.

void writeEntry ( Ostream &  os  )  const [inline]

Write the UList as a dictionary entry.

Definition at line 26 of file UListIO.C.

void writeEntry ( const word &  keyword,
Ostream &  os 
) const [inline]

void assign ( const UList< T > &  a  )  [inline]

Assign elements to those from UList.

Definition at line 29 of file UList.C.

References Foam::abort(), Foam::FatalError, FatalErrorIn, List_ACCESS, List_CONST_ACCESS, List_ELEM, List_FOR_ALL, and T.

Here is the call graph for this function:

T & operator[] ( const label  i  )  [inline]

const T & operator[] ( const label  i  )  const [inline]

Return element of constant UList.

Note that the bool specialization adds lazy evaluation so reading an out-of-range element returns false without any ill-effects

Reimplemented in PackedList< nBits >, DynamicField< Type >, interpolationTable< Type >, interpolationLookUpTable< Type >, PackedList< 2 >, interpolationTable< scalar >, and interpolationLookUpTable< scalar >.

Definition at line 159 of file UListI.H.

operator const Foam::List< T > & (  )  const [inline]

Allow cast to a const List<T>&.

Reimplemented in SubList< Type >, SubList< T >, and SubList< point >.

Definition at line 170 of file UListI.H.

void operator= ( const T &  t  )  [inline]

Assignment of all entries to the given value.

Reimplemented in directionMixedFvPatchField< Type >, fixedValueFvPatchField< Type >, mixedFvPatchField< Type >, slicedFvPatchField< Type >, expDirectionMixedFvPatchField< Type >, fixedNormalSlipFvPatchField< Type >, partialSlipFvPatchField< Type >, fvPatchField< Type >, fixedValueFvsPatchField< Type >, slicedFvsPatchField< Type >, fvsPatchField< Type >, DynamicList< T, SizeInc, SizeMult, SizeDiv >, List< T >, SortableList< T >, SubList< T >, Field< Type >, fixedValuePointPatchField< Type >, valuePointPatchField< Type >, mixedFixedValueSlipFvPatchField< Type >, fixedValueFvPatchField< Type >, mixedFvPatchField< Type >, fvPatchField< scalar >, fvPatchField< Type >, fvsPatchField< Type >, DynamicList< procPointList >, DynamicList< molecule * >, DynamicList< STLpoint >, DynamicList< label >, DynamicList< splitCell8 >, DynamicList< dsmcParcel * >, DynamicList< referredMolecule >, DynamicList< word >, DynamicList< autoPtr< parcelType > >, DynamicList< ParcelType * >, DynamicList< point >, DynamicList< face >, List< processorSurfacePatchFieldDecomposer * >, List< fieldAverageItem >, List< labelPairList >, List< curvedEdge * >, List< primitivePatch * >, List< const treeLeaf< Type > * >, List< pair >, List< treeBoundBox >, List< word >, List< Face >, List< injector * >, List< procLduInterface * >, List< List< T > >, List< cellZone * >, List< lduInterfacePtrsList * >, List< objectHit >, List< ParcelType * >, List< translationRotationVectors >, List< typename ReactingCloud< BasicReactingMultiphaseParcel< ThermoType > >::thermoType * >, List< labelledTri >, List< cellModel * >, List< const unallocLabelList * >, List< phaseProperties >, List< node >, List< MRFZone * >, List< substance >, List< face >, List< scalar >, List< Field< scalar > >, List< referredMolecule >, List< pointMesh * >, List< STLpoint >, List< Pair< word > >, List< faceList >, List< typename ReactingCloud< BasicReactingParcel< ThermoType > >::thermoType * >, List< lduInterfaceFieldPtrsList * >, List< cell >, List< labelList * >, List< Time * >, List< const lduInterfaceField * >, List< commsStruct >, List< dsmcParcel * >, List< DynamicList< dsmcParcel * > >, List< refineCell >, List< polyMeshModifier * >, List< T >, List< searchableSurface * >, List< const lduInterface * >, List< DynamicList< molecule * > >, List< coordSet * >, List< int >, List< liquid * >, List< wordList >, List< pointPatchMapper * >, List< referredCell >, List< scalarField >, List< T * >, List< instant >, List< DynamicList< label > >, List< List< cellFaceIdentifier > >, List< Key >, List< List< point > >, List< DynamicList< ParcelType * > >, List< pointIndexHit >, List< surfAndLabel >, List< pairPotential * >, List< Tuple2< scalar, Type > >, List< typename CloudType::thermoType * >, List< gasThermoPhysics * >, List< lduMatrix * >, List< FixedList< label, 3 > >, List< PointType >, List< cellShape >, List< DynamicList< autoPtr< parcelType > > >, List< Tuple2< scalar, scalar > >, List< porousZone * >, List< sampledSet * >, List< FieldField< Field, scalar > * >, List< treeLeaf< Type > * >, List< primitivePatchInterpolation * >, List< string >, List< procPointList >, List< solid * >, List< sendingReferralList >, List< molecule::constantProperties >, List< ZoneType * >, List< vectorField >, List< functionObject * >, List< geometricSurfacePatch >, List< refineMode >, List< dictionary >, List< radiativeIntensityRay * >, List< fvMesh * >, List< typename ReactingCloud< CoalParcel< ThermoType > >::thermoType * >, List< splitCell8 >, List< processorVolPatchFieldDecomposer * >, List< vtkTextActor * >, List< faceZone * >, List< tensor >, List< const cellModel * >, List< symmTensor >, List< labelIOList * >, List< SHA1Digest >, List< sampledSurface * >, List< entry * >, List< faceSets >, List< pointZone * >, List< ignitionSite * >, List< char >, List< coordinateSystem * >, List< surfZoneIdentifier >, List< DimensionedField< scalar, volMesh > * >, List< Field< Type > >, List< pointHitSort >, List< labelPair >, List< bool >, List< Field< scalar > * >, List< molecule * >, List< ThermoType * >, List< lduScheduleEntry >, List< point >, List< polyDecomp >, List< List< Key > >, List< labelListList >, List< lduPrimitiveMesh * >, List< labelField * >, List< const label * >, List< receivingReferralList >, List< scalarList >, List< List< Field< scalar > > >, List< ensightPart * >, List< List< treeBoundBox > >, List< patchInteractionData >, List< fvPatchMapper * >, List< unsigned int >, List< typename dsmcParcel::constantProperties >, List< block * >, List< mergeInfo >, List< Tuple2< mapType, labelList > >, List< fieldNameValuePair >, List< volScalarField * >, List< typename ParcelType::constantProperties >, List< coupledFacePair * >, List< edge >, List< PatchField< Type > * >, List< List< pointIndexHit > >, List< scalarRange >, List< engineValve * >, List< thermoType * >, List< surfZone >, List< tetherPotential * >, List< Type >, List< patchFieldDecomposer * >, List< complexVector >, List< cellFaceIdentifier >, List< pointSourceProperties >, List< objectMap >, List< cellCutType >, List< autoPtr< parcelType > >, List< boundaryPatch * >, List< Reaction< ThermoType > * >, List< specieCoeffs >, List< scalarField * >, List< FixedList< scalar, 3 > >, List< Field< Type > * >, List< typename ReactingCloud< ParcelType >::thermoType * >, List< labelList >, List< vector >, List< label >, SubList< point >, SubList< Type >, Field< tensor >, Field< scalar >, Field< label >, Field< complexVector >, Field< translationRotationVectors >, Field< Field< Type > >, Field< symmTensor >, Field< point >, Field< Type >, Field< PointType >, Field< vector >, fixedValuePointPatchField< vector >, fixedValuePointPatchField< Type >, valuePointPatchField< Type >, and valuePointPatchField< vector >.

Definition at line 62 of file UList.C.

Referenced by DynamicList< T, SizeInc, SizeMult, SizeDiv >::operator=(), slicedFvPatchField< Type >::slicedFvPatchField(), and slicedFvsPatchField< Type >::slicedFvsPatchField().

Here is the caller graph for this function:

Foam::UList< T >::iterator begin (  )  [inline]

Foam::UList< T >::iterator end (  )  [inline]

Return an iterator to end traversing the UList.

Reimplemented in PackedList< nBits >, and PackedList< 2 >.

Definition at line 201 of file UListI.H.

Referenced by UList< T >::operator==(), Foam::sort(), and Foam::stableSort().

Here is the caller graph for this function:

Foam::UList< T >::const_iterator cbegin (  )  const [inline]

Return const_iterator to begin traversing the constant UList.

Reimplemented in PackedList< nBits >, and PackedList< 2 >.

Definition at line 194 of file UListI.H.

Foam::UList< T >::const_iterator cend (  )  const [inline]

Return const_iterator to end traversing the constant UList.

Reimplemented in PackedList< nBits >, and PackedList< 2 >.

Definition at line 215 of file UListI.H.

Foam::UList< T >::const_iterator begin (  )  const [inline]

Return const_iterator to begin traversing the constant UList.

Reimplemented in PackedList< nBits >, and PackedList< 2 >.

Definition at line 187 of file UListI.H.

Foam::UList< T >::const_iterator end (  )  const [inline]

Return const_iterator to end traversing the constant UList.

Reimplemented in PackedList< nBits >, and PackedList< 2 >.

Definition at line 208 of file UListI.H.

Foam::UList< T >::iterator rbegin (  )  [inline]

Return reverse_iterator to begin reverse traversing the UList.

Definition at line 222 of file UListI.H.

Foam::UList< T >::iterator rend (  )  [inline]

Return reverse_iterator to end reverse traversing the UList.

Definition at line 243 of file UListI.H.

Foam::UList< T >::const_iterator crbegin (  )  const [inline]

Return const_reverse_iterator to begin reverse traversing the UList.

Definition at line 236 of file UListI.H.

Foam::UList< T >::const_iterator crend (  )  const [inline]

Return const_reverse_iterator to end reverse traversing the UList.

Definition at line 257 of file UListI.H.

Foam::UList< T >::const_iterator rbegin (  )  const [inline]

Return const_reverse_iterator to begin reverse traversing the UList.

Definition at line 229 of file UListI.H.

Foam::UList< T >::const_iterator rend (  )  const [inline]

Return const_reverse_iterator to end reverse traversing the UList.

Definition at line 250 of file UListI.H.

Foam::label size (  )  const [inline]

Return the number of elements in the UList.

Reimplemented in triSurfaceMesh, List< T >, PackedList< nBits >, valuePointPatchField< Type >, MeshedSurface< Face >, surfMesh, UnsortedMeshedSurface< Face >, List< processorSurfacePatchFieldDecomposer * >, List< fieldAverageItem >, List< labelPairList >, List< curvedEdge * >, List< primitivePatch * >, List< const treeLeaf< Type > * >, List< pair >, List< treeBoundBox >, List< word >, List< Face >, List< injector * >, List< procLduInterface * >, List< List< T > >, List< cellZone * >, List< lduInterfacePtrsList * >, List< objectHit >, List< ParcelType * >, List< translationRotationVectors >, List< typename ReactingCloud< BasicReactingMultiphaseParcel< ThermoType > >::thermoType * >, List< labelledTri >, List< cellModel * >, List< const unallocLabelList * >, List< phaseProperties >, List< node >, List< MRFZone * >, List< substance >, List< face >, List< scalar >, List< Field< scalar > >, List< referredMolecule >, List< pointMesh * >, List< STLpoint >, List< Pair< word > >, List< faceList >, List< typename ReactingCloud< BasicReactingParcel< ThermoType > >::thermoType * >, List< lduInterfaceFieldPtrsList * >, List< cell >, List< labelList * >, List< Time * >, List< const lduInterfaceField * >, List< commsStruct >, List< dsmcParcel * >, List< DynamicList< dsmcParcel * > >, List< refineCell >, List< polyMeshModifier * >, List< T >, List< searchableSurface * >, List< const lduInterface * >, List< DynamicList< molecule * > >, List< coordSet * >, List< int >, List< liquid * >, List< wordList >, List< pointPatchMapper * >, List< referredCell >, List< scalarField >, List< T * >, List< instant >, List< DynamicList< label > >, List< List< cellFaceIdentifier > >, List< Key >, List< List< point > >, List< DynamicList< ParcelType * > >, List< pointIndexHit >, List< surfAndLabel >, List< pairPotential * >, List< Tuple2< scalar, Type > >, List< typename CloudType::thermoType * >, List< gasThermoPhysics * >, List< lduMatrix * >, List< FixedList< label, 3 > >, List< PointType >, List< cellShape >, List< DynamicList< autoPtr< parcelType > > >, List< Tuple2< scalar, scalar > >, List< porousZone * >, List< sampledSet * >, List< FieldField< Field, scalar > * >, List< treeLeaf< Type > * >, List< primitivePatchInterpolation * >, List< string >, List< procPointList >, List< solid * >, List< sendingReferralList >, List< molecule::constantProperties >, List< ZoneType * >, List< vectorField >, List< functionObject * >, List< geometricSurfacePatch >, List< refineMode >, List< dictionary >, List< radiativeIntensityRay * >, List< fvMesh * >, List< typename ReactingCloud< CoalParcel< ThermoType > >::thermoType * >, List< splitCell8 >, List< processorVolPatchFieldDecomposer * >, List< vtkTextActor * >, List< faceZone * >, List< tensor >, List< const cellModel * >, List< symmTensor >, List< labelIOList * >, List< SHA1Digest >, List< sampledSurface * >, List< entry * >, List< faceSets >, List< pointZone * >, List< ignitionSite * >, List< char >, List< coordinateSystem * >, List< surfZoneIdentifier >, List< DimensionedField< scalar, volMesh > * >, List< Field< Type > >, List< pointHitSort >, List< labelPair >, List< bool >, List< Field< scalar > * >, List< molecule * >, List< ThermoType * >, List< lduScheduleEntry >, List< point >, List< polyDecomp >, List< List< Key > >, List< labelListList >, List< lduPrimitiveMesh * >, List< labelField * >, List< const label * >, List< receivingReferralList >, List< scalarList >, List< List< Field< scalar > > >, List< ensightPart * >, List< List< treeBoundBox > >, List< patchInteractionData >, List< fvPatchMapper * >, List< unsigned int >, List< typename dsmcParcel::constantProperties >, List< block * >, List< mergeInfo >, List< Tuple2< mapType, labelList > >, List< fieldNameValuePair >, List< volScalarField * >, List< typename ParcelType::constantProperties >, List< coupledFacePair * >, List< edge >, List< PatchField< Type > * >, List< List< pointIndexHit > >, List< scalarRange >, List< engineValve * >, List< thermoType * >, List< surfZone >, List< tetherPotential * >, List< Type >, List< patchFieldDecomposer * >, List< complexVector >, List< cellFaceIdentifier >, List< pointSourceProperties >, List< objectMap >, List< cellCutType >, List< autoPtr< parcelType > >, List< boundaryPatch * >, List< Reaction< ThermoType > * >, List< specieCoeffs >, List< scalarField * >, List< FixedList< scalar, 3 > >, List< Field< Type > * >, List< typename ReactingCloud< ParcelType >::thermoType * >, List< labelList >, List< vector >, List< label >, PackedList< 2 >, valuePointPatchField< Type >, valuePointPatchField< vector >, MeshedSurface< face >, MeshedSurface< Face >, and UnsortedMeshedSurface< Face >.

Definition at line 263 of file UListI.H.

Referenced by fvMatrix< Type >::addToInternalField(), pairGAMGAgglomeration::agglomerate(), GAMGAgglomeration::agglomerateLduAddressing(), UList< T >::checkStart(), Foam::cmptAv(), Foam::cmptMag(), Foam::cmptMax(), Foam::cmptMin(), Foam::ComplexField(), UIndirectList< T >::empty(), Foam::findStrings(), surfaceInterpolationScheme< Type >::interpolate(), cell::labels(), Foam::mag(), Foam::magSqr(), Foam::matchPoints(), Foam::max(), Foam::mergePoints(), UList< T >::rcIndex(), MeshedSurface< Face >::remapFaces(), processorLduInterface::send(), Foam::stabilise(), syncTools::syncBoundaryFaceList(), syncTools::syncFaceList(), Foam::transform(), WRLsurfaceFormatCore::writeAppearance(), WRLsurfaceFormatCore::writeHeader(), and OFSsurfaceFormatCore::writeHeader().

Here is the caller graph for this function:

Foam::label max_size (  )  const [inline]

Return size of the largest possible UList.

Definition at line 270 of file UListI.H.

bool empty (  )  const [inline]

void swap ( UList< T > &  a  )  [inline]

Swap two ULists of the same type in constant time.

Definition at line 74 of file UList.C.

References Foam::abort(), Foam::FatalError, FatalErrorIn, List_ACCESS, List_ELEM, List_FOR_ALL, and T.

Here is the call graph for this function:

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

Equality operation on ULists of the same type.

Returns true when the ULists are elementwise equal (using UList::value_type::operator==). Takes linear time.

Definition at line 143 of file UList.C.

References UList< T >::begin(), and UList< T >::end().

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

The opposite of the equality operation. Takes linear time.

Definition at line 164 of file UList.C.

bool operator< ( const UList< T > &  a  )  const [inline]

Compare two ULists lexicographically. Takes linear time.

Definition at line 171 of file UList.C.

References UList< T >::operator==().

Here is the call graph for this function:

bool operator> ( const UList< T > &  a  )  const [inline]

Compare two ULists lexicographically. Takes linear time.

Definition at line 202 of file UList.C.

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

Here is the caller graph for this function:

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

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

Definition at line 209 of file UList.C.

References UList< T >::operator.

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

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

Definition at line 216 of file UList.C.

References UList< T >::operator>().

Here is the call graph for this function:

const bool & operator[] ( const label  i  )  const [inline]

Definition at line 141 of file UListI.H.


Friends And Related Function Documentation

friend class SubList< T > [friend]

Declare friendship with the SubList class.

Definition at line 82 of file UList.H.

Ostream& operator ( Ostream &  ,
const UList< T > &   
) [friend]

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


The documentation for this class was generated from the following files:
  • src/OpenFOAM/containers/Lists/UList/UList.H
  • src/OpenFOAM/containers/Lists/UList/UList.C
  • src/OpenFOAM/containers/Lists/UList/UListI.H
  • src/OpenFOAM/containers/Lists/UList/UListIO.C
Copyright © 2000-2009 OpenCFD Ltd