35 #ifndef BiIndirectList_H 36 #define BiIndirectList_H 88 inline bool empty()
const;
A simple container for copying or transferring objects of type <T>.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
BiIndirectList(const UList< T > &posList, const UList< T > &negList, const labelUList &)
Construct given the complete lists and the addressing array.
const UList< T > & posList() const
static label negIndex(const label)
bool empty() const
Return true if the list is empty (ie, size() is zero).
T & operator[](const label)
Return non-const access to an element.
static label posIndex(const label)
Calculate index given whether index is into posList or negList.
void resetAddressing(const labelUList &)
Reset addressing.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
void operator=(const UList< T > &)
Assignment from UList of addressed elements.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Indexes into negList (negative index) or posList (zero or positive index).
List< T > operator()() const
Return the addressed elements as a List.
label size() const
Return the number of elements in the list.
const List< label > & addressing() const
Return the list addressing.
const UList< T > & negList() const