Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • openfoam openfoam
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 423
    • Issues 423
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 9
    • Merge requests 9
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • openfoamopenfoam
  • Issues
  • #1013
Closed
Open
Issue created Sep 19, 2018 by Mark OLESEN@markMaintainer

extraction operations

As just discussed with @Mattijs, there are several places where we wish to do a list reduction of particular object quantities. For example, to obtain a list of names/types/sizes from the objects. The ListOps::create function will do some of that, but would benefit from some predefined functors.

Eg,

template<class T> struct nameOp
{
    word operator()(const T& obj) const { return obj.name(); }
};

And later

ListOps::create<word>(patches, nameOp<polyPatch>());

Or

ListOps::create<word>(readDir(dirName), nameOp<fileName>());
Assignee
Assign to
Time tracking