1. 04 Mar, 2018 1 commit
    • Mark Olesen's avatar
      ENH: improvements for labelRange · fc92d30e
      Mark Olesen authored
      - constexpr, noexcept.
        Added an 'at()' method for returning an iterator within the range
        and changed operator()(label) to have behaviour as per found().
        This makes the labelRange usable as a unary predicate.
      
      - added templated conversion class 'toLabelRange'
      
      - add range() method to polyPatch and surfZone classes, and corresponding
        templated conversion functors.
        For example,
      
            auto patchDims = ListOps::create<labelRange>
            (
                mesh.boundaryMesh(),
                toLabelRange<polyPatch>()
            );
      
        to create a List<labelRange> representing the patch extents.
      fc92d30e
  2. 06 Mar, 2018 1 commit
    • Mark Olesen's avatar
      ENH: dedicated HashSetOps, HashTableOps namespaces · bcabe827
      Mark Olesen authored
      - relocated HashSetPlusEqOp and HashTablePlusEqOp to
        HashSetOps::plusEqOp and HashTableOps::plusEqOp, respectively
      
      - additional functions for converting between a labelHashSet
        and a PackedBoolList or List<bool>:
      
        From lists selections to labelHashSet indices:
      
            HashSetOps::used(const PackedBoolList&);
            HashSetOps::used(const UList<bool>&);
      
        From labelHashSet to list forms:
      
            PackedBoolList bitset(const labelHashSet&);
            List<bool> bools(const labelHashSet&);
      bcabe827
  3. 01 Mar, 2018 1 commit
    • Mark Olesen's avatar
      ENH: cleanup of ListOps, ListListOps. Adjustments to List, PackedList. · 15f72608
      Mark Olesen authored
      - relocated ListAppendEqOp and ListUniqueEqOp to ListOps::appendEqOp
        and ListOps::UniqueEqOp, respectively for better code isolation and
        documentation of purpose.
      
      - relocated setValues to ListOps::setValue() with many more
        alternative selectors possible
      
      - relocated createWithValues to ListOps::createWithValue
        for better code isolation. The default initialization value is itself
        now a default parameter, which allow for less typing.
      
        Negative indices in the locations to set are now silently ignored,
        which makes it possible to use an oldToNew mapping that includes
        negative indices.
      
      - additional ListOps::createWithValue taking a single position to set,
        available both in copy assign and move assign versions.
        Since a negative index is ignored, it is possible to combine with
        the output of List::find() etc.
      
      STYLE: changes for PackedList
      
      - code simplication in the PackedList iterators, including dropping
        the unused operator() on iterators, which is not available in plain
        list versions either.
      
      - improved sizing for PackedBoolList creation from a labelUList.
      
      ENH: additional List constructors, for handling single element list.
      
      - can assist in reducing constructor ambiguity, but can also helps
        memory optimization when creating a single element list.
        For example,
      
          labelListList labels(one(), identity(mesh.nFaces()));
      15f72608
  4. 02 Mar, 2018 2 commits
  5. 03 Mar, 2018 1 commit
  6. 02 Mar, 2018 1 commit
    • Mark Olesen's avatar
      ENH: cleanup, extend zero/one classes · 13ea73c3
      Mark Olesen authored
      - constexpr, noexcept on various bits
      
      - addition of a 'one::minus' class that returns '-1' instead of '1'.
        There are no additional operations defined for this class,
        but it can be used in various places to signal alternative behaviour
        such as "initialize to a negative or other invalid value"
      13ea73c3
  7. 04 Mar, 2018 1 commit
    • Mark Olesen's avatar
      ENH: pre-cleanup of Xfer class (issue #639) · b4703f4a
      Mark Olesen authored
      - This class is largely a pre-C++11 holdover, prior to having movable
        references.
      
      - align internals with autoPtr instead of always unconditionally
        allocating memory. The valid() method can be used to check for a null
        pointer.
      
      - Consolidate into a single file, in anticipation of future removal.
      b4703f4a
  8. 28 Feb, 2018 1 commit
    • Mark Olesen's avatar
      ENH: add Xfer rvalue(), valid() methods · 081783db
      Mark Olesen authored
      - rvalue() is a (transitional) means of converting Xfer content to a
        reference for move construct, move assign semantics.
      
      - valid() method for consistency with autoPtr and tmp classes
      081783db
  9. 27 Feb, 2018 1 commit
  10. 22 Feb, 2018 1 commit
  11. 28 Feb, 2018 2 commits
  12. 23 Feb, 2018 3 commits
  13. 22 Feb, 2018 6 commits
  14. 21 Feb, 2018 3 commits
  15. 20 Feb, 2018 7 commits
  16. 19 Feb, 2018 3 commits
  17. 21 Feb, 2018 3 commits
  18. 15 Feb, 2018 1 commit
  19. 14 Feb, 2018 1 commit