Skip to content

Comments

STYLE: Remove Image and OffsetTable from ImageConstIteratorWithOnlyIndex#5813

Open
N-Dekker wants to merge 1 commit intoInsightSoftwareConsortium:mainfrom
N-Dekker:Remove-Image-and-OffsetTable-from-ImageConstIteratorWithOnlyIndex
Open

STYLE: Remove Image and OffsetTable from ImageConstIteratorWithOnlyIndex#5813
N-Dekker wants to merge 1 commit intoInsightSoftwareConsortium:mainfrom
N-Dekker:Remove-Image-and-OffsetTable-from-ImageConstIteratorWithOnlyIndex

Conversation

@N-Dekker
Copy link
Contributor

@N-Dekker N-Dekker commented Feb 18, 2026

Iterators "with only index" do not need to have access to the image or its offset table.


It appears that those apparently unnecessary data members were there already with the initial commit, ENH: Add "WithOnlyIndex" iterators., Michael Stauffer (@mgstauffer), 14 years ago:

typename TImage::ConstPointer m_Image;

OffsetValueType m_OffsetTable[ImageDimension + 1];

@mgstauffer Do you possibly still have a clue why ImageConstIteratorWithOnlyIndex has those two data members? Do you agree that they appear unnecessary?

Iterators "with only index" do not need to have access to the image or its
offset table.
@github-actions github-actions bot added area:Core Issues affecting the Core module type:Style Style changes: no logic impact (indentation, comments, naming) labels Feb 18, 2026
@N-Dekker N-Dekker marked this pull request as ready for review February 20, 2026 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:Core Issues affecting the Core module type:Style Style changes: no logic impact (indentation, comments, naming)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant