A List with indirect addressing. More...
#include <OpenFOAM/IndirectList.H>
A List with indirect addressing.
Definition at line 50 of file IndirectList.H.
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. |
|
inline |
Construct given the complete list and the addressing array.
Definition at line 30 of file IndirectListI.H.
|
inline |
Definition at line 43 of file IndirectListI.H.
Referenced by List< T >::operator=().
|
inline |
Definition at line 50 of file IndirectListI.H.
|
inline |
Definition at line 57 of file IndirectListI.H.
|
inline |
Definition at line 64 of file IndirectListI.H.
|
inline |
Reset addressing.
Definition at line 72 of file IndirectListI.H.
|
inline |
Return the addressed elements as a List.
Definition at line 83 of file IndirectListI.H.
References forAll.
|
inline |
Return non-const access to an element.
Definition at line 97 of file IndirectListI.H.
|
inline |
Return const access to an element.
Definition at line 104 of file IndirectListI.H.
Assignment from UList of addressed elements.
Definition at line 111 of file IndirectListI.H.
References Foam::abort(), Foam::FatalError, FatalErrorIn, forAll, and UList< T >::size().
|
inline |
Assignment of all entries to the given value.
Definition at line 130 of file IndirectListI.H.
References forAll.