1. 26 Jan, 2018 3 commits
  2. 25 Jan, 2018 4 commits
    • Mark Olesen's avatar
      ENH: improved swap/transfer methods for FixedList · d029f4c5
      Mark Olesen authored
      - the transfer method was previously a copy
      
      - use std::reverse_iterator adaptors in FixedList
        This greatly reduces the amount of code and now avoids the array-bounds
        warning for FixedList::rend()
      
      - use pointer arithmetic instead of dereferencing the internal array
      d029f4c5
    • Mark Olesen's avatar
      ENH: make hashedWordList movable · 8fc27e0e
      Mark Olesen authored
      8fc27e0e
    • Mark Olesen's avatar
      ENH: remove Foam::Swap specializations for HashSet, HashTable · 915e8c9f
      Mark Olesen authored
      - without these will use the normal move construct + move assign.
        This is similarly efficient, but avoids the inadvertently having the
        incorrect Swap being used for derived classes.
      
      STYLE: remove unused xfer methods for HashTable, HashSet
      
      - unneeded since move construct and move assignment are possible
      915e8c9f
    • Mark Olesen's avatar
      ENH: allow early completion in PackedBoolList::used() · 7ee93afe
      Mark Olesen authored
      - can stop producing content when the target number of entries has
        been reached.
      
      - change return type to labelList instead an Xfer container.
        This allows return-value-optimization and avoids a surrounding
        allocation. This potentially breaks existing code.
      
      - make PackedList and PackedBoolList moveable. Drop xfer wrappers.
      7ee93afe
  3. 23 Jan, 2018 1 commit
  4. 09 Jan, 2018 1 commit
  5. 27 Nov, 2017 1 commit
    • Mark Olesen's avatar
      ENH: several improvements for linked-lists · cc5f30f2
      Mark Olesen authored
      - support move construct/assignment for linked-lists themselves
        and when moving into a 'normal' list
      
      - better consistency with begin/end signatures and the various
        iterators.
      
      - for indirect linked-lists, provide iterator access to the underlying
        data element address:   iter.get()  vs  &(iter())
      
      - add standard '->' indirection for iterators (as per normal STL
        definitions)
      cc5f30f2
  6. 22 Feb, 2018 4 commits
    • Mark Olesen's avatar
      STYLE: remove deprecated and unused ListOps · 3a4b92c4
      Mark Olesen authored
      - deprecated MAR-2017
      
          subset(const UList<T>& select, const T& value, const ListType&);
          inplaceSubset(const UList<T>& select, const T& value, ListType&);
      
        The subsetList/inplaceSubsetList variants with a unary predicate
        provide more flexible and robuster solutions.
      
      - deprecated MAR-2017
      
          initList(const T[mRows]);
          initListList(const T[mRows][nColumns]);
      
        Required prior to the addition of constructors with
        std::initializer_list
      3a4b92c4
    • Mark Olesen's avatar
      STYLE: consistent use of wordHashSet instead of HashSet<word> · 37e248c7
      Mark Olesen authored
      - the wordHashSet typedef is always available when HashSet has been
        included.
      
      - use default HashTable key (word) instead of explicitly mentioning it
      37e248c7
    • Mark Olesen's avatar
    • Mark Olesen's avatar
      ENH: prevent conversion of string to regExp in stringListOps (closes #739) · ec38e7a4
      Mark Olesen authored
      * For most cases, this conversion would be largely unintentional
        and also less efficient. If the regex is desirable, the caller
        should invoke it explicitly.
        For example,
      
            findStrings(regExp(str), listOfStrings);
      
        Or use one of the keyType, wordRe, wordRes variants instead.
        If string is to be used as a plain (non-regex) matcher,
        this can be directly invoked
      
            findMatchingStrings(str, listOfStrings);
      
        or using the ListOps instead:
      
            findIndices(listOfStrings, str);
      
      * provide function interfaces for keyType.
      ec38e7a4
  7. 21 Feb, 2018 3 commits
  8. 20 Feb, 2018 5 commits
  9. 19 Feb, 2018 3 commits
  10. 21 Feb, 2018 2 commits
  11. 15 Feb, 2018 1 commit
  12. 09 Feb, 2018 3 commits
  13. 08 Feb, 2018 3 commits
  14. 07 Feb, 2018 2 commits
  15. 01 Feb, 2018 1 commit
  16. 31 Jan, 2018 1 commit
  17. 30 Jan, 2018 2 commits