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, List< label > &&) | |
Move constructor given the complete list and by moving 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... | |
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= (List< T > &&) |
Move assignment to List of addressed elements. More... | |
void | operator= (const UList< T > &) |
Assignment to 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 29 of file BiIndirectListI.H.
|
inline |
Move constructor given the complete list and by moving addressing.
Definition at line 43 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.
|
inlinestatic |
Calculate index given whether index is into posList or negList.
Definition at line 105 of file BiIndirectListI.H.
|
inlinestatic |
Definition at line 112 of file BiIndirectListI.H.
|
inline |
Reset addressing.
Definition at line 95 of file BiIndirectListI.H.
|
inline |
Return the addressed elements as a List.
Definition at line 121 of file BiIndirectListI.H.
References forAll.
Return non-const access to an element.
Definition at line 135 of file BiIndirectListI.H.
Return const access to an element.
Definition at line 151 of file BiIndirectListI.H.
Move assignment to List of addressed elements.
Definition at line 167 of file BiIndirectListI.H.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
Assignment to UList of addressed elements.
Definition at line 183 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 202 of file BiIndirectListI.H.
References forAll.