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 &) | |
Construct given the complete lists and the addressing array. More... | |
BiIndirectList (const UList< T > &posList, const UList< T > &negList, const Xfer< List< label >> &) | |
Construct given the complete list and by transferring addressing. More... | |
label | size () const |
Return the number of elements in the list. More... | |
bool | empty () const |
Return true if the list is empty (ie, size() is zero). More... | |
const UList< T > & | posList () const |
const UList< T > & | negList () const |
const List< label > & | addressing () const |
Return the list addressing. More... | |
void | resetAddressing (const labelUList &) |
Reset addressing. More... | |
void | resetAddressing (const Xfer< List< label >> &) |
List< T > | operator() () const |
Return the addressed elements as a List. More... | |
T & | operator[] (const label) |
Return non-const access to an element. More... | |
const T & | operator[] (const label) const |
Return const access to an element. More... | |
void | operator= (const UList< T > &) |
Assignment from UList of addressed elements. More... | |
void | operator= (const T &) |
Assignment of all entries to the given value. More... | |
Static Public Member Functions | |
static label | posIndex (const label) |
Calculate index given whether index is into posList or negList. More... | |
static label | negIndex (const label) |
Indexes into negList (negative index) or posList (zero or positive index).
Definition at line 49 of file BiIndirectList.H.
|
inline |
Construct given the complete lists and the addressing array.
Definition at line 30 of file BiIndirectListI.H.
|
inline |
Construct given the complete list and by transferring addressing.
Definition at line 44 of file BiIndirectListI.H.
|
inline |
Return the number of elements in the list.
Definition at line 59 of file BiIndirectListI.H.
Referenced by List< T >::operator=().
|
inline |
Return true if the list is empty (ie, size() is zero).
Definition at line 66 of file BiIndirectListI.H.
|
inline |
Definition at line 73 of file BiIndirectListI.H.
|
inline |
Definition at line 80 of file BiIndirectListI.H.
|
inline |
Return the list addressing.
Definition at line 87 of file BiIndirectListI.H.
References BiIndirectList< T >::resetAddressing().
|
inlinestatic |
Calculate index given whether index is into posList or negList.
Definition at line 115 of file BiIndirectListI.H.
|
inlinestatic |
Definition at line 122 of file BiIndirectListI.H.
|
inline |
Reset addressing.
Definition at line 96 of file BiIndirectListI.H.
Referenced by BiIndirectList< T >::addressing().
Definition at line 106 of file BiIndirectListI.H.
|
inline |
Return the addressed elements as a List.
Definition at line 131 of file BiIndirectListI.H.
References forAll.
Return non-const access to an element.
Definition at line 145 of file BiIndirectListI.H.
Return const access to an element.
Definition at line 161 of file BiIndirectListI.H.
Assignment from UList of addressed elements.
Definition at line 177 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 196 of file BiIndirectListI.H.
References forAll.