1. 24 Feb, 2009 1 commit
  2. 19 Feb, 2009 1 commit
  3. 17 Feb, 2009 2 commits
  4. 15 Feb, 2009 1 commit
  5. 13 Feb, 2009 3 commits
  6. 12 Feb, 2009 3 commits
  7. 11 Feb, 2009 1 commit
  8. 10 Feb, 2009 2 commits
  9. 09 Feb, 2009 3 commits
  10. 06 Feb, 2009 3 commits
    • 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
    • mattijs's avatar
      findInstance for directories · d7b321bf
      mattijs authored
      d7b321bf
    • Mark Olesen's avatar
      OSspecific: altered file tests · ffd9bb08
      Mark Olesen authored
      - removed the previously added fileName type(), isDir(), isFile() methods.
      
      - added optional bool parameter to isFile() function to explicitly
        enable/disable the check for gzip files.
      
      - fixed minor bugginess where the default usage of isFile() would result in
        false positive matches.
      
      - be slightly more stringent and use isDir() and isFile() instead of
        exists() function when we actually know the expected type.
      ffd9bb08
  11. 05 Feb, 2009 1 commit
  12. 02 Feb, 2009 1 commit
  13. 30 Jan, 2009 1 commit
  14. 29 Jan, 2009 4 commits
    • Mark Olesen's avatar
      PackedList - activated lazy evaluation · 1f6733d9
      Mark Olesen authored
      - moving back to original flat addressing in iterators means there is no
        performance issue with using lazy evaluation
      - set() method now has ~0 for a default value.
        We can thus simply write 'set(i) to trun on all of the bits.
        This means we can use it just like labelHashSet::set(i)
      - added flip() method for inverting bits. I don't know where we might need
        it, but the STL has it so we might as well too.
      1f6733d9
    • Mark Olesen's avatar
      PackedList with unsigned template parameter · 55d4fb2e
      Mark Olesen authored
      55d4fb2e
    • Mark Olesen's avatar
      PackedList improvements · 4e56643e
      Mark Olesen authored
      - dropped auto-vivification for now (performance issue), but reworked to
        allow easy reinstatement
      - derived both iterator and const_iterator from iteratorBase and use
        iteratorBase as our proxy for non-const access to the list elements.
        This allows properly chaining assignments:
           list[1] = list[2];
           list[1] = list[2] = 10;
      - assigning iterators from iteratorBase or other iterators works:
           iterator iter = list[20];
      - made template parameter nBits=1 the default
      4e56643e
    • Mark Olesen's avatar
      relocated PrimitivePatchTools -> PatchTools · 69f8c3b3
      Mark Olesen authored
      69f8c3b3
  15. 28 Jan, 2009 2 commits
  16. 27 Jan, 2009 4 commits
    • Mark Olesen's avatar
      Switch: fixed (really) stupid typo · c39f2a1a
      Mark Olesen authored
      c39f2a1a
    • 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
    • Mark Olesen's avatar
      added HashSet::operator[]() const · c6e9b323
      Mark Olesen authored
      - can use the same syntax for boolList, PackedBoolList and labelHashSet
          if (myHashedSet[x]) ...
          if (myBoolList[x]) ...
          if (myPackedList[x]) ...
      c6e9b323
    • Mark Olesen's avatar
      fileName gets additional convenience methods · defe13e2
      Mark Olesen authored
      - exists() = forward to OSspecific exists(...)
      - isDir()  = forward to OSspecific dir(...)
      - isFile() = forward to OSspecific file(...)
      - IOobjectComponents() - split into instance, local, name following rules
        set out for IOobject.
      
      - added IOobject(path, registry, ...) constructor that uses
        fileName::IOobjectComponents(). This hides the complexity we otherwise need.
      defe13e2
  17. 26 Jan, 2009 3 commits
  18. 25 Jan, 2009 1 commit
    • Mark Olesen's avatar
      PackedList changes · 84ec272d
      Mark Olesen authored
      - added Mattijs' speed tests
      - optimized resize() and assignment operators to avoid set() method
      - add const_iterator and re-did the proxy handling.
      
      Reading/writing by looping across iterators is still somewhat slow, but
      might be acceptable.
      84ec272d
  19. 23 Jan, 2009 3 commits