Skip to content

Conversation

@N-Dekker
Copy link

@N-Dekker N-Dekker commented May 6, 2025

@vboussot Hereby three small style improvements, please correct me if I'm wrong 😃

  • Moved helper functions of elxImpactMetricGTest into an unnamed namespace, following C++ Core Guidelines, "Use an unnamed (anonymous) namespace for all internal/non-exported entities"
  • Moved elxImpactMetric functions from out of the global namespace into the elastix namespace, to reduce the chance of name collisions
  • Removed TConfiguration template parameters from formatParameterStringByDimensionAndLevel, because elastix only has one Configuration type

N-Dekker added 2 commits May 6, 2025 13:31
Moved them out of the global namespace, to reduce the chance of name collisions.
@N-Dekker N-Dekker force-pushed the namespaces-and-Configuration branch 2 times, most recently from 2f4b4cc to bae33bf Compare May 6, 2025 15:56
vboussot pushed a commit that referenced this pull request May 6, 2025
It appears unnecessary for formatParameterStringByDimensionAndLevel to have `Configuration` as template parameter, because elastix only has one `Configuration` type.
@N-Dekker N-Dekker force-pushed the namespaces-and-Configuration branch from bae33bf to 488609b Compare May 7, 2025 10:37
@N-Dekker
Copy link
Author

N-Dekker commented May 7, 2025

@vboussot If you agree, you may just squash these three commits with your feature branch. No need to preserve the separate commits.

@vboussot vboussot merged commit a298470 into vboussot:feature/impact-metric May 7, 2025
vboussot pushed a commit that referenced this pull request May 14, 2025
…ion` template parameter (#2)

* STYLE: Move helper functions of elxImpactMetricGTest into namespace

Following C++ Core Guidelines, Oct 3, 2024, "Use an unnamed (anonymous) namespace for all internal/non-exported entities",
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#sf22-use-an-unnamed-anonymous-namespace-for-all-internalnon-exported-entities

* STYLE: Place elxImpactMetric functions into elastix namespace

Moved them out of the global namespace, to reduce the chance of name collisions.

* STYLE: Remove `Configuration` template parameters

It appears unnecessary for formatParameterStringByDimensionAndLevel to have `Configuration` as template parameter, because elastix only has one `Configuration` type.
vboussot pushed a commit that referenced this pull request Jul 1, 2025
…ion` template parameter (#2)

* STYLE: Move helper functions of elxImpactMetricGTest into namespace

Following C++ Core Guidelines, Oct 3, 2024, "Use an unnamed (anonymous) namespace for all internal/non-exported entities",
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#sf22-use-an-unnamed-anonymous-namespace-for-all-internalnon-exported-entities

* STYLE: Place elxImpactMetric functions into elastix namespace

Moved them out of the global namespace, to reduce the chance of name collisions.

* STYLE: Remove `Configuration` template parameters

It appears unnecessary for formatParameterStringByDimensionAndLevel to have `Configuration` as template parameter, because elastix only has one `Configuration` type.
vboussot pushed a commit that referenced this pull request Oct 11, 2025
…ion` template parameter (#2)

* STYLE: Move helper functions of elxImpactMetricGTest into namespace

Following C++ Core Guidelines, Oct 3, 2024, "Use an unnamed (anonymous) namespace for all internal/non-exported entities",
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#sf22-use-an-unnamed-anonymous-namespace-for-all-internalnon-exported-entities

* STYLE: Place elxImpactMetric functions into elastix namespace

Moved them out of the global namespace, to reduce the chance of name collisions.

* STYLE: Remove `Configuration` template parameters

It appears unnecessary for formatParameterStringByDimensionAndLevel to have `Configuration` as template parameter, because elastix only has one `Configuration` type.
vboussot pushed a commit that referenced this pull request Oct 13, 2025
…ion` template parameter (#2)

* STYLE: Move helper functions of elxImpactMetricGTest into namespace

Following C++ Core Guidelines, Oct 3, 2024, "Use an unnamed (anonymous) namespace for all internal/non-exported entities",
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#sf22-use-an-unnamed-anonymous-namespace-for-all-internalnon-exported-entities

* STYLE: Place elxImpactMetric functions into elastix namespace

Moved them out of the global namespace, to reduce the chance of name collisions.

* STYLE: Remove `Configuration` template parameters

It appears unnecessary for formatParameterStringByDimensionAndLevel to have `Configuration` as template parameter, because elastix only has one `Configuration` type.
vboussot pushed a commit that referenced this pull request Oct 14, 2025
…ion` template parameter (#2)

* STYLE: Move helper functions of elxImpactMetricGTest into namespace

Following C++ Core Guidelines, Oct 3, 2024, "Use an unnamed (anonymous) namespace for all internal/non-exported entities",
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#sf22-use-an-unnamed-anonymous-namespace-for-all-internalnon-exported-entities

* STYLE: Place elxImpactMetric functions into elastix namespace

Moved them out of the global namespace, to reduce the chance of name collisions.

* STYLE: Remove `Configuration` template parameters

It appears unnecessary for formatParameterStringByDimensionAndLevel to have `Configuration` as template parameter, because elastix only has one `Configuration` type.
vboussot pushed a commit that referenced this pull request Oct 15, 2025
…ion` template parameter (#2)

* STYLE: Move helper functions of elxImpactMetricGTest into namespace

Following C++ Core Guidelines, Oct 3, 2024, "Use an unnamed (anonymous) namespace for all internal/non-exported entities",
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#sf22-use-an-unnamed-anonymous-namespace-for-all-internalnon-exported-entities

* STYLE: Place elxImpactMetric functions into elastix namespace

Moved them out of the global namespace, to reduce the chance of name collisions.

* STYLE: Remove `Configuration` template parameters

It appears unnecessary for formatParameterStringByDimensionAndLevel to have `Configuration` as template parameter, because elastix only has one `Configuration` type.
vboussot pushed a commit that referenced this pull request Nov 23, 2025
…ion` template parameter (#2)

* STYLE: Move helper functions of elxImpactMetricGTest into namespace

Following C++ Core Guidelines, Oct 3, 2024, "Use an unnamed (anonymous) namespace for all internal/non-exported entities",
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#sf22-use-an-unnamed-anonymous-namespace-for-all-internalnon-exported-entities

* STYLE: Place elxImpactMetric functions into elastix namespace

Moved them out of the global namespace, to reduce the chance of name collisions.

* STYLE: Remove `Configuration` template parameters

It appears unnecessary for formatParameterStringByDimensionAndLevel to have `Configuration` as template parameter, because elastix only has one `Configuration` type.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants