OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

List Class Template Reference

Inheritance diagram for List:

Inheritance graph
[legend]
Collaboration diagram for List:

Collaboration graph
[legend]
List of all members.

Detailed Description

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

Definition at line 79 of file List.H.


Public Types

typedef SubList< T > subList
 Declare type of subList.

Public Member Functions

 List ()
 Null constructor.
 List (const label)
 Construct with given size.
 List (const label, const T &)
 Construct with given size and value for all elements.
 List (const List< T > &)
 Copy constructor.
 List (List< T > &, bool reUse)
 Construct as copy or re-use as specified.
template<class InputIterator>
 List (InputIterator first, InputIterator last)
 Construct given size and start and end iterators.
template<label Size>
 List (const FixedList< T, Size > &)
 Construct as copy of FixedList<T, Size>.
 List (const PtrList< T > &)
 Construct as copy of PtrList<T>.
 List (const SLList< T > &)
 Construct as copy of SLList<T>.
 List (const IndirectList< T > &)
 Construct as copy of IndirectList<T>.
 List (const BiIndirectList< T > &)
 Construct as copy of BiIndirectList<T>.
 List (Istream &)
 Construct from Istream.
autoPtr< List< T > > clone () const
 Clone.
 ~List ()
void setSize (const label)
 Reset size of List.
void setSize (const label, const T &)
 Reset size of List and value for new elements.
void clear ()
 Clear the list, i.e. set size to zero.
void transfer (List< T > &)
 Transfer the contents of the argument List into this List.
T & newElmt (const label)
 Return subscript-checked element of UList.
void operator= (const UList< T > &)
 Assignment from UList operator. Takes linear time.
void operator= (const List< T > &)
 Assignment operator. Takes linear time.
void operator= (const SLList< T > &)
 Assignment from SLList operator. Takes linear time.
void operator= (const IndirectList< T > &)
 Assignment from IndirectList operator. Takes linear time.
void operator= (const BiIndirectList< T > &)
 Assignment from BiIndirectList operator. Takes linear time.
void operator= (const T &)
 Assignment of all entries to the given value.

Static Public Member Functions

static List< T > & null ()
 Return a null List.

Friends

Istream & operator>> (Istream &, List< T > &)
 Read List from Istream, discarding contents of existing List.

Member Typedef Documentation

typedef SubList<T> subList

Declare type of subList.

Definition at line 138 of file List.H.


Constructor & Destructor Documentation

List (  )  [inline]

Null constructor.

Definition at line 40 of file ListI.H.

List ( const   label  )  [explicit]

Construct with given size.

List ( const   label,
const T &   
)

Construct with given size and value for all elements.

List ( const List< T > &   ) 

Copy constructor.

List ( List< T > &  ,
bool  reUse 
)

Construct as copy or re-use as specified.

List ( InputIterator  first,
InputIterator  last 
)

Construct given size and start and end iterators.

List ( const FixedList< T, Size > &   ) 

Construct as copy of FixedList<T, Size>.

List ( const PtrList< T > &   ) 

Construct as copy of PtrList<T>.

List ( const SLList< T > &   ) 

Construct as copy of SLList<T>.

List ( const IndirectList< T > &   ) 

Construct as copy of IndirectList<T>.

List ( const BiIndirectList< T > &   ) 

Construct as copy of BiIndirectList<T>.

List ( Istream &   ) 

Construct from Istream.

~List (  ) 


Member Function Documentation

autoPtr< List< T > > clone (  )  const [inline]

Clone.

Reimplemented in PackedList, primitiveEntry, DimensionedField, Field, fixedValuePointPatchField, mixedPointPatchField, valuePointPatchField, curve, cellShape, basicSymmetryFvPatchField, calculatedFvPatchField, coupledFvPatchField, defaultFvPatchField, directionMixedFvPatchField, fixedGradientFvPatchField, fixedValueFvPatchField, mixedFvPatchField, slicedFvPatchField, transformFvPatchField, zeroGradientFvPatchField, cyclicFvPatchField, emptyFvPatchField, processorFvPatchField, symmetryFvPatchField, wedgeFvPatchField, directMappedFixedValueFvPatchField, expDirectionMixedFvPatchField, fixedNormalSlipFvPatchField, freestreamFvPatchField, inletOutletFvPatchField, oscillatingFixedValueFvPatchField, outletInletFvPatchField, partialSlipFvPatchField, slipFvPatchField, timeVaryingMappedFixedValueFvPatchField, timeVaryingUniformFixedValueFvPatchField, turbulentInletFvPatchField, uniformFixedValueFvPatchField, waveTransmissiveFvPatchField, fvPatchField, calculatedFvsPatchField, coupledFvsPatchField, fixedValueFvsPatchField, slicedFvsPatchField, cyclicFvsPatchField, emptyFvsPatchField, processorFvsPatchField, symmetryFvsPatchField, wedgeFvsPatchField, fvsPatchField, cellMotionFvPatchField, angularOscillatingDisplacementPointPatchVectorField, angularOscillatingVelocityPointPatchVectorField, oscillatingDisplacementPointPatchVectorField, oscillatingVelocityPointPatchVectorField, PackedList< 1 >, PackedList< 2 >, DimensionedField< scalar, Foam::volMesh >, DimensionedField< scalar, Foam::pointMesh >, DimensionedField< Type, Foam::GeoMesh< MESH > >, DimensionedField< Type, Foam::surfaceMesh >, DimensionedField< Type, Foam::volMesh >, DimensionedField< Foam::Vectorector< scalar >, Foam::volMesh >, DimensionedField< Type >, DimensionedField< Foam::Vectorector< scalar >, Foam::pointMesh >, DimensionedField< TransferType::dataType, Foam::volMesh >, DimensionedField< Type, Foam::pointMesh >, Field< scalar >, Field< T >, Field< Foam::Vectorector< scalar > >, Field< TransferType::dataType >, fixedValuePointPatchField< Foam::Vectorector< scalar > >, and valuePointPatchField< Foam::Vectorector< scalar > >.

Definition at line 45 of file ListI.H.

References List::setSize().

Here is the call graph for this function:

void setSize ( const   label,
const T &   
)

void transfer ( List< T > &   ) 

T & newElmt ( const   label  )  [inline]

Return subscript-checked element of UList.

Definition at line 54 of file ListI.H.

void operator= ( const SLList< T > &   ) 

Assignment from SLList operator. Takes linear time.

void operator= ( const IndirectList< T > &   ) 

Assignment from IndirectList operator. Takes linear time.

void operator= ( const BiIndirectList< T > &   ) 

Assignment from BiIndirectList operator. Takes linear time.


Friends And Related Function Documentation

Istream& operator>> ( Istream &  ,
List< T > &   
) [friend]

Read List from Istream, discarding contents of existing List.


The documentation for this class was generated from the following files:
  • src/OpenFOAM/containers/Lists/List/List.H
  • src/OpenFOAM/containers/Lists/List/ListI.H
Copyright © 2000-2007 OpenCFD Ltd