1. 05 Jan, 2009 2 commits
    • 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.
    • Mark Olesen's avatar
      regExp - separate full match from partial match, add find() · 461ac4b4
      Mark Olesen authored
        - match() only does a full match
        - find() and search() do partial matches
          search() is similar to the name coming into C++ TR1
  2. 03 Jan, 2009 2 commits
    • Mark Olesen's avatar
      new wordRe class - a word that holds a regExp · 2717aa5c
      Mark Olesen authored
        - a possible future replacement for keyType, but the immediate use is the
          wordReList for grepping through other lists.
        - note that the argList treatment of '(' ... ')' yields quoted strings,
          which we can use for building a wordReList
      minor cleanup of regExp class
        - constructor from std::string, match std::string and
          rely on automatic conversion to Foam::string
        - ditch partialMatch with sub-groups, it doesn't make much sense
    • Mark Olesen's avatar
      reworked IOstreams · 1d866d7f
      Mark Olesen authored
      - Istream and Ostream now retain backslashes when reading/writing strings.
        The previous implementation simply discarded them, except when used to
        escape a double-quote or a newline. It is now vitally important to retain
        them, eg for quoting regular expression meta-characters.
        The backslash continues to be used as an escape character for double-quote
        and newline, but otherwise get passed through "as-is" without any other
        special meaning (ie, they are *NOT* C-style strings). This helps avoid
        'backslash hell'!
        For example,
           string:   "match real dots \.+, question mark \? or any char .*"
           C-style:  "match real dots \\.+, question mark \\? or any char .*"
      - combined subfiles in db/IOstreams, some had more copyright info than code
      - OPstreamI.H contained only private methods, moved into OPstream.C
      Are these really correct?
         IOstreams/Istream.H:#   include "HashTable.C"
         token/token.H:#define NoHashTableC
  3. 02 Jan, 2009 3 commits
    • 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));
    • Mark Olesen's avatar
    • Mark Olesen's avatar
      HashTable / StaticHashTable changes · a0101214
      Mark Olesen authored
      - erase(iterator&) now actually alters the iterator and iterator++() handles
        it properly
      - clear() also sets count to zero
      - operator=(const StaticHashTable&) doesn't crash after a previous transfer
      - operator(), operator==() and operator!=() added
      - operator=(const HashTable&) gets tableSize if required, eg, after a
        previous transfer)
      HashSet / Map
      - add xfer<...> constructor for underlying HashTable
  4. 01 Jan, 2009 1 commit
    • Mark Olesen's avatar
      boundBox, octree cleanup · 973b9ea0
      Mark Olesen authored
        - added boundBox(const tmp<pointField>&) constructor for use with
          coordinate systems
        - moved some methods from treeBoundBox to boundBox and use VectorSpace ops
  5. 31 Dec, 2008 5 commits
    • Mark Olesen's avatar
      update copyrights for 2009 · 28b200bc
      Mark Olesen authored
    • Mark Olesen's avatar
      new management for sampledSurface(s) · 48af5740
      Mark Olesen authored
              //- Does the surface need an update?
              virtual bool needsUpdate() const = 0;
              //- Mark the surface as needing an update.
              //  May also free up unneeded data.
              //  Return false if surface was already marked as expired.
              virtual bool expire() = 0;
              //- Update the surface as required.
              //  Do nothing (and return false) if no update was required
              virtual bool update() = 0;
          The constructors for the derived classes should generally start in a
          'expired' condition (ie, needsUpdate() == true) and rely on a subsequent
          call to the update() method to complete the initialization. Delaying the
          final construction as late as possible allows the construction of
          surfaces that may depend on intermediate calculation results (eg,
          iso-surfaces) and also avoids the unnecessary reconstruction of surfaces
          between sampling intervals.
          It is the responsibility of the caller to ensure that the surface
          update() is called before the surface is used.  The update() method
          implementation should do nothing when the surface is already up-to-date.
    • Mark Olesen's avatar
    • Mark Olesen's avatar
    • Mark Olesen's avatar
  6. 19 Dec, 2008 4 commits
    • henry's avatar
    • Mark Olesen's avatar
      changes to build version string · 0c557151
      Mark Olesen authored
      - version is WM_PROJECT_VERSION prefix + SHA1 from current git head
      - move double quotes from make rules to global.Cver for extra safety
    • Mark Olesen's avatar
      tweaked build version strings · 5f7d2acb
      Mark Olesen authored
      - added wmakePrintBuild -check, -update, -version options
      - only update .build cache when explictly requested and
        from within the wmake Cver rules
      - use -check option to avoid unnecessary remake in src/Allwmake
    • Mark Olesen's avatar
      reworked functionObjectList to use PtrList · 79e9a90c
      Mark Olesen authored
      - This was originally plan 'B', but it is actually probably more efficient
        than using PtrDictionary anyhow.
      - straightened out the return value logic, but it wasn't being used anywhere
      - new 'updated_' data member avoids inadvertent execution in the read()
        method when execution is turned off.
  7. 18 Dec, 2008 6 commits
  8. 17 Dec, 2008 6 commits
  9. 16 Dec, 2008 2 commits
  10. 12 Dec, 2008 7 commits
  11. 11 Dec, 2008 2 commits