1. 12 Mar, 2009 1 commit
  2. 27 Feb, 2009 1 commit
    • Mark Olesen's avatar
      Preliminary work on hashing · 576d9388
      Mark Olesen authored
      - Hash returns unsigned
      - FixedList templated on unsigned int
      - include uLabel.H in UList, HashTable etc. so the output function is know
        throughout
      576d9388
  3. 06 Feb, 2009 1 commit
    • Mark Olesen's avatar
      consistency update · 69918f23
      Mark Olesen authored
      - OSspecific: chmod() -> chMod(), even although it's not used anywhere
      
      - ListOps get subset() and inplaceSubset() templated on BoolListType
      
      - added UList<bool>::operator[](..) const specialization.
        Returns false (actually pTraits<bool>::zero) for out-of-range elements.
        This lets us use List<bool> with lazy evaluation and no noticeable
        change in performance.
      
      - use rcIndex() and fcIndex() wherever possible.
        Could check if branching or modulus is faster for fcIndex().
      
      - UList and FixedList get 'const T* cdata() const' and 'T* data()' members.
        Similar to the STL front() and std::string::data() methods, they return a
        pointer to the first element without needing to write '&myList[0]', recast
        begin() or violate const-ness.
      69918f23
  4. 20 Jan, 2009 1 commit
  5. 16 Jan, 2009 1 commit
    • Mark Olesen's avatar
      consistency update for null pointers · 246d569c
      Mark Olesen authored
      - uniform use of reinterpret_cast<foo*>(0) instead of
        reinterpret_cast<foo*>(NULL)
      
      - make all static null() members inline since they are really only a cast:
            "*reinterpret_cast<foo*>(0)"
      246d569c
  6. 05 Jan, 2009 1 commit
    • Mark Olesen's avatar
      rename xfer<T> class to Xfer<T> · 19503c93
      Mark Olesen authored
      - The capitalization is consistent with most other template classes, but
        more importantly frees up xfer() for use as method name without needing
        special treatment to avoid ambiguities.
      
        It seems reasonable to have different names for transfer(...) and xfer()
        methods, since the transfer is occuring in different directions.
        The xfer() method can thus replace the recently introduced zero-parameter
        transfer() methods.
        Other name candidates (eg, yield, release, etc.) were deemed too abstract.
      19503c93
  7. 02 Jan, 2009 1 commit
    • Mark Olesen's avatar
      added xfer<...> transfer() method to various containers · cf488912
      Mark Olesen authored
      - this should provide a slightly more naturally means to using transfer
        constructors, for example
                labelList list2(list1.transfer());
            vs. labelList list2(xferMove(list1));
      
      - returns a plain list where appropriate (eg, DynamicList, SortableList)
        for example
                labelList list2(dynList1.transfer());
            vs. labelList list2(xferMoveTo<labelList>(dynList1));
      cf488912
  8. 31 Dec, 2008 1 commit
  9. 29 Nov, 2008 1 commit
  10. 23 Nov, 2008 1 commit
  11. 07 Nov, 2008 1 commit
  12. 21 Oct, 2008 1 commit
  13. 20 Oct, 2008 1 commit
    • Mark Olesen's avatar
      DynamicList re-visited: · b22ada09
      Mark Olesen authored
       - shrink() should now correctly actually shrink
       - List::transfer(DynamicList&) invokes shrink() before transferring
         contents: otherwise the ununsed allocated space is never recovered
         until much, much later.
       - DynamicList::transfer(List&) no longer throws a FatalError when
         transferring in a smaller list. The original list contents are getting
         tossed away anyhow!
      b22ada09
  14. 17 Oct, 2008 1 commit
    • Mark Olesen's avatar
      xfer class modifications: · 91cb6d29
      Mark Olesen authored
        - removed operator* in favour of operator() for consistency with tmp
          class. The previous use of operator() for const casting didn't work
          anyhow due to template confusion.
        - added xferCopy(), xferMove() and xferTmp() template functions instead
        - preliminary changes to IOobjects and Fields for xfer
      91cb6d29
  15. 10 Oct, 2008 2 commits
  16. 09 Oct, 2008 1 commit
  17. 06 Oct, 2008 1 commit
  18. 23 Sep, 2008 1 commit
  19. 17 Sep, 2008 1 commit
  20. 10 Sep, 2008 1 commit
  21. 25 Jun, 2008 2 commits
  22. 25 May, 2008 1 commit
  23. 08 May, 2008 1 commit
  24. 15 Apr, 2008 1 commit