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

UIndirectList< T > Class Template Reference

A List with indirect addressing. Like IndirectList but does not store addressing. More...

Collaboration diagram for UIndirectList< T >:

List of all members.


Public Member Functions

 UIndirectList (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
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.

Friends

Ostreamoperator (Ostream &, const UIndirectList< T > &)
 Write UIndirectList to Ostream.

Detailed Description

template<class T>
class Foam::UIndirectList< T >

A List with indirect addressing. Like IndirectList but does not store addressing.

Source files

Definition at line 50 of file UIndirectList.H.


Constructor & Destructor Documentation

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

Construct given the complete list and the addressing array.

Definition at line 22 of file UIndirectListI.H.


Member Function Documentation

Foam::label size (  )  const [inline]

Definition at line 35 of file UIndirectListI.H.

bool empty (  )  const [inline]

Definition at line 42 of file UIndirectListI.H.

References UList< T >::size().

Here is the call graph for this function:

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

Definition at line 49 of file UIndirectListI.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 UIndirectListI.H.

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

Return the addressed elements as a List.

Definition at line 65 of file UIndirectListI.H.

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

Return non-const access to an element.

Definition at line 79 of file UIndirectListI.H.

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

Return const access to an element.

Definition at line 86 of file UIndirectListI.H.

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

Assignment from UList of addressed elements.

Definition at line 93 of file UIndirectListI.H.

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

Assignment of all entries to the given value.

Definition at line 112 of file UIndirectListI.H.


Friends And Related Function Documentation

Ostream& operator ( Ostream ,
const UIndirectList< T > &   
) [friend]

Write UIndirectList to Ostream.

Binary output is currently still a bit of a problem


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