Indexes into negList (negative index) or posList (zero or positive index). More...
Public Member Functions | |
BiIndirectList (const UList< T > &posList, const UList< T > &negList, const labelUList &addr) | |
Construct given the complete lists and the addressing array. More... | |
BiIndirectList (const UList< T > &posList, const UList< T > &negList, labelList &&addr) | |
Construct given the complete list and by transferring addressing. More... | |
label | size () const noexcept |
The number of elements in the list. More... | |
bool | empty () const noexcept |
True if the list is empty (ie, size() is zero). More... | |
const UList< T > & | posList () const noexcept |
const UList< T > & | negList () const noexcept |
const labelList & | addressing () const noexcept |
Return the list addressing. More... | |
void | resetAddressing (const labelUList &addr) |
Copy reset addressing. More... | |
void | resetAddressing (labelList &&addr) |
Move reset addressing. More... | |
List< T > | operator() () const |
Return the addressed elements as a List. More... | |
T & | operator[] (const label i) |
Return non-const access to an element. More... | |
const T & | operator[] (const label i) const |
Return const access to an element. More... | |
void | operator= (const UList< T > &ae) |
Assignment to UList of addressed elements. More... | |
void | operator= (const T &val) |
Assignment of all entries to the given value. More... | |
Static Public Member Functions | |
static label | posIndex (const label i) |
Calculate index given whether index is into posList or negList. More... | |
static label | negIndex (const label i) |
Indexes into negList (negative index) or posList (zero or positive index).
Definition at line 52 of file BiIndirectList.H.
|
inline |
Construct given the complete lists and the addressing array.
Definition at line 49 of file BiIndirectListI.H.
Construct given the complete list and by transferring addressing.
Definition at line 63 of file BiIndirectListI.H.
|
inlinenoexcept |
The number of elements in the list.
Definition at line 78 of file BiIndirectListI.H.
|
inlinenoexcept |
True if the list is empty (ie, size() is zero).
Definition at line 85 of file BiIndirectListI.H.
|
inlinenoexcept |
Definition at line 92 of file BiIndirectListI.H.
|
inlinenoexcept |
Definition at line 99 of file BiIndirectListI.H.
|
inlinenoexcept |
Return the list addressing.
Definition at line 107 of file BiIndirectListI.H.
|
inlinestatic |
Calculate index given whether index is into posList or negList.
Definition at line 32 of file BiIndirectListI.H.
|
inlinestatic |
Definition at line 39 of file BiIndirectListI.H.
|
inline |
Copy reset addressing.
Definition at line 115 of file BiIndirectListI.H.
|
inline |
Move reset addressing.
Definition at line 125 of file BiIndirectListI.H.
|
inline |
Return the addressed elements as a List.
Definition at line 136 of file BiIndirectListI.H.
References forAll.
|
inline |
Return non-const access to an element.
Definition at line 150 of file BiIndirectListI.H.
|
inline |
Return const access to an element.
Definition at line 166 of file BiIndirectListI.H.
Assignment to UList of addressed elements.
Definition at line 182 of file BiIndirectListI.H.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, forAll, and UList< T >::size().
|
inline |
Assignment of all entries to the given value.
Definition at line 201 of file BiIndirectListI.H.
References forAll.