1. 29 May, 2009 1 commit
  2. 05 May, 2009 1 commit
  3. 23 Apr, 2009 1 commit
  4. 20 Apr, 2009 1 commit
  5. 16 Apr, 2009 1 commit
  6. 15 Apr, 2009 2 commits
  7. 14 Apr, 2009 1 commit
  8. 13 Apr, 2009 1 commit
  9. 09 Apr, 2009 2 commits
  10. 07 Apr, 2009 1 commit
  11. 06 Apr, 2009 1 commit
  12. 23 Mar, 2009 1 commit
  13. 20 Mar, 2009 1 commit
  14. 18 Mar, 2009 2 commits
  15. 12 Mar, 2009 1 commit
  16. 06 Mar, 2009 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
  19. 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
  20. 26 Feb, 2009 2 commits
    • Mark Olesen's avatar
      HashTable changes · a46c85f5
      Mark Olesen authored
      - make table power-of-two, but since it seems to give 1-2% performance
        improvement, maybe forget it too.
      
      - remove two-argument form of hashing classes and do the modulus direclty
        within HashTable instead. This simplifies things a fair bit.
      
      - migrate Hash<void*> from db/dlLibrary to primitives/hashes/Hash
      a46c85f5
    • Mark Olesen's avatar
      PackedList bugfix, HashTable tweak · 2aeee852
      Mark Olesen authored
      - it was possible to create a PackedList::iterator from a
        PackedList::const_iterator and violate const-ness
      
      - added HashTable::printInfo for emitting some information
      
      - changed default table sizes from 100 -> 128 in preparation for future
        2^n table sizes
      2aeee852
  21. 24 Feb, 2009 1 commit
  22. 13 Feb, 2009 1 commit
  23. 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
  24. 05 Feb, 2009 1 commit
  25. 02 Feb, 2009 1 commit
  26. 29 Jan, 2009 2 commits
  27. 27 Jan, 2009 1 commit
    • Mark Olesen's avatar
      reworked surfMesh and PrimitivePatchExtra · ffdb280a
      Mark Olesen authored
      - ditched PrimitivePatchExtra in favour of a PatchTools class that is
        currently just a collection of static functions. They could equally well
        live within PrimitivePatch itself, but isolated also has its advantages.
      
      - MeshedSurface, UnsortedMeshedSurface now have 'regions' instead of
        'patches' since they are more like a faceZone for meshed surfaces than
        patches. This might avoid confusion at a later stage.
      ffdb280a
  28. 23 Jan, 2009 2 commits
  29. 21 Jan, 2009 2 commits
  30. 16 Jan, 2009 2 commits
    • Mark Olesen's avatar
      cosmetic cleanups · d5cbc3bf
      Mark Olesen authored
      - grammar in comments, namespace qualifiers, etc.
      d5cbc3bf
    • 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
  31. 10 Jan, 2009 2 commits