Go to the documentation of this file.
65 template<
class T,
class ListComparePredicate>
68 const UPtrList<T>&
input,
70 const ListComparePredicate& comp
76 void sort(UPtrList<T>& list);
79 template<
class T,
class Compare>
80 void sort(UPtrList<T>& list,
const Compare& comp);
84 void shuffle(UPtrList<T>& list);
110 const T*
const ptr1 =
values(a);
113 return (ptr1 && ptr2) ? (*ptr1 < *ptr2) : !ptr2;
132 const T*
const ptr1 =
values(a);
135 return (ptr1 && ptr2) ? (*ptr2 < *ptr1) : !ptr2;
147 template<
class ReturnType,
class T,
class AccessOp>
165 template<
class T,
class UnaryMatchPredicate>
169 const UnaryMatchPredicate& matcher
180 template<
class T,
class UnaryMatchPredicate>
184 const UnaryMatchPredicate& matcher
189 template<
class T,
class UnaryMatchPredicate>
193 const UnaryMatchPredicate& matcher
List< label > labelList
A List of labels.
labelList findMatching(const UPtrList< T > &list, const UnaryMatchPredicate &matcher)
Extract list indices for all items with 'name()' that matches.
less(const UPtrList< T > &list)
A UPtrList compare binary predicate for normal sort.
A UPtrList compare binary predicate for reverse sort.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
const UPtrList< T > & values
A list of pointers to objects of type <T>, without allocation/deallocation management of the pointers...
const UPtrList< T > & values
void shuffle(UList< T > &a)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
label firstMatching(const UPtrList< T > &list, const UnaryMatchPredicate &matcher)
Find first list item with 'name()' that matches, -1 on failure.
bool operator()(const label a, const label b) const
static Istream & input(Istream &is, IntRange< T > &range)
bool operator()(const label a, const label b) const
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
greater(const UPtrList< T > &list)
Various functions to operate on Lists.
labelList sortedOrder(const UList< T > &input)
Return the (stable) sort order for the list.
List< word > names(const UPtrList< T > &list, const UnaryMatchPredicate &matcher)