ENH: added constexpr, noexcept for bool, Switch

- rationalized some method naming.
  Eg, c_str() instead of asText()
This commit is contained in:
Mark Olesen
2018-03-03 20:32:49 +01:00
parent 13ea73c31c
commit 53ab527b45
14 changed files with 188 additions and 257 deletions

View File

@ -267,7 +267,7 @@ void Foam::controlMeshRefinement::initialMeshPopulation
Info<< "Inserting points from " << controlFunction.name()
<< " (" << controlFunction.type() << ")" << endl;
Info<< " Force insertion is " << forceInsertion.asText() << endl;
Info<< " Force insertion is " << forceInsertion.c_str() << endl;
pointField pts;
scalarField sizes;
@ -453,7 +453,7 @@ void Foam::controlMeshRefinement::initialMeshPopulation
Info<< "Inserting points from " << controlFunction.name()
<< " (" << controlFunction.type() << ")" << endl;
Info<< " Force insertion is " << forceInsertion.asText() << endl;
Info<< " Force insertion is " << forceInsertion.c_str() << endl;
DynamicList<Foam::point> extraPts;
DynamicList<scalar> extraSizes;

View File

@ -538,13 +538,13 @@ Foam::featurePointConformer::featurePointConformer
Info<< incrIndent
<< indent << "Circulating edges is: "
<< foamyHexMeshControls_.circulateEdges().asText() << nl
<< foamyHexMeshControls_.circulateEdges().c_str() << nl
<< indent << "Guarding feature points is: "
<< foamyHexMeshControls_.guardFeaturePoints().asText() << nl
<< foamyHexMeshControls_.guardFeaturePoints().c_str() << nl
<< indent << "Snapping to feature points is: "
<< foamyHexMeshControls_.snapFeaturePoints().asText() << nl
<< foamyHexMeshControls_.snapFeaturePoints().c_str() << nl
<< indent << "Specialising feature points is: "
<< foamyHexMeshControls_.specialiseFeaturePoints().asText()
<< foamyHexMeshControls_.specialiseFeaturePoints().c_str()
<< decrIndent
<< endl;

View File

@ -66,7 +66,7 @@ pointFile::pointFile
readScalar(detailsDict().lookup("randomPerturbationCoeff"))
)
{
Info<< " Inside/Outside check is " << insideOutsideCheck_.asText()
Info<< " Inside/Outside check is " << insideOutsideCheck_.c_str()
<< endl;
}

View File

@ -84,7 +84,7 @@ Foam::surfaceFeaturesExtraction::extractFromFile::features
Info<< nl << "Reading existing feature edges from file "
<< featureEdgeFile_ << nl
<< "Selecting edges based purely on geometric tests: "
<< geometricTestOnly().asText() << endl;
<< geometricTestOnly().c_str() << endl;
return autoPtr<surfaceFeatures>
(

View File

@ -78,7 +78,7 @@ Foam::surfaceFeaturesExtraction::extractFromSurface::features
Info<< nl << "Constructing feature set from included angle "
<< includedAngle() << nl
<< "Selecting edges based purely on geometric tests: "
<< geometricTestOnly().asText() << endl;
<< geometricTestOnly().c_str() << endl;
return autoPtr<surfaceFeatures>
(