1. 31 Oct, 2019 1 commit
  2. 06 Feb, 2019 1 commit
  3. 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
  4. 31 Jul, 2017 1 commit
  5. 17 Oct, 2016 1 commit
    • Mark Olesen's avatar
      Cleanup endian support (closes #271) · 2c06a905
      Mark Olesen authored
      - Place common code under OSspecific.
      
      By including "endian.H", either one of WM_BIG_ENDIAN or WM_LITTLE_ENDIAN
      will be defined.
      
      Provides inline 32-bit and 64-bit byte swap routines that can be
      used/re-used elsewhere.
      
      The inplace memory swaps currently used by the VTK output are left for
      the moment pending further cleanup of that code.
      2c06a905
  6. 17 Jun, 2016 1 commit
  7. 29 Feb, 2016 2 commits
  8. 11 Jan, 2016 2 commits
  9. 14 Feb, 2015 1 commit
  10. 04 Jan, 2015 1 commit
  11. 14 Aug, 2011 1 commit
  12. 08 Feb, 2011 1 commit
  13. 07 Feb, 2011 1 commit
  14. 04 Jan, 2011 1 commit
  15. 28 Jul, 2010 1 commit
  16. 29 Mar, 2010 1 commit
  17. 05 Mar, 2009 1 commit
    • Mark Olesen's avatar
      regIOobject, Hasher, IOobject tweak · 7544164d
      Mark Olesen authored
      - regIOobject: don't re-register an unregister object on rename/assignment
      - Hasher: split-off HasherInt with uint32_t specializations
      - IOobject: writeBanner/writeDivider return Stream for easier chaining.
      
      ... also dropped some namespace bracketing while I was at it.
      7544164d
  18. 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