ENH: additional PtrListOps to simplify gathering information
- get: uses access operation to get values for each list item Example, PtrListOps::get(mesh.boundaryMesh(), nameOp<polyPatch>()); - names: the name() of each list item filtered for matches - firstMatching: index of first item with a matching name() - findMatching: indices of items with a matching match name() Example, PtrListOps::findMatching(mesh.boundaryMesh(), wordRes( ... )); STYLE: deprecate transitional getNameOp, getTypeOp - use nameOp, typeOp (word.H) instead
Showing
- src/OpenFOAM/containers/PtrLists/PtrListOps/PtrListOps.H 52 additions, 1 deletionsrc/OpenFOAM/containers/PtrLists/PtrListOps/PtrListOps.H
- src/OpenFOAM/containers/PtrLists/PtrListOps/PtrListOpsTemplates.C 115 additions, 1 deletion...FOAM/containers/PtrLists/PtrListOps/PtrListOpsTemplates.C
- src/OpenFOAM/primitives/ops/ops.H 7 additions, 24 deletionssrc/OpenFOAM/primitives/ops/ops.H
Please register or sign in to comment