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

BiIndirectList Class Template Reference

List of all members.

Detailed Description

template<class T>
class Foam::BiIndirectList< T >

Definition at line 59 of file BiIndirectList.H.


Public Member Functions

 BiIndirectList (const UList< T > &posList, const UList< T > &negList, const List< label > &)
 Construct given the complete lists and the addressing array.
label size () const
const UList< T > & posList () const
const UList< T > & negList () const
const List< label > & addressing () const
List< label > & addressing ()
List< T > operator() () const
 Return the addressed elements as a List.
T & operator[] (const label)
 Return non-const access to an element.
const T & operator[] (const label) const
 Return const access to an element.
void operator= (const UList< T > &)
 Assignment from UList of addressed elements.
void operator= (const T &)
 Assignment of all entries to the given value.

Static Public Member Functions

static label posIndex (const label i)
 Calculate index given whether index is into posList or negList.
static label negIndex (const label i)

Constructor & Destructor Documentation

BiIndirectList ( const UList< T > &  posList,
const UList< T > &  negList,
const List< label > &   
) [inline]

Construct given the complete lists and the addressing array.

Definition at line 36 of file BiIndirectListI.H.


Member Function Documentation

Foam::label size (  )  const [inline]

Definition at line 51 of file BiIndirectListI.H.

Referenced by BiIndirectList::negIndex().

Here is the caller graph for this function:

const Foam::UList< T > & posList (  )  const [inline]

Definition at line 58 of file BiIndirectListI.H.

const Foam::UList< T > & negList (  )  const [inline]

Definition at line 65 of file BiIndirectListI.H.

const Foam::List< Foam::label > & addressing (  )  const [inline]

Definition at line 72 of file BiIndirectListI.H.

Foam::List< Foam::label > & addressing (  )  [inline]

Definition at line 80 of file BiIndirectListI.H.

Foam::label posIndex ( const label  i  )  [inline, static]

Calculate index given whether index is into posList or negList.

Definition at line 87 of file BiIndirectListI.H.

Foam::label negIndex ( const label  i  )  [inline, static]

Definition at line 94 of file BiIndirectListI.H.

References forAll, and BiIndirectList::size().

Here is the call graph for this function:

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

Return the addressed elements as a List.

Definition at line 103 of file BiIndirectListI.H.

References BiIndirectList::operator[]().

Here is the call graph for this function:

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

Return non-const access to an element.

Definition at line 117 of file BiIndirectListI.H.

Referenced by BiIndirectList::operator()().

Here is the caller graph for this function:

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

Return const access to an element.

Definition at line 133 of file BiIndirectListI.H.

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

Assignment from UList of addressed elements.

Definition at line 149 of file BiIndirectListI.H.

void operator= ( const T &   )  [inline]

Assignment of all entries to the given value.

Definition at line 168 of file BiIndirectListI.H.


The documentation for this class was generated from the following files: Copyright © 2000-2007 OpenCFD Ltd