1. 08 Jan, 2019 1 commit
  2. 07 Jan, 2019 1 commit
  3. 08 Jan, 2019 4 commits
  4. 07 Jan, 2019 12 commits
  5. 06 Jan, 2019 2 commits
  6. 04 Jan, 2019 1 commit
  7. 03 Jan, 2019 5 commits
  8. 02 Jan, 2019 8 commits
  9. 21 Dec, 2018 4 commits
  10. 20 Dec, 2018 2 commits
    • Mark OLESEN's avatar
      ENH: allow direct testing of HashTable iterator as a bool · 3560884a
      Mark OLESEN authored
      - can be used as a more natural test on the iterator.
        For example, with
      
           HashTable<..> table;
           auto iter = table.find(...);
      
        Following are now all equivalent:
      
          1.  if (iter != table.end()) ...
          2.  if (iter.found()) ...
          3.  if (iter) ...
      3560884a
    • Mark OLESEN's avatar
      ENH: add get() accessor to tmp classes · 08335beb
      Mark OLESEN authored
      - similar to autoPtr and unique_ptr. Returns the pointer value without
        any checks. This provides a simple way for use to use either
        an autoPtr or a tmp for local memory management without accidentally
        stealing the pointer.
      
        Eg,
      
           volVectorField* ptr;
           tmp<volVectorField> tempField;
      
           if (someField.valid())
           {
               ptr = someField.get();
           }
           else
           {
               tempField.reset(new volVectorField(....));
               ptr = tmpField.get();
           }
      
           const volVectorField& withField = *ptr;
      
      STYLE: make more tmp methods noexcept
      08335beb