Skip to content
Snippets Groups Projects
  1. Apr 29, 2017
    • Mark OLESEN's avatar
      STYLE: HashTable documentation · ded105c5
      Mark OLESEN authored
      - explicitly mention the value-initialized status for the operator().
        This means that the following code will properly use an initialized
        zero.
      
            HashTable<label> regionCount;
      
            if (...)
               regionCount("region1")++;
      
            ... and also this;
      
            if (regionCount("something") > 0)
            {
                ...
            }
      
        Note that the OpenFOAM HashTable uses operator[] to provide read and
        write access to *existing* entries and will provoke a FatalError if
        the entry does not exist.
      
        The operator() provides write access to *existing* entries or will
        create the new entry as required.
        The STL hashes use operator[] for this purpose.
      ded105c5
    • Mark OLESEN's avatar
      ENH: further refinement to edge methods · 1d9b311b
      Mark OLESEN authored
      - more hash-like methods.
        Eg, insert/erase via lists, clear(), empty(),...
      
      - minVertex(), maxVertex() to return the smallest/largest label used
      
      - improved documentation, more clarification about where/how negative
        point labels are treated.
      1d9b311b
  2. May 04, 2017
  3. May 02, 2017
  4. Apr 28, 2017
  5. Apr 27, 2017
  6. Apr 26, 2017
  7. Apr 25, 2017
  8. Apr 24, 2017
  9. Apr 23, 2017
    • Mark OLESEN's avatar
      ENH: UList<point> instead of pointField for meshShapes methods · 430d8e1c
      Mark OLESEN authored
      - improves flexibility.
      
      STYLE: make longestEdge a face method and deprecate the global function
      430d8e1c
    • Mark OLESEN's avatar
      ENH: various enhancements for edge. · f2304f7c
      Mark OLESEN authored
      - support edge-ordering on construction, and additional methods:
        - sort(), sorted(), unitVec(), collapse()
      
      - null constructor initializes with -1, for consistency with face,
        triFace and since it is generally much more useful that way.
      
      - add some methods that allow edges to used somewhat more like hashes.
        - count(), found(), insert(), erase()
      
        Here is possible way to use that:
      
            edge someEdge;  // initializes with '-1' for both entries
      
            if (someEdge.insert(pt1))
            {
               // added a new point label
            }
      
            ... later
      
            // unmark point on edge
            someEdge.erase(pt2);
      
      --
      
      STYLE:
      
      - use UList<point> instead of pointField for edge methods for flexibility.
      
        The pointField include is retained, however, since many other routines
        may be relying on it being included via edge.H
      f2304f7c
  10. Apr 21, 2017
  11. Apr 20, 2017
  12. Apr 19, 2017