Indexes into negList (negative index) or posList (zero or positive index). More...
#include <OpenFOAM/BiIndirectList.H>
Indexes into negList (negative index) or posList (zero or positive index).
Definition at line 50 of file BiIndirectList.H.
Public Member Functions | |
BiIndirectList (const UList< T > &posList, const UList< T > &negList, const UList< label > &) | |
Construct given the complete lists and the addressing array. | |
label | size () const |
bool | empty () const |
const UList< T > & | posList () const |
const UList< T > & | negList () const |
const List< label > & | addressing () const |
List< label > & | 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. |
Static Public Member Functions | |
static label | posIndex (const label) |
Calculate index given whether index is into posList or negList. | |
static label | negIndex (const label) |
|
inline |
Construct given the complete lists and the addressing array.
Definition at line 30 of file BiIndirectListI.H.
|
inline |
Definition at line 45 of file BiIndirectListI.H.
Referenced by List< T >::operator=().
|
inline |
Definition at line 52 of file BiIndirectListI.H.
|
inline |
Definition at line 59 of file BiIndirectListI.H.
|
inline |
Definition at line 66 of file BiIndirectListI.H.
|
inline |
Definition at line 73 of file BiIndirectListI.H.
|
inline |
Definition at line 81 of file BiIndirectListI.H.
|
inlinestatic |
Calculate index given whether index is into posList or negList.
Definition at line 88 of file BiIndirectListI.H.
|
inlinestatic |
Definition at line 95 of file BiIndirectListI.H.
|
inline |
Return the addressed elements as a List.
Definition at line 104 of file BiIndirectListI.H.
References forAll.
|
inline |
Return non-const access to an element.
Definition at line 118 of file BiIndirectListI.H.
|
inline |
Return const access to an element.
Definition at line 134 of file BiIndirectListI.H.
Assignment from UList of addressed elements.
Definition at line 150 of file BiIndirectListI.H.
References Foam::abort(), Foam::FatalError, FatalErrorIn, forAll, and UList< T >::size().
|
inline |
Assignment of all entries to the given value.
Definition at line 169 of file BiIndirectListI.H.
References forAll.