Go to the documentation of this file.
36 int main(
int argc,
char *argv[])
62 Info<<
"reverse sorted: " << aReverse <<
endl;
68 Info<<
"indices: " <<
b.indices() <<
endl;
71 Info<<
"indices: " <<
b.indices() <<
endl;
79 Info<<
"indices: " <<
b.indices() <<
endl;
88 Info<<
"duplicate:" << order <<
endl;
94 Info<<
"indices: " <<
b.indices() <<
endl;
103 Info<<
"indices: " <<
b.indices() <<
endl;
109 Info<<
"indices: " <<
b.indices() <<
endl;
120 Info<<
"duplicate:" << order <<
endl;
124 Info<<
"indices: " <<
b.indices() <<
endl;
133 Info<<
"duplicate:" << order <<
endl;
137 Info<<
"indices: " <<
b.indices() <<
endl;
void reverseSort()
Reverse (stable) sort the list.
void transfer(List< T > &)
Transfer the contents of the argument List into this list.
Ostream & endl(Ostream &os)
Add newline and flush stream.
void sortedOrder(const UList< T > &, labelList &order)
Generate the (stable) sort order for the list.
void duplicateOrder(const UList< T > &, labelList &order)
Generate (sorted) indices corresponding to duplicate list values.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
A list that is sorted upon construction or when explicitly requested with the sort() method.
void uniqueOrder(const UList< T > &, labelList &order)
Generate (sorted) indices corresponding to unique list values.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
int main(int argc, char *argv[])
const labelList & indices() const
Return the list of sorted indices. Updated every sort.
Various functions to operate on Lists.
void size(const label)
Override size to be inconsistent with allocated storage.