46#ifndef Foam_SortableList_H
47#define Foam_SortableList_H
162 void operator=(std::initializer_list<T> lst);
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.
void partialSort(label n, label start=0)
Forward partial sort the list until the middle point.
const labelList & indices() const noexcept
Return the list of sorted indices. Updated every sort.
labelList & indices() noexcept
Return non-const access to the sorted indices. Updated every sort.
void operator=(const T &val)
Assignment of all entries to the given value, removing indices.
void sort()
Forward (stable) sort the list (if changed after construction).
void reverseSort()
Reverse (stable) sort the list.
constexpr SortableList() noexcept
Default construct.
void swap(SortableList< T > &other)
Swap content with another SortableList in constant time.
List< T > & shrink()
Clear the indices and return a reference to the underlying List.
void clear()
Clear the list and the indices.
void partialReverseSort(label n, label start=0)
Reverse partial sort the list until the middle point.
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 noexcept
The number of elements in the UList.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...