Skip to content
Snippets Groups Projects
  1. Nov 01, 2018
  2. Oct 31, 2018
  3. Oct 30, 2018
  4. Oct 29, 2018
  5. Oct 17, 2018
  6. Oct 29, 2018
  7. Oct 19, 2018
  8. Oct 10, 2018
  9. Oct 19, 2018
  10. Oct 18, 2018
    • Mark OLESEN's avatar
      STYLE: use dictionary writeEntry for output · 4ad73873
      Mark OLESEN authored
      4ad73873
    • Mark OLESEN's avatar
    • Mark OLESEN's avatar
      ENH: cleanup of Enum class · 3b745122
      Mark OLESEN authored
      - more dictionary-like methods, enforce keyType::LITERAL for all
        lookups to avoid any spurious keyword matching.
      
      - new readEntry, readIfPresent methods
      
      - The get() method replaces the now deprecate lookup() method.
      
      - Deprecate lookupOrFailsafe()
        Failsafe behaviour is now an optional parameter for lookupOrDefault,
        which makes it easier to tailor behaviour at runtime.
      
      - output of the names is now always flatted without line-breaks.
        Thus,
      
           os << flatOutput(someEnumNames.names()) << nl;
           os << someEnumNames << nl;
      
        both generate the same output.
      
      - Constructor now uses C-string (const char*) directly instead of
        Foam::word in its initializer_list.
      
      - Remove special enum + initializer_list constructor form since
        it can create unbounded lookup indices.
      
      - Removd old hasEnum, hasName forms that were provided during initial
        transition from NamedEnum.
      
      - Added static_assert on Enum contents to restrict to enum or
        integral values.  Should not likely be using this class to enumerate
        other things since it internally uses an 'int' for its values.
      
        Changed volumeType accordingly to enumerate on its type (enum),
        not the class itself.
      3b745122
    • Mark OLESEN's avatar
      CONFIG: default to using logical value for cwd() · f2c78362
      Mark OLESEN authored
      - this helps for many cases outlined in issue #1007, but can also be
        useful when simply using symlinks for shorter or reorganized
        directory structures.
      f2c78362
  11. Oct 17, 2018