Go to the documentation of this file.
42 template<
class Compare>
56 return this->addressing();
63 return this->addressing();
77 const label len = this->
values().size();
86 template<
class Compare>
92 if (addr.size() != vals.
size())
102 [&](label a, label
b) ->
bool {
return comp(vals[a], vals[
b]); }
113 if (addr.size() != vals.
size())
124 [&](label a, label
b) ->
bool {
return vals[a] < vals[
b]; }
135 if (addr.size() != vals.
size())
146 [&](label a, label
b) ->
bool {
return vals[
b] < vals[a]; }
void reverse(UList< T > &list, const label n)
void resize(const label len)
Adjust allocated size of list.
void reverseSort()
Reverse (stable) sort the list.
const labelUList & indices() const
Return the list of sorted indices. Updated every sort.
List< T > values(const HashTable< T, Key, Hash > &tbl, const bool doSort=false)
List of values from HashTable, optionally sorted.
SortList(const UList< T > &values)
Shallow copy values list reference, sort immediately.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
A List with indirect addressing.
void reset()
Reset list indices to identity.
void identity(labelUList &map, label start=0)
Set identity map with (map[i] == i)
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
labelList identity(const label len, label start=0)
Create identity map of the given length with (map[i] == i)
Various functions to operate on Lists.
void size(const label n)
Older name for setAddressableSize.
void reverse()
Reverse the indices.