1. 24 Feb, 2020 1 commit
  2. 31 Oct, 2019 1 commit
  3. 06 Feb, 2019 1 commit
  4. 10 Aug, 2018 1 commit
  5. 26 Feb, 2018 1 commit
    • Mark Olesen's avatar
      ENH: cleanup autoPtr class (issue #639) · 660f3e54
      Mark Olesen authored
      Improve alignment of its behaviour with std::unique_ptr
      
        - element_type typedef
        - release() method - identical to ptr() method
        - get() method to get the pointer without checking and without releasing it.
        - operator*() for dereferencing
      
      Method name changes
      
        - renamed rawPtr() to get()
        - renamed rawRef() to ref(), removed unused const version.
      
      Removed methods/operators
      
        - assignment from a raw pointer was deleted (was rarely used).
          Can be convenient, but uncontrolled and potentially unsafe.
          Do allow assignment from a literal nullptr though, since this
          can never leak (and also corresponds to the unique_ptr API).
      
      Additional methods
      
        - clone() method: forwards to the clone() method of the underlying
          data object with argument forwarding.
      
        - reset(autoPtr&&) as an alternative to operator=(autoPtr&&)
      
      STYLE: avoid implicit conversion from autoPtr to object type in many places
      
      - existing implementation has the following:
      
           operator const T&() const { return operator*(); }
      
        which means that the following code works:
      
             autoPtr<mapPolyMesh> map = ...;
             updateMesh(*map);    // OK: explicit dereferencing
             updateMesh(map());   // OK: explicit dereferencing
             updateMesh(map);     // OK: implicit dereferencing
      
        for clarity it may preferable to avoid the implicit dereferencing
      
      - prefer operator* to operator() when deferenced a return value
        so it is clearer that a pointer is involve and not a function call
        etc    Eg,   return *meshPtr_;  vs.  return meshPtr_();
      660f3e54
  6. 20 Sep, 2017 1 commit
    • Mark Olesen's avatar
      ENH: update List and DynamicList methods (issue #595) · 049617d0
      Mark Olesen authored
      - improve functional compatibility with DynList (remove methods)
        * eg, remove an element from any position in a DynamicList
        * reduce the number of template parameters
        * remove/subset regions of DynamicList
      
      - propagate Swap template specializations for lists, hashtables
      
      - move construct/assignment to various containers.
      
      - add find/found methods for FixedList and UList for a more succinct
        (and clearer?) usage than the equivalent global findIndex() function.
      
      - simplify List_FOR_ALL loops
      049617d0
  7. 22 Jun, 2017 1 commit
    • Henry Weller's avatar
      Rationalize the "pos" function · 56bfc759
      Henry Weller authored
      "pos" now returns 1 if the argument is greater than 0, otherwise it returns 0.
      This is consistent with the common mathematical definition of the "pos" function:
      
      https://en.wikipedia.org/wiki/Sign_(mathematics)
      
      However the previous implementation in which 1 was also returned for a 0
      argument is useful in many situations so the "pos0" has been added which returns
      1 if the argument is greater or equal to 0.  Additionally the "neg0" has been
      added which returns 1 if if the argument is less than or equal to 0.
      56bfc759
  8. 10 Apr, 2017 1 commit
  9. 05 Aug, 2016 1 commit
  10. 18 May, 2016 1 commit
  11. 25 Apr, 2016 1 commit
  12. 16 Apr, 2016 1 commit
  13. 10 Jan, 2016 1 commit
  14. 11 Nov, 2015 1 commit
  15. 14 Oct, 2015 2 commits
  16. 16 May, 2013 1 commit
  17. 02 May, 2013 3 commits
  18. 11 Apr, 2013 2 commits
  19. 05 Apr, 2013 2 commits
    • laurence's avatar
      ENH: Expand triSurfaceSearch and add triSurfaceRegionSearch · bfd30ea0
      laurence authored
      + Move most of the octree searching functionality from triSurfaceMesh into
        triSurfaceSearch. Much of it was duplicated anyway.
      + Add triSurfaceRegionSearch, which constructs an octree for each region in
        a surface and performs searches on specified regions only.
      bfd30ea0
    • laurence's avatar
      ENH: Expand triSurfaceSearch and add triSurfaceRegionSearch · 855b58e3
      laurence authored
      + Move most of the octree searching functionality from triSurfaceMesh into
        triSurfaceSearch. Much of it was duplicated anyway.
      + Add triSurfaceRegionSearch, which constructs an octree for each region in
        a surface and performs searches on specified regions only.
      855b58e3
  20. 15 Mar, 2013 2 commits
    • laurence's avatar
      ENH: Add extra octree functionality · 8ed95d47
      laurence authored
      + Make intersection and nearest functions functors. This makes adding
        different intersection and nearest routines easier.
      + treeDataPrimitivePatch takes its tolerance as a constructor argument
      + Make treeDataTriSurface a typedef of treeDataPrimitivePatch
      
      Conflicts:
      	src/OpenFOAM/algorithms/indexedOctree/indexedOctree.C
      	src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C
      	src/meshTools/indexedOctree/treeDataTriSurface.C
      8ed95d47
    • laurence's avatar
      ENH: Add extra octree functionality · 9064e37d
      laurence authored
      + Make intersection and nearest functions functors. This makes adding
        different intersection and nearest routines easier.
      + treeDataPrimitivePatch takes its tolerance as a constructor argument
      + Make treeDataTriSurface a typedef of treeDataPrimitivePatch
      9064e37d
  21. 17 Apr, 2012 2 commits
  22. 14 Aug, 2011 1 commit
  23. 29 Jun, 2011 1 commit
  24. 24 Jun, 2011 1 commit
  25. 23 Jun, 2011 2 commits
  26. 02 Jun, 2011 1 commit
  27. 19 Jan, 2011 1 commit
  28. 14 Jan, 2011 1 commit
  29. 07 Jan, 2011 1 commit
  30. 05 Jan, 2011 2 commits
  31. 06 Dec, 2010 1 commit