Functions to operate on Pointer Lists. More...
Go to the source code of this file.
Namespaces | |
Foam::PtrListOps | |
Various utility functions to operate on Pointer Lists. | |
Foam | |
Namespace for OpenFOAM. | |
Functions | |
template<class T > | |
labelList | sortedOrder (const UPtrList< T > &list) |
Return (stable) sort order for the list. More... | |
template<class T > | |
void | sortedOrder (const UPtrList< T > &list, labelList &order) |
Generate (stable) sort order for the list. More... | |
template<class T , class ListComparePredicate > | |
void | sortedOrder (const UPtrList< T > &list, labelList &order, const ListComparePredicate &comp) |
Generate (stable) sort order for the list, using the specified list compare predicate. More... | |
template<class T > | |
void | shuffle (UPtrList< T > &list) |
Inplace shuffle of pointer list. More... | |
template<class ReturnType , class T , class AccessOp > | |
List< ReturnType > | get (const UPtrList< T > &list, const AccessOp &aop) |
List of values generated by applying the access operation to each list item. More... | |
template<class T , class UnaryMatchPredicate > | |
List< word > | names (const UPtrList< T > &list, const UnaryMatchPredicate &matcher) |
List of names generated by calling name() for each list item and filtered for matches. More... | |
template<class T > | |
List< word > | names (const UPtrList< T > &list) |
List of names generated by calling name() for each list item no filtering (ie, predicates::always) More... | |
template<class T , class UnaryMatchPredicate > | |
label | firstMatching (const UPtrList< T > &list, const UnaryMatchPredicate &matcher) |
Find first list item with 'name()' that matches, -1 on failure. More... | |
template<class T , class UnaryMatchPredicate > | |
labelList | findMatching (const UPtrList< T > &list, const UnaryMatchPredicate &matcher) |
Extract list indices for all items with 'name()' that matches. More... | |
Functions to operate on Pointer Lists.
Original source file PtrListOps.H
InNamespace Foam
Definition in file PtrListOps.H.