Go to the documentation of this file.
38 #ifndef SortableList_H
39 #define SortableList_H
void sort()
(stable) sort the list (if changed after construction time)
void reverseSort()
Reverse (stable) sort the list.
void operator=(const T &)
Assignment of all entries to the given value.
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.
labelList & indices()
Return non-const access to the sorted indices. Updated every sort.
SortableList()
Null constructor, sort later (eg, after assignment or transfer)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
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.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const labelList & indices() const
Return the list of sorted indices. Updated every sort.
void clear()
Clear the list and the indices.
labelList indices_
Original indices.
Xfer< List< T > > xfer()
Transfer contents to the Xfer container as a plain List.