A List with indirect addressing. Like IndirectList but does not store addressing. More...
#include <OpenFOAM/UIndirectList.H>
A List with indirect addressing. Like IndirectList but does not store addressing.
Definition at line 55 of file UIndirectList.H.
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 | |
Ostream & | operator (Ostream &, const UIndirectList< T > &) |
Write UIndirectList to Ostream.
|
UIndirectList | ( | const UList< T > & | completeList, |
const UList< label > & | addr | ||
) | [inline]
|
Construct given the complete list and the addressing array.
Definition at line 30 of file UIndirectListI.H.
Foam::label size | ( | ) | const [inline]
|
Definition at line 43 of file UIndirectListI.H.
Referenced by List< T >::append(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), List< T >::operator=(), and DynamicList< T, SizeInc, SizeMult, SizeDiv >::operator=().
bool empty | ( | ) | const [inline]
|
Definition at line 50 of file UIndirectListI.H.
const Foam::UList< T > & completeList | ( | ) | const [inline]
|
Definition at line 57 of file UIndirectListI.H.
const Foam::List< Foam::label > & addressing | ( | ) | const [inline]
|
Definition at line 64 of file UIndirectListI.H.
Foam::List< T > operator() | ( | ) | const [inline]
|
Return the addressed elements as a List.
Definition at line 73 of file UIndirectListI.H.
References forAll.
T & operator[] | ( | const label | i ) | [inline]
|
Return non-const access to an element.
Definition at line 87 of file UIndirectListI.H.
const T & operator[] | ( | const label | i ) | const [inline]
|
Return const access to an element.
Definition at line 94 of file UIndirectListI.H.
void operator= | ( | const UList< T > & | ae ) | [inline]
|
Assignment from UList of addressed elements.
Definition at line 101 of file UIndirectListI.H.
References Foam::abort(), Foam::FatalError, FatalErrorIn, forAll, and UList< T >::size().
void operator= | ( | const T & | t ) | [inline]
|
Assignment of all entries to the given value.
Definition at line 120 of file UIndirectListI.H.
References forAll.
Ostream& operator | ( | Ostream & | , |
const UIndirectList< T > & | |||
) | [friend]
|
Write UIndirectList to Ostream.
Binary output is currently still a bit of a problem