38 #ifndef SortableList_H 39 #define SortableList_H 137 void operator=(std::initializer_list<T>);
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.
SortableList()
Null constructor, sort later (eg, after assignment or transfer)
List< T > & shrink()
Clear the indices and return a reference to the underlying List.
A list that is sorted upon construction or when explicitly requested with the sort() method...
friend class List< T >
Declare friendship with the List class.
void operator=(const T &)
Assignment of all entries to the given value.
List< label > labelList
A List of labels.
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 reverseSort()
Reverse (stable) sort the list.
label size() const
Return the number of elements in the UList.
void clear()
Clear the list and the indices.