mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -300,7 +300,7 @@ void Foam::cellClassification::markCells
|
||||
|
||||
// Mark faces of celli
|
||||
const labelList& myFaces = mesh_.cells()[celli];
|
||||
outsideFacesMap.insertMany(myFaces);
|
||||
outsideFacesMap.insert(myFaces);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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_)
|
||||
{
|
||||
|
||||
@ -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());
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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.
|
||||
|
||||
Reference in New Issue
Block a user