openfoam/applications/utilities/mesh/manipulation
Mark Olesen 5d1fb23555 ENH: code reduction in PackedList, PackedBoolList (issue #751)
- eliminate iterators from PackedList since they were unused, had
  lower performance than direct access and added unneeded complexity.

- eliminate auto-vivify for the PackedList '[] operator.
  The set() method provides any required auto-vivification and
  removing this ability from the '[]' operator allows for a lower
  when accessing the values. Replaced the previous cascade of iterators
  with simpler reference class.

PackedBoolList:

- (temporarily) eliminate logic and addition operators since
  these contained partially unclear semantics.

- 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.

- more consistent use of PackedBoolList test(), set(), unset() methods
  for fewer operation and clearer code. Eg,

      if (list.test(index)) ...    |  if (list[index]) ...
      if (!list.test(index)) ...   |  if (list[index] == 0u) ...
      list.set(index);             |  list[index] = 1u;
      list.unset(index);           |  list[index] = 0u;

- deleted the operator=(const labelUList&) and replaced with a setMany()
  method for more clarity about the intended operation and to avoid any
  potential inadvertent behaviour.
2018-03-13 08:32:40 +01:00
..
attachMesh ENH: simplify method names for reading argList options and arguments 2018-01-08 15:35:18 +01:00
autoPatch ENH: simplify method names for reading argList options and arguments 2018-01-08 15:35:18 +01:00
checkMesh ENH: code reduction in PackedList, PackedBoolList (issue #751) 2018-03-13 08:32:40 +01:00
createBaffles ENH: code reduction in PackedList, PackedBoolList (issue #751) 2018-03-13 08:32:40 +01:00
createPatch STYLE: consistent use of wordHashSet instead of HashSet<word> 2018-02-22 11:19:47 +01:00
deformedGeom ENH: simplify method names for reading argList options and arguments 2018-01-08 15:35:18 +01:00
flattenMesh GIT: Initial state after latest Foundation merge 2016-09-20 14:49:08 +01:00
insideCells STYLE: consistency in using argList::addArgument, argList::addOption 2017-11-22 12:54:28 +01:00
mergeMeshes ENH: simplify method names for reading argList options and arguments 2018-01-08 15:35:18 +01:00
mergeOrSplitBaffles ENH: cleanup autoPtr class (issue #639) 2018-02-26 12:00:00 +01:00
mirrorMesh ENH: remove reliance on the Xfer class (issue #639) 2018-03-05 13:28:53 +01:00
moveDynamicMesh ENH: cleanup of ListOps, ListListOps. Adjustments to List, PackedList. 2018-03-01 14:12:51 +01:00
moveEngineMesh ENH: (further) Doxygen documentation updates for module support 2016-06-27 20:34:19 +01:00
moveMesh ENH: (further) Doxygen documentation updates for module support 2016-06-27 20:34:19 +01:00
objToVTK STYLE: consistency in using argList::addArgument, argList::addOption 2017-11-22 12:54:28 +01:00
orientFaceZone ENH: simplify method names for reading argList options and arguments 2018-01-08 15:35:18 +01:00
polyDualMesh ENH: code reduction in PackedList, PackedBoolList (issue #751) 2018-03-13 08:32:40 +01:00
refineMesh ENH: code reduction in PackedList, PackedBoolList (issue #751) 2018-03-13 08:32:40 +01:00
renumberMesh ENH: remove reliance on the Xfer class (issue #639) 2018-03-05 13:28:53 +01:00
rotateMesh ENH: simplify method names for reading argList options and arguments 2018-01-08 15:35:18 +01:00
setSet ENH: cleanup autoPtr class (issue #639) 2018-02-26 12:00:00 +01:00
setsToZones STYLE: consistent use of wordHashSet instead of HashSet<word> 2018-02-22 11:19:47 +01:00
singleCellMesh BUG: singleCellMesh: writes constant mesh to 0 directory instead. 2016-08-10 15:49:09 +01:00
splitMesh ENH: simplify method names for reading argList options and arguments 2018-01-08 15:35:18 +01:00
splitMeshRegions ENH: simplify method names for reading argList options and arguments 2018-01-08 15:35:18 +01:00
stitchMesh ENH: remove reliance on the Xfer class (issue #639) 2018-03-05 13:28:53 +01:00
subsetMesh ENH: code reduction in PackedList, PackedBoolList (issue #751) 2018-03-13 08:32:40 +01:00
topoSet ENH: simplify method names for reading argList options and arguments 2018-01-08 15:35:18 +01:00
transformPoints ENH: change wordRes to be a List of wordRe instead of a wrapper (issue #259) 2018-02-21 10:05:30 +01:00
zipUpMesh ENH: (further) Doxygen documentation updates for module support 2016-06-27 20:34:19 +01:00