90 return static_cast<List<T>&
>(*this);
127 return xferMoveTo<List<T>>(*this);
A simple container for copying or transferring objects of type <T>.
#define forAll(list, i)
Loop across all elements in list.
void sort()
(stable) sort the list (if changed after construction time)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void sortedOrder(const UList< T > &, labelList &order)
Generate the (stable) sort order for the list.
SortableList()
Null constructor, sort later (eg, after assignment or transfer)
T & operator[](const label)
Return element of UList.
List< T > & shrink()
Clear the indices and return a reference to the underlying List.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A list that is sorted upon construction or when explicitly requested with the sort() method...
Various functions to operate on Lists.
void operator=(const T &)
Assignment of all entries to the given value.
void clear()
Clear the list, i.e. set size to zero.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
label size() const
Return the number of elements in the UList.
void operator=(const UList< T > &)
Assignment from UList operator. Takes linear time.
void reverseSort()
Reverse (stable) sort the list.
Greater function class that can be used for sorting.
const labelList & indices() const
Return the list of sorted indices. Updated every sort.
void clear()
Clear the list and the indices.
void transfer(List< T > &)
Transfer the contents of the argument List into this list.
Xfer< List< T > > xfer()
Transfer contents to the Xfer container as a plain List.