openfoam/applications/utilities
Mark Olesen b81420e524 ENH: additional variants of IOobjectList findObject()
- cfindObject() for const pointer access.

- getObject() for mutable non-const pointer access, similar to the
     objectRegistry::getObjectPtr()

- cfindObject(), findObject(), getObject() with template type access
  to also check the headerClassName.

  For example,

      cfindObject("U")  ->  good
      cfindObject<volVectorField>("U") -> good
      cfindObject<volScalarField>("U") -> nullptr

  This allows inversion of looping logic.

    1) Obtain the names for a particular Type

       for (const word& objName : objs.sortedNames<Type>())
       {
           const IOobject* io = objs[objName];
           ...
       }

    2) Use previously obtained names and apply to a particular Type

       for (const word& objName : someListOfNames)
       {
           const IOobject* io = objs.cfindObject<Type>(objName);
           if (io)
           {
               ...
           }
       }
2018-11-28 11:28:38 +01:00
..
doc ENH: (further) Doxygen documentation updates for module support 2016-06-27 20:34:19 +01:00
finiteArea ENH: use restricted dictionary lookup for utilities (issue #762) 2018-07-24 08:08:30 +02:00
mesh Merge remote-tracking branch 'origin/develop' into develop 2018-11-27 16:59:08 +01:00
miscellaneous ENH: improve error handling for foamHelp 2018-11-21 20:18:39 +01:00
parallelProcessing ENH: faMesh: decompose zero-sized patches. Fixes #1090. 2018-11-21 16:38:33 +00:00
postProcessing ENH: additional variants of IOobjectList findObject() 2018-11-28 11:28:38 +01:00
preProcessing ENH: guard against non-dictionary entries in changeDictionary (#1092) 2018-11-22 13:59:49 +01:00
surface STYLE: use vtk::surfaceWriter instead of sampleSurface version 2018-10-16 14:49:56 +02:00
thermophysical ENH: Updated config for release v1806 2018-06-28 12:56:00 +01:00