OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

BiIndirectList< T > Class Template Reference

Indexes into negList (negative index) or posList (zero or positive index). More...

Collaboration diagram for BiIndirectList< T >:

List of all members.


Public Member Functions

 BiIndirectList (const UList< T > &posList, const UList< T > &negList, const UList< label > &)
 Construct given the complete lists and the addressing array.
label size () const
bool empty () 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)
 Calculate index given whether index is into posList or negList.
static label negIndex (const label)

Detailed Description

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

Indexes into negList (negative index) or posList (zero or positive index).

Source files

Definition at line 45 of file BiIndirectList.H.


Constructor & Destructor Documentation

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

Construct given the complete lists and the addressing array.

Definition at line 22 of file BiIndirectListI.H.


Member Function Documentation

Foam::label size (  )  const [inline]

Definition at line 37 of file BiIndirectListI.H.

bool empty (  )  const [inline]

Definition at line 44 of file BiIndirectListI.H.

References List< T >::size().

Here is the call graph for this function:

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

Definition at line 51 of file BiIndirectListI.H.

References UList< T >::empty().

Here is the call graph for this function:

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

Definition at line 58 of file BiIndirectListI.H.

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

Definition at line 65 of file BiIndirectListI.H.

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

Definition at line 73 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 80 of file BiIndirectListI.H.

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

Definition at line 87 of file BiIndirectListI.H.

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

Return the addressed elements as a List.

Definition at line 96 of file BiIndirectListI.H.

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

Return non-const access to an element.

Definition at line 110 of file BiIndirectListI.H.

Referenced by BiIndirectList< T >::operator=().

Here is the caller graph for this function:

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

Return const access to an element.

Definition at line 126 of file BiIndirectListI.H.

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

Assignment from UList of addressed elements.

Definition at line 142 of file BiIndirectListI.H.

void operator= ( const T &  t  )  [inline]

Assignment of all entries to the given value.

Definition at line 161 of file BiIndirectListI.H.

References BiIndirectList< T >::operator[]().

Here is the call graph for this function:


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