OpenFOAM logo
Open Source CFD Toolkit

IndirectList Class Template Reference

Collaboration diagram for IndirectList:

Collaboration graph
[legend]
List of all members.

template<class T>
class Foam::IndirectList< T >


Public Member Functions

 IndirectList (const UList< T > &, const List< label > &)
 Construct given the complete list and the addressing array.
label size () const
const UList< T > & completeList () const
const List< label > & addressing () const
void resetAddressing (const List< label > &addr)
 Reset addressing.
List< T > operator() () const
 Return the addressed elements as a List.
const T & operator[] (const label) const
 Return const access to an element.

Friends

Ostreamoperator (Ostream &, const IndirectList< T > &)

Constructor & Destructor Documentation

IndirectList const UList< T > &  ,
const List< label > & 
[inline]
 

Construct given the complete list and the addressing array.

Definition at line 42 of file IndirectListI.H.

References UList::size().

Here is the call graph for this function:


Member Function Documentation

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

Definition at line 70 of file IndirectListI.H.

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

Definition at line 63 of file IndirectListI.H.

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

Return the addressed elements as a List.

Definition at line 89 of file IndirectListI.H.

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

Return const access to an element.

Definition at line 103 of file IndirectListI.H.

References forAll, and UList::size().

Referenced by IndirectList::resetAddressing().

Here is the call graph for this function:

void resetAddressing const List< label > &  addr  )  [inline]
 

Reset addressing.

Definition at line 78 of file IndirectListI.H.

References forAll, IndirectList::operator[](), and IndirectList::size().

Here is the call graph for this function:

Foam::label size  )  const [inline]
 

Definition at line 55 of file IndirectListI.H.

Referenced by IndirectList::resetAddressing().


Friends And Related Function Documentation

Ostream& operator Ostream ,
const IndirectList< T > & 
[friend]
 


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