openfoam/applications/utilities/mesh/conversion
Mark Olesen bac943e6fc ENH: new bitSet class and improved PackedList class (closes #751)
- The bitSet class replaces the old PackedBoolList class.
  The redesign provides better block-wise access and reduced method
  calls. This helps both in cases where the bitSet may be relatively
  sparse, and in cases where advantage of contiguous operations can be
  made. This makes it easier to work with a bitSet as top-level object.

  In addition to the previously available count() method to determine
  if a bitSet is being used, now have simpler queries:

    - all()  - true if all bits in the addressable range are empty
    - any()  - true if any bits are set at all.
    - none() - true if no bits are set.

  These are faster than count() and allow early termination.

  The new test() method tests the value of a single bit position and
  returns a bool without any ambiguity caused by the return type
  (like the get() method), nor the const/non-const access (like
  operator[] has). The name corresponds to what std::bitset uses.

  The new find_first(), find_last(), find_next() methods provide a faster
  means of searching for bits that are set.

  This can be especially useful when using a bitSet to control an
  conditional:

  OLD (with macro):

      forAll(selected, celli)
      {
          if (selected[celli])
          {
              sumVol += mesh_.cellVolumes()[celli];
          }
      }

  NEW (with const_iterator):

      for (const label celli : selected)
      {
          sumVol += mesh_.cellVolumes()[celli];
      }

      or manually

      for
      (
          label celli = selected.find_first();
          celli != -1;
          celli = selected.find_next()
      )
      {
          sumVol += mesh_.cellVolumes()[celli];
      }

- When marking up contiguous parts of a bitset, an interval can be
  represented more efficiently as a labelRange of start/size.
  For example,

  OLD:

      if (isA<processorPolyPatch>(pp))
      {
          forAll(pp, i)
          {
              ignoreFaces.set(i);
          }
      }

  NEW:

      if (isA<processorPolyPatch>(pp))
      {
          ignoreFaces.set(pp.range());
      }
2018-03-07 11:21:48 +01:00
..
ansysToFoam ENH: remove reliance on the Xfer class (issue #639) 2018-03-05 13:28:53 +01:00
ccm ENH: improve handling of ThirdParty packages 2018-04-24 14:51:19 +02:00
cfx4ToFoam ENH: remove reliance on the Xfer class (issue #639) 2018-03-05 13:28:53 +01:00
datToFoam STYLE: consistency in using argList::addArgument, argList::addOption 2017-11-22 12:54:28 +01:00
fireToFoam ENH: simplify method names for reading argList options and arguments 2018-01-08 15:35:18 +01:00
fluent3DMeshToFoam ENH: new bitSet class and improved PackedList class (closes #751) 2018-03-07 11:21:48 +01:00
fluentMeshToFoam ENH: new bitSet class and improved PackedList class (closes #751) 2018-03-07 11:21:48 +01:00
foamMeshToFluent ENH: enumerations for known cell models in cellModel, ptr/ref lookups 2017-11-18 11:05:05 +01:00
foamToFireMesh ENH: simplify method names for reading argList options and arguments 2018-01-08 15:35:18 +01:00
foamToStarMesh ENH: simplify method names for reading argList options and arguments 2018-01-08 15:35:18 +01:00
foamToSurface ENH: simplify method names for reading argList options and arguments 2018-01-08 15:35:18 +01:00
gambitToFoam STYLE: Correcting typos 2018-03-28 17:14:16 +01:00
gmshToFoam ENH: remove reliance on the Xfer class (issue #639) 2018-03-05 13:28:53 +01:00
ideasUnvToFoam ENH: consistency of HashSet setMany(), insertMany() with packed-list version 2018-03-14 21:08:29 +01:00
kivaToFoam ENH: remove reliance on the Xfer class (issue #639) 2018-03-05 13:28:53 +01:00
mshToFoam ENH: remove reliance on the Xfer class (issue #639) 2018-03-05 13:28:53 +01:00
netgenNeutralToFoam ENH: remove reliance on the Xfer class (issue #639) 2018-03-05 13:28:53 +01:00
plot3dToFoam ENH: remove reliance on the Xfer class (issue #639) 2018-03-05 13:28:53 +01:00
star4ToFoam ENH: cleanup autoPtr class (issue #639) 2018-02-26 12:00:00 +01:00
tetgenToFoam ENH: remove reliance on the Xfer class (issue #639) 2018-03-05 13:28:53 +01:00
vtkUnstructuredToFoam ENH: remove reliance on the Xfer class (issue #639) 2018-03-05 13:28:53 +01:00
writeMeshObj ENH: consistency of HashSet setMany(), insertMany() with packed-list version 2018-03-14 21:08:29 +01:00