1. 09 Aug, 2018 1 commit
  2. 08 Aug, 2018 1 commit
    • Mark Olesen's avatar
      ENH: add missing Hash function for List/UList (issue #966) · dd9ecd49
      Mark Olesen authored
      - there were previously no hashing mechanisms for lists so they
        would fall back to the definition for primitives and hash the
        memory location of the allocated List object.
      
      - provide a UList::Hash<> sub-class for inheritance, and also a global
        specialization for UList<T>, List<T> such that the hash value for
        List<List<T>> cascades properly.
      
      - provide similar function in triFace to ensure that it remains
        similar in behaviour to face.
      
      - added SymmHash to Pair, for use when order is unimportant.
      
      STYLE: use string::hash() more consistently
      
      - no particular reason to use Hash<word>() which forwards to
        string::hash() anyhow
      dd9ecd49
  3. 06 Oct, 2017 1 commit
  4. 05 Jun, 2017 1 commit
  5. 04 May, 2017 1 commit
  6. 17 Jun, 2016 1 commit
  7. 08 Nov, 2015 1 commit
  8. 19 Jul, 2013 1 commit
  9. 05 Apr, 2013 1 commit
  10. 17 Dec, 2012 1 commit
  11. 11 Dec, 2012 1 commit
  12. 14 Aug, 2011 1 commit
  13. 08 Feb, 2011 1 commit
  14. 19 Jan, 2011 1 commit
  15. 14 Jan, 2011 1 commit
  16. 07 Jan, 2011 1 commit
  17. 05 Jan, 2011 2 commits
  18. 28 Jul, 2010 1 commit
  19. 29 Mar, 2010 1 commit
  20. 04 Mar, 2009 1 commit
    • Mark Olesen's avatar
      Switched from old hashing functions to use Bob Jenkins' hash routine · 17548296
      Mark Olesen authored
      - If the underlying type is contiguous, FixedList hashes its storage directly.
      - Drop labelPairHash (non-commutative) from fvMeshDistribute since
        FixedList::Hash does the right thing anyhow.
      - Hash<edge> specialization is commutative, without multiplication.
      - Hash<triFace> specialization kept multiplication (but now uLabel).
        There's not much point optimizing it, since it's not used much anyhow.
      
      Misc. changes
      
      - added StaticAssert to NamedEnum.H
      - label.H / uLabel.H : define FOAM_LABEL_MAX, FOAM_ULABEL_MAX with the
        values finally used for the storage.  These can be useful for pre-processor
        checks elsewhere (although I stopped needing them in the meantime).
      17548296
  21. 16 Jan, 2009 1 commit
  22. 31 Dec, 2008 1 commit
  23. 25 Jun, 2008 2 commits
  24. 15 Apr, 2008 1 commit