Loading...
Searching...
No Matches
PtrListOps.H File Reference

Functions to operate on Pointer Lists. More...

Include dependency graph for PtrListOps.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Foam::PtrListOps
 Various utility functions to operate on Pointer Lists.
namespace  Foam
 Namespace for OpenFOAM.

Functions

template<class T>
labelList sortedOrder (const UPtrList< T > &list)
 Return (stable) sort order for the list.
template<class T>
void sortedOrder (const UPtrList< T > &list, labelList &order)
 Generate (stable) sort order for the list.
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.
template<class T>
void shuffle (UPtrList< T > &list)
 Inplace shuffle of pointer list.
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.
template<class T, class UnaryMatchPredicate>
List< wordnames (const UPtrList< T > &list, const UnaryMatchPredicate &matcher)
 List of names generated by calling name() for each list item and filtered for matches.
template<class T>
List< wordnames (const UPtrList< T > &list)
 List of names generated by calling name() for each list item no filtering (ie, predicates::always).
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.
template<class T, class UnaryMatchPredicate>
labelList findMatching (const UPtrList< T > &list, const UnaryMatchPredicate &matcher)
 Extract list indices for all items with 'name()' that matches.

Detailed Description

Functions to operate on Pointer Lists.

Original source file PtrListOps.H

InNamespace Foam

Definition in file PtrListOps.H.