STYLE: use HashTable iterator 'val()' method instead of 'object()'

This commit is contained in:
Mark Olesen
2019-01-18 16:26:50 +01:00
parent 53efb24a8d
commit ed94a2714d
57 changed files with 134 additions and 139 deletions

View File

@ -800,7 +800,7 @@ void Foam::meshToMesh::constructFromCuttingPatches
forAllConstIters(patchMap, iter)
{
const word& tgtPatchName = iter.key();
const word& srcPatchName = iter.object();
const word& srcPatchName = iter.val();
const polyPatch& srcPatch = srcBm[srcPatchName];

View File

@ -62,7 +62,7 @@ Foam::label Foam::probes::classifyFields()
forAllConstIters(available, iter)
{
const word& fieldType = iter.key();
const wordList fieldNames = iter.object().sortedToc();
const wordList fieldNames = iter.val().sortedToc();
const label count = fieldNames.size(); // pre-filtered, so non-empty

View File

@ -88,7 +88,7 @@ Foam::label Foam::sampledSets::classifyFields()
forAllConstIters(available, iter)
{
const word& fieldType = iter.key();
const wordList fieldNames = iter.object().sortedToc();
const wordList fieldNames = iter.val().sortedToc();
const label count = fieldNames.size(); // pre-filtered, so non-empty

View File

@ -77,7 +77,7 @@ Foam::label Foam::sampledSurfaces::classifyFields()
// Total number selected
forAllConstIters(available, iter)
{
nFields += iter.object().size();
nFields += iter.val().size();
}
return nFields;

View File

@ -257,7 +257,7 @@ void Foam::cuttingSurfaceBase::walkCellCuts
// they can also be used to determine the correct face orientation.
const edge refEdge = localFaces.begin().key();
label nextFace = localFaces.begin().object()[0];
label nextFace = localFaces.begin().val()[0];
DebugInfo
<< "search face " << nextFace << " IN " << localEdges << endl;
@ -274,23 +274,23 @@ void Foam::cuttingSurfaceBase::walkCellCuts
forAllIters(localFaces, iter)
{
DebugInfo
<< "lookup " << nextFace << " in " << iter.object() << nl;
<< "lookup " << nextFace << " in " << iter.val() << nl;
// Find local index (0,1) or -1 on failure
const label got = iter.object().which(nextFace);
const label got = iter.val().which(nextFace);
if (got != -1)
{
ok = true;
// The other face
nextFace = iter.object()[(got?0:1)];
nextFace = iter.val()[(got?0:1)];
// The edge -> cut point
localFaceLoop.append(localEdges[iter.key()]);
DebugInfo
<<" faces " << iter.object()
<<" faces " << iter.val()
<< " point " << localFaceLoop.last()
<< " edge=" << iter.key() << " nextFace=" << nextFace
<< nl;

View File

@ -1185,7 +1185,7 @@ Foam::label Foam::isoSurfaceCell::markDanglingTriangles
// with only one connected edge (= this edge)
const label edgeI = iter.key();
const labelList& otherEdgeFaces = iter.object();
const labelList& otherEdgeFaces = iter.val();
// Remove all dangling triangles
if (danglingTriangle(faceEdges[edgeFace0[edgeI]], edgeFace1))