107 return static_cast<List<T>&
>(*this);
170 indices_ = move(lst.indices());
#define forAll(list, i)
Loop across all elements in list.
void sort()
(stable) sort the list (if changed after construction time)
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...
const labelList & indices() const
Return the list of sorted indices. Updated every sort.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
void operator=(const UList< T > &)
Assignment to UList operator. Takes linear time.
void reverseSort()
Reverse (stable) sort the list.
Greater function class that can be used for sorting.
label size() const
Return the number of elements in the UList.
void clear()
Clear the list and the indices.
void transfer(List< T > &)
Transfer the contents of the argument List into this list.