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);
const UList< T > & values() const noexcept
IndirectList(const UList< T > &values, const labelUList &addr)
Copy construct addressing, shallow copy values reference.
void reverse()
Reverse the indices.
void sort()
Forward (stable) sort the list. Functionally identical to sort with std::less<T>().
const labelUList & indices() const noexcept
Return the list of sorted indices (updated every sort).
void reverseSort()
Reverse (stable) sort the list. Functionally identical to sort with std::greater<T>().
void uniqueSort()
Sort the list, only retaining unique entries.
void reset()
Reset list indices to identity.
SortList(const UList< T > &values)
Shallow copy values list reference, sort immediately.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
List< label > labelList
A List of labels.
UList< label > labelUList
A UList of labels.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)