38 #ifndef SortableList_H 39 #define SortableList_H const labelList & indices() const
Return the list of sorted indices. Updated every sort.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
A simple container for copying or transferring objects of type <T>.
void operator=(const T &)
Assignment of all entries to the given value.
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 sort()
(stable) sort the list (if changed after construction time)
void reverseSort()
Reverse (stable) sort the list.
void clear()
Clear the list and the indices.
A list that is sorted upon construction or when explicitly requested with the sort() method...
Xfer< List< T > > xfer()
Transfer contents to the Xfer container as a plain List.
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...
label size() const
Return the number of elements in the UList.
SortableList()
Null constructor, sort later (eg, after assignment or transfer)
List< T > & shrink()
Clear the indices and return a reference to the underlying List.
friend class List< T >
Declare friendship with the List class.