Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FUTURE_LEGACY_REMOVE InternalPixelPointerType, EdgeListPointerType, InputBoundaryConditionPointerType #4554

Conversation

N-Dekker
Copy link
Contributor

@N-Dekker N-Dekker commented Apr 2, 2024

Deprecated the following three typedefs of raw pointer types:

- ImageAdaptor::InternalPixelPointerType
- QuadEdgeMesh::EdgeListPointerType
- DiscreteGaussianImageFilter::InputBoundaryConditionPointerType

It appears clearer to just use the Type * syntax, to explicitly make clear when using a raw pointer, rather than a smart pointer.

These cases were found by a search of the regular expression ^ using \w+PointerType = \w+Type \*;$ in all "itk*.h" files.

Deprecated `InternalPixelPointerType`, which appears unused and untested anyway.

Follow-up to pull request InsightSoftwareConsortium#4538
commit f44304d
"STYLE: FUTURE_LEGACY_REMOVE BoundaryConditionPointerType type aliases"
Made it clearer that `QuadEdgeMeshBoundaryEdgesMeshFunction` just use a _raw_
pointer (not a smart pointer) to the edge list.
Follow-up to pull request InsightSoftwareConsortium#4538
commit f44304d
"STYLE: FUTURE_LEGACY_REMOVE BoundaryConditionPointerType type aliases"
Replaced InputBoundaryConditionPointerType with `BoundaryConditionType *`.

Aims to make it clearer that `DiscreteGaussianImageFilter` just has a _raw_
pointer (not a smart pointer) to the input `BoundaryCondition`.
Deprecated `DiscreteGaussianImageFilter::InputBoundaryConditionPointerType`.

Follow-up to pull request InsightSoftwareConsortium#4538
commit f44304d
"STYLE: FUTURE_LEGACY_REMOVE BoundaryConditionPointerType type aliases"
@github-actions github-actions bot added area:Core Issues affecting the Core module area:Filtering Issues affecting the Filtering module labels Apr 2, 2024
@N-Dekker N-Dekker marked this pull request as ready for review April 2, 2024 15:48
@thewtex
Copy link
Member

thewtex commented Apr 4, 2024

Please keep for this for after 5.4.0 has been released.

@N-Dekker N-Dekker marked this pull request as draft April 4, 2024 20:11
@N-Dekker N-Dekker changed the title FUTURE_LEGACY_REMOVE InternalPixelPointerType, EdgeListPointerType, InputBoundaryConditionPointerType [Do not yet merge] FUTURE_LEGACY_REMOVE InternalPixelPointerType, EdgeListPointerType, InputBoundaryConditionPointerType Apr 4, 2024
@N-Dekker N-Dekker changed the title [Do not yet merge] FUTURE_LEGACY_REMOVE InternalPixelPointerType, EdgeListPointerType, InputBoundaryConditionPointerType FUTURE_LEGACY_REMOVE InternalPixelPointerType, EdgeListPointerType, InputBoundaryConditionPointerType May 21, 2024
@N-Dekker N-Dekker marked this pull request as ready for review May 21, 2024 08:13
@N-Dekker
Copy link
Contributor Author

I think this pull request may also be merged now, as v5.4.0 has been tagged: #4603 (comment)

@thewtex thewtex merged commit 9788086 into InsightSoftwareConsortium:master May 22, 2024
12 checks passed
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 area:Filtering Issues affecting the Filtering module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants