STYLE: revert bitSet/HashSet setMany() to set() method (issue #837)

- improves backward compatibility and more naming consistency.
  Retain setMany(iter1, iter2) to avoid ambiguity with the
  PackedList::set(index, value) method.
This commit is contained in:
Mark Olesen
2018-05-29 17:38:02 +02:00
parent 3de9b2f675
commit 6b6b36afd3
79 changed files with 243 additions and 213 deletions

View File

@ -300,7 +300,7 @@ void Foam::cellClassification::markCells
// Mark faces of celli
const labelList& myFaces = mesh_.cells()[celli];
outsideFacesMap.insertMany(myFaces);
outsideFacesMap.insert(myFaces);
}
}

View File

@ -172,7 +172,7 @@ Foam::label Foam::cellDistFuncs::getPointNeighbours
forAll(f, fp)
{
const labelList& pointNbs = patch.pointFaces()[f[fp]];
nbs.insertMany(pointNbs);
nbs.insert(pointNbs);
}
// Subtract ours.

View File

@ -1531,14 +1531,14 @@ void Foam::extendedEdgeMesh::autoMap
label pointI = pointMap[subPointI];
const labelList& pNormals = featurePointNormals()[pointI];
isSubNormal.setMany(pNormals);
isSubNormal.set(pNormals);
}
forAll(edgeMap, subEdgeI)
{
label edgeI = edgeMap[subEdgeI];
const labelList& eNormals = edgeNormals()[edgeI];
isSubNormal.setMany(eNormals);
isSubNormal.set(eNormals);
}
forAll(isSubNormal, normalI)

View File

@ -47,7 +47,7 @@ Foam::treeBoundBox Foam::treeDataFace::calcBb(const label facei) const
void Foam::treeDataFace::update()
{
isTreeFace_.setMany(faceLabels_);
isTreeFace_.set(faceLabels_);
if (cacheBb_)
{

View File

@ -301,7 +301,7 @@ void Foam::meshTools::writeOBJ
forAll(cellLabels, i)
{
const cell& cFaces = cells[cellLabels[i]];
usedFaces.insertMany(cFaces);
usedFaces.insert(cFaces);
}
writeOBJ(os, faces, points, usedFaces.toc());

View File

@ -33,13 +33,9 @@ License
namespace Foam
{
defineTypeNameAndDebug(normalToFace, 0);
addToRunTimeSelectionTable(topoSetSource, normalToFace, word);
addToRunTimeSelectionTable(topoSetSource, normalToFace, istream);
}
@ -160,7 +156,7 @@ void Foam::normalToFace::applyToSet
}
}
set.eraseMany(toBeRemoved);
set.erase(toBeRemoved);
}
}

View File

@ -384,7 +384,7 @@ Foam::labelHashSet Foam::triSurfaceTools::getCollapsedFaces
const labelList& myFaces = surf.edgeFaces()[edgeI];
labelHashSet facesToBeCollapsed(2*myFaces.size());
facesToBeCollapsed.insertMany(myFaces);
facesToBeCollapsed.insert(myFaces);
// From faces using v1 check if they share an edge with faces
// using v2.