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

SubList Class Template Reference

Inheritance diagram for SubList:

Inheritance graph
[legend]
Collaboration diagram for SubList:

Collaboration graph
[legend]
List of all members.

Detailed Description

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

Definition at line 61 of file SubList.H.


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.
 operator const List () const
 Allow cast to a const List<T>&.

Static Public Member Functions

static 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 SubDimensionedField, and 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.


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