openfoam/applications/utilities/postProcessing
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
..
dataConversion STYLE: const-correctness on IOobject* access 2018-11-28 08:00:53 +01:00
graphics ENH: improve consistency in version handling (issue #1010) 2018-11-23 11:08:36 +01:00
lagrangian ENH: additional variants of IOobjectList findObject() 2018-11-28 11:28:38 +01:00
lumped ENH: add IOobjectList::findObject() method 2018-11-09 21:57:55 +01:00
miscellaneous STYLE: const-correctness on IOobject* access 2018-11-28 08:00:53 +01:00
noise COMP: Allwmake: pass through targetType 2018-08-02 10:18:59 +01:00
postProcess ENH: use dictionary::readEntry for detection of input errors (#762, #1033) 2018-10-05 10:15:13 +02:00