UList< T > Class Template ReferenceA 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...
List of all members.
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
The type that can represent the difference between any two.
UList iterator objects.
Definition at line 221 of file UList.H.
The type that can represent the size of a UList.
Definition at line 224 of file UList.H.
Reverse iterator for reverse traversal of UList.
Definition at line 260 of file UList.H.
Reverse iterator for reverse traversal of constant UList.
Definition at line 272 of file UList.H.
Constructor & Destructor Documentation
Null constructor.
Definition at line 25 of file UListI.H.
Construct from components.
Definition at line 33 of file UListI.H.
Member Function Documentation
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.
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.
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().
| const T * cdata |
( |
|
) |
const [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] |
| void checkSize |
( |
const label |
size |
) |
const [inline] |
| 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] |
| void writeEntry |
( |
const word & |
keyword, |
|
|
Ostream & |
os | |
|
) |
| | const [inline] |
Write the UList as a dictionary entry with keyword.
Reimplemented in Field< Type >, Field< tensor >, Field< scalar >, Field< label >, Field< complexVector >, Field< translationRotationVectors >, Field< Field< Type > >, Field< symmTensor >, Field< point >, Field< Type >, Field< PointType >, and Field< vector >.
Definition at line 45 of file UListIO.C.
| void assign |
( |
const UList< T > & |
a |
) |
[inline] |
| T & operator[] |
( |
const label |
i |
) |
[inline] |
| const T & operator[] |
( |
const label |
i |
) |
const [inline] |
| operator const Foam::List< T > & |
( |
|
) |
const [inline] |
| 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().
Return an iterator to begin traversing the UList.
Reimplemented in PackedList< nBits >, and PackedList< 2 >.
Definition at line 180 of file UListI.H.
Referenced by lduMatrix::Amul(), mapDistribute::distribute(), PtrList< T >::end(), UPtrList< T >::end(), lduMatrix::H(), Foam::handler(), Pstream::listCombineGather(), UList< T >::operator==(), processorLduInterface::send(), LUscalarMatrix::solve(), Foam::sort(), and Foam::stableSort().
Return reverse_iterator to begin reverse traversing the UList.
Definition at line 222 of file UListI.H.
Return reverse_iterator to end reverse traversing the UList.
Definition at line 243 of file UListI.H.
Return const_reverse_iterator to begin reverse traversing the UList.
Definition at line 236 of file UListI.H.
Return const_reverse_iterator to end reverse traversing the UList.
Definition at line 257 of file UListI.H.
Return const_reverse_iterator to begin reverse traversing the UList.
Definition at line 229 of file UListI.H.
Return const_reverse_iterator to end reverse traversing the UList.
Definition at line 250 of file UListI.H.
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().
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] |
| bool operator== |
( |
const UList< T > & |
a |
) |
const [inline] |
| 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] |
| bool operator> |
( |
const UList< T > & |
a |
) |
const [inline] |
| bool operator<= |
( |
const UList< T > & |
a |
) |
const [inline] |
| bool operator>= |
( |
const UList< T > & |
a |
) |
const [inline] |
| const bool & operator[] |
( |
const label |
i |
) |
const [inline] |
Friends And Related Function Documentation
friend class List< T > [friend] |
Declare friendship with the List class.
Reimplemented in DynamicList< T, SizeInc, SizeMult, SizeDiv >, DynamicList< procPointList >, DynamicList< molecule * >, DynamicList< STLpoint >, DynamicList< label >, DynamicList< splitCell8 >, DynamicList< dsmcParcel * >, DynamicList< referredMolecule >, DynamicList< word >, DynamicList< autoPtr< parcelType > >, DynamicList< ParcelType * >, DynamicList< point >, and DynamicList< face >.
Definition at line 79 of file UList.H.
Declare friendship with the SubList class.
Definition at line 82 of file UList.H.
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
|