ENH: use min/max instead of first/last for int/slice ranges

- consistent with MinMax tuple etc.
- cull unused before(), after() methods
This commit is contained in:
Mark Olesen
2023-02-24 18:48:12 +01:00
parent b33b26ad34
commit 117173aaba
15 changed files with 142 additions and 213 deletions

View File

@ -5,7 +5,7 @@
\\ / A nd | www.openfoam.com
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2019-2020 OpenCFD Ltd.
Copyright (C) 2019-2023 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -47,10 +47,10 @@ void printInfo(const sliceCoeffs& coeffs)
Info<< nl
<< "coeffs: " << coeffs << nl
<< "range: " << range << nl
<< "first: " << range.first() << nl
<< "range: " << range << nl
<< "min: " << range.min() << nl
<< "*begin " << *range.begin() << nl
<< "last: " << range.last() << nl
<< "max: " << range.max() << nl
<< "*end " << *range.end() << nl
<< "values: " << flatOutput(range.labels()) << nl;