Skip to content
  • Mark OLESEN's avatar
    ENH: added IndirectSubList · 822d052e
    Mark OLESEN authored
    - provides an indirect access to a sub-section of a list that is
      somewhat less efficient than a Foam::SubList, but supports the
      following:
        * adjustment of its addressing range after construction
        * recovery of the original, underlying list at any time
    
      This can be more convenient for some coding cases.
      For example,
    
          template<class Addr>
          void renumberFaces(IndirectListBase<face, Addr>& faces, ...);
    
      which can be called for
    
          * Specific faces:
            UIndirectList<face>(mesh.faces(), facesToChange)
    
          * A sub-range of faces:
            IndirectSubList<face>(mesh.faces(), pp.range())
    
          * All faces:
            IndirectSubList<face>(mesh.faces())
    
    CONFIG: added IndirectListsFwd.H with some common forwarding
    822d052e