36 #ifndef SortableListEFA_H
37 #define SortableListEFA_H
79 return values_[a] > values_[
b];
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
label size() const
Return the number of elements in the UList.
Less function class used by the sort function.
more(const UList< Type > &values)
bool operator()(const label a, const label b)
A list that is sorted upon construction or when explicitly requested with the sort() method.
void stableSort()
Sort the list (if changed after construction time)
const labelList & indices() const
Return the list of sorted indices. Updated every sort.
void operator=(const SortableListEFA< Type > &)
void sort()
Sort the list (if changed after construction time)
SortableListEFA(const List< Type > &)
Construct from List, sorting the elements. Starts with indices set.
void partialSort(int M, int start)
Partial sort the list (if changed after construction time)
void setSize(const label)
Size the list. If grow can cause undefined indices (until next sort)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.