Various utility functions to operate on Pointer Lists. More...
Functions | |
| 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... | |
Various utility functions to operate on Pointer Lists.
List of values generated by applying the access operation to each list item.
For example,
| List<word> Foam::PtrListOps::names | ( | const UPtrList< T > & | list, |
| const UnaryMatchPredicate & | matcher | ||
| ) |
List of names generated by calling name() for each list item and filtered for matches.
For example,
Referenced by coordinateSystems::names().

List of names generated by calling name() for each list item no filtering (ie, predicates::always)
| label Foam::PtrListOps::firstMatching | ( | const UPtrList< T > & | list, |
| const UnaryMatchPredicate & | matcher | ||
| ) |
Find first list item with 'name()' that matches, -1 on failure.
Referenced by coordinateSystems::cfind(), fvBoundaryMesh::cfindPatch(), pointBoundaryMesh::cfindPatch(), faBoundaryMesh::cfindPatch(), polyBoundaryMesh::cfindPatch(), coordinateSystems::findIndex(), faBoundaryMesh::findIndex(), ZoneMesh< cellZone, polyMesh >::findIndex(), polyBoundaryMesh::findIndex(), fvBoundaryMesh::findPatchID(), pointBoundaryMesh::findPatchID(), faBoundaryMesh::findPatchID(), polyBoundaryMesh::findPatchID(), ZoneMesh< cellZone, polyMesh >::findZoneID(), pointBoundaryMesh::indices(), faBoundaryMesh::indices(), ZoneMesh< cellZone, polyMesh >::indices(), and polyBoundaryMesh::indices().

| labelList Foam::PtrListOps::findMatching | ( | const UPtrList< T > & | list, |
| const UnaryMatchPredicate & | matcher | ||
| ) |
Extract list indices for all items with 'name()' that matches.
Referenced by surfaceFormatsCore::getSelectedPatches(), coordinateSystems::indices(), pointBoundaryMesh::indices(), faBoundaryMesh::indices(), ZoneMesh< cellZone, polyMesh >::indices(), and polyBoundaryMesh::indices().
