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) |
template<class T , class UnaryMatchPredicate > | |
List< word > | names (const UPtrList< T > &list, const UnaryMatchPredicate &matcher) |
template<class T > | |
List< word > | names (const UPtrList< T > &list) |
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 of names generated by calling name()
for each list item and filtered for matches
For example,
Referenced by faFieldDecomposer::fieldsCache::privateCache::decompose(), fvFieldDecomposer::fieldsCache::privateCache::decompose(), pointFieldDecomposer::fieldsCache::privateCache::decompose(), and coordinateSystems::names().
List of names generated by calling name()
for each list item no filtering (ie, predicates::always)
Find first list item with 'name()' that matches, -1 on failure.
Referenced by coordinateSystems::cfind(), faBoundaryMesh::findIndex(), polyBoundaryMesh::findIndex(), coordinateSystems::findIndex(), faBoundaryMesh::findPatchID(), polyBoundaryMesh::findPatchID(), faBoundaryMesh::indices(), and polyBoundaryMesh::indices().
Extract list indices for all items with 'name()' that matches.
Referenced by coordinateSystems::indices(), faBoundaryMesh::indices(), and polyBoundaryMesh::indices().