40 #ifndef Foam_SortList_H 41 #define Foam_SortList_H 69 template<
class Compare>
90 template<
class Compare>
91 inline void sort(
const Compare& comp);
void sort()
Forward (stable) sort the list. Functionally identical to sort with std::less<T>() ...
const UList< T > & values() const noexcept
The list of values (without addressing)
SortList(const UList< T > &values)
Shallow copy values list reference, sort immediately.
void reverseSort()
Reverse (stable) sort the list. Functionally identical to sort with std::greater<T>() ...
An indirect list with addressing based on sorting. The list is sorted upon construction or when expli...
void uniqueSort()
Sort the list, only retaining unique entries.
void reset()
Reset list indices to identity.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
void reverse()
Reverse the indices.
A List with indirect addressing.
const labelUList & indices() const noexcept
Return the list of sorted indices (updated every sort).