1. 16 Jul, 2020 2 commits
    • Mark OLESEN's avatar
      STYLE: simplify short-circuit involving autoPtr (#1775) · 9af3f85c
      Mark OLESEN authored
      - with '&&' conditions, often better to check for non-null autoPtr
        first (it is cheap)
      
      - check as bool instead of valid() method for cleaner code, especially
        when the wrapped item itself has a valid/empty or good.
        Also when handling multiple checks.
      
        Now
            if (ptr && ptr->valid())
            if (ptr1 || ptr2)
      
        instead
            if (ptr.valid() && ptr->valid())
            if (ptr1.valid() || ptr2.valid())
      9af3f85c
    • Mark OLESEN's avatar
      STYLE: replace uses of autoPtr::empty() with bool check (#1775) · 3baebcb1
      Mark OLESEN authored
      - less clutter using plain tests with the bool operator:
      
            (!ptr)  vs  (ptr.empty())
            (ptr)   vs  (!ptr.empty())
      3baebcb1
  2. 15 Jul, 2020 2 commits
  3. 14 Jul, 2020 2 commits
    • Mark OLESEN's avatar
      ENH: mutable libs() access in Time and other classes (#1737) · 1e7c6ea2
      Mark OLESEN authored
      - This reflects the pre-existing coding situation where const_cast was
        used throughout to effect the same.
      
      STYLE: fix private/protected access
      
      - CodedField, codedMixedFvPatchField
      1e7c6ea2
    • Mark OLESEN's avatar
      ENH: various dlLibraryTable improvements/refinements (#1737) · 41d3e6f1
      Mark OLESEN authored
      - libs() singleton method for global library handling
      
      - explicit handling of empty filename for dlLibraryTable open/close.
        Largely worked before, but now be more explicit about its behaviour.
      
      - add (key, dict) constructor and open() methods.
        More similarity to dimensionedType, Enum etc, and there is no
        ambiguity with the templated open().
      
      - construct or open from initializer_list of names
      
      - optional verbosity when opening with auxiliary table,
        avoid duplicate messages or spurious messages for these.
      
      - basename and fullname methods (migrated from dynamicCode).
      
      - centralise low-level load/unload hooks
      
      - adjust close to also dlclose() aliased library names.
      41d3e6f1
  4. 13 Jul, 2020 2 commits
  5. 10 Jul, 2020 1 commit
    • Mark OLESEN's avatar
      ENH: update lemon version and linkage directive (#1768) · 6365bab8
      Mark OLESEN authored
      - replace `%namespace` directive with simpler `%static` directive.
      
        We always encapsulate Lemon parser routines in an anonymous
        namespace, so a simpler static linkage directive suffices.
      
        This reduces the size of the Lemon patch (program and template).
      6365bab8
  6. 09 Jul, 2020 2 commits
  7. 08 Jul, 2020 1 commit
  8. 01 Jul, 2020 1 commit
  9. 29 Jun, 2020 2 commits
  10. 26 Jun, 2020 5 commits
  11. 25 Jun, 2020 4 commits
  12. 24 Jun, 2020 13 commits
  13. 23 Jun, 2020 2 commits
  14. 22 Jun, 2020 1 commit