Skip to content

Declare AdvancedBSplineDeformableTransform data members as C-style array, remove this->#1212

Merged
N-Dekker merged 6 commits intomainfrom
AdvancedBSplineDeformableTransform-data-members
Aug 13, 2024
Merged

Declare AdvancedBSplineDeformableTransform data members as C-style array, remove this->#1212
N-Dekker merged 6 commits intomainfrom
AdvancedBSplineDeformableTransform-data-members

Conversation

@N-Dekker
Copy link
Copy Markdown
Member

@N-Dekker N-Dekker commented Aug 13, 2024

Using C-style arrays instead of std::vector might improve the run-time performance of AdvancedBSplineDeformableTransform.

Also made m_WeightsFunction const, and did clean-up the default-constructor of AdvancedBSplineDeformableTransform.

The prefix `this->` is not necessary when a class or template just accesses its own private data.

Follow-up to commit 7618fa3
Clarified where those data member are from, when AdvancedBSplineDeformableTransform accesses a data member of a base class.
It appears unnecessary to use `std::vector` for those two AdvancedBSplineDeformableTransform data members, as those data members do not need to be resized.
Removed the setter and getters of `m_WeightsFunction`. (The comment asking "Why??" already suggested that they were unnecessary. This comment was there already with commit 3b50076, 27 October 2008.)
It appears unnecessary to reset the data of the Superclass, in the default-constructor of AdvancedBSplineDeformableTransform.
@N-Dekker N-Dekker merged commit 4ce9da7 into main Aug 13, 2024
@N-Dekker N-Dekker deleted the AdvancedBSplineDeformableTransform-data-members branch August 13, 2024 17:10
N-Dekker added a commit that referenced this pull request Dec 3, 2024
The prefix `this->` is not necessary when a class or template just accesses its own private data.

Follow-up to pull request #1212 commit c8857be "Remove `this->` when BSplineDeformableTransform accesses its data"
N-Dekker added a commit that referenced this pull request Dec 4, 2024
The prefix `this->` is not necessary when a class or template just accesses its own private data.

Follow-up to pull request #1212 commit c8857be "Remove `this->` when BSplineDeformableTransform accesses its data"
N-Dekker added a commit that referenced this pull request Aug 26, 2025
…clicBSplineDeformableTransform.hxx

Follow-up to pull request #1212 commit 86b3359 "STYLE: Replace `this->` with `Superclass` in BSplineDeformableTransform"
N-Dekker added a commit that referenced this pull request Aug 26, 2025
Follow-up to pull request #1212 commit 86b3359 "STYLE: Replace `this->` with `Superclass` in BSplineDeformableTransform"
N-Dekker added a commit that referenced this pull request Aug 26, 2025
Follow-up to pull request #1212 commit 86b3359 "STYLE: Replace `this->` with `Superclass` in BSplineDeformableTransform"
N-Dekker added a commit that referenced this pull request Aug 26, 2025
Follow-up to pull request #1212 commit 86b3359 "STYLE: Replace `this->` with `Superclass` in BSplineDeformableTransform"
N-Dekker added a commit that referenced this pull request Aug 26, 2025
Follow-up to pull request #1212 commit 86b3359 "STYLE: Replace `this->` with `Superclass` in BSplineDeformableTransform"
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.

1 participant