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

IndirectList< T > Class Template Reference

A List with indirect addressing. More...

Collaboration diagram for IndirectList< T >:

List of all members.


Public Member Functions

 IndirectList (const UList< T > &, const UList< label > &)
 Construct given the complete list and the addressing array.
label size () const
bool empty () const
const UList< T > & completeList () const
const List< label > & addressing () const
void resetAddressing (const UList< label > &)
 Reset 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.

Detailed Description

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

A List with indirect addressing.

Source files

Definition at line 45 of file IndirectList.H.


Constructor & Destructor Documentation

IndirectList ( const UList< T > &  completeList,
const UList< label > &  addr 
) [inline]

Construct given the complete list and the addressing array.

Definition at line 22 of file IndirectListI.H.


Member Function Documentation

Foam::label size (  )  const [inline]

Definition at line 35 of file IndirectListI.H.

bool empty (  )  const [inline]

Definition at line 42 of file IndirectListI.H.

References List< T >::size().

Here is the call graph for this function:

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

Definition at line 49 of file IndirectListI.H.

References UList< T >::empty().

Here is the call graph for this function:

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

Definition at line 56 of file IndirectListI.H.

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

Reset addressing.

Definition at line 64 of file IndirectListI.H.

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

Return the addressed elements as a List.

Definition at line 75 of file IndirectListI.H.

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

Return non-const access to an element.

Definition at line 89 of file IndirectListI.H.

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

Return const access to an element.

Definition at line 96 of file IndirectListI.H.

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

Assignment from UList of addressed elements.

Definition at line 103 of file IndirectListI.H.

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

Assignment of all entries to the given value.

Definition at line 122 of file IndirectListI.H.


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