OpenFOAM logo
Open Source CFD Toolkit

SubList Class Template Reference

Inheritance diagram for SubList:

Inheritance graph
[legend]
Collaboration diagram for SubList:

Collaboration graph
[legend]
List of all members.

template<class T>
class Foam::SubList< T >


Public Member Functions

 SubList (const UList< T > &list, const label subSize)
 Construct from UList and SubList size.
 SubList (const UList< T > &list, const label subSize, const label startIndex)
 Construct from UList, start and end indices.
const T & operator[] (const label l) const
 Return const subscript-checked element of SubList.
 operator const List () const
 Allow cast to a const List<T>&.

Static Public Member Functions

SubList< T > & null ()
 Return a null SubList.

Constructor & Destructor Documentation

SubList const UList< T > &  list,
const label  subSize
[inline]
 

Construct from UList and SubList size.

Definition at line 41 of file SubListI.H.

SubList const UList< T > &  list,
const label  subSize,
const label  startIndex
[inline]
 

Construct from UList, start and end indices.

Definition at line 56 of file SubListI.H.

References UList::checkSize(), and UList::checkStart().

Here is the call graph for this function:


Member Function Documentation

SubList< T > & null  )  [inline, static]
 

Return a null SubList.

Reimplemented from UList.

Reimplemented in SubField.

Definition at line 87 of file SubListI.H.

operator const List< T > &  )  const [inline]
 

Allow cast to a const List<T>&.

Reimplemented from UList.

Definition at line 98 of file SubListI.H.

const T& operator[] const label  l  )  const [inline]
 

Return const subscript-checked element of SubList.

Definition at line 100 of file SubList.H.


The documentation for this class was generated from the following files:
For further information go to www.openfoam.org