Skip to content

Commit

Permalink
ENH: Finalize ITKv5 const function API change
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Rit authored and SimonRit committed Jun 20, 2024
1 parent 1d0d14f commit 60b70b4
Show file tree
Hide file tree
Showing 54 changed files with 54 additions and 57 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ class ITK_TEMPLATE_EXPORT ADMMTotalVariationConeBeamReconstructionFilter

/** Checks that inputs are correctly set. */
void
VerifyPreconditions() ITKv5_CONST override;
VerifyPreconditions() const override;

/** Does the real work. */
void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ ADMMTotalVariationConeBeamReconstructionFilter<TOutputImage, TGradientOutputImag

template <class TInputImage, class TOutputImage>
void
ADMMTotalVariationConeBeamReconstructionFilter<TInputImage, TOutputImage>::VerifyPreconditions() ITKv5_CONST
ADMMTotalVariationConeBeamReconstructionFilter<TInputImage, TOutputImage>::VerifyPreconditions() const
{
this->Superclass::VerifyPreconditions();

Expand Down
2 changes: 1 addition & 1 deletion include/rtkADMMTotalVariationConjugateGradientOperator.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ class ITK_TEMPLATE_EXPORT ADMMTotalVariationConjugateGradientOperator : public C

/** Checks that inputs are correctly set. */
void
VerifyPreconditions() ITKv5_CONST override;
VerifyPreconditions() const override;

/** Does the real work. */
void
Expand Down
2 changes: 1 addition & 1 deletion include/rtkADMMTotalVariationConjugateGradientOperator.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ ADMMTotalVariationConjugateGradientOperator<TOutputImage, TGradientOutputImage>:

template <class TInputImage, class TOutputImage>
void
ADMMTotalVariationConjugateGradientOperator<TInputImage, TOutputImage>::VerifyPreconditions() ITKv5_CONST
ADMMTotalVariationConjugateGradientOperator<TInputImage, TOutputImage>::VerifyPreconditions() const
{
this->Superclass::VerifyPreconditions();

Expand Down
2 changes: 1 addition & 1 deletion include/rtkADMMWaveletsConeBeamReconstructionFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ class ITK_TEMPLATE_EXPORT ADMMWaveletsConeBeamReconstructionFilter

/** Checks that inputs are correctly set. */
void
VerifyPreconditions() ITKv5_CONST override;
VerifyPreconditions() const override;

/** Does the real work. */
void
Expand Down
2 changes: 1 addition & 1 deletion include/rtkADMMWaveletsConeBeamReconstructionFilter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ ADMMWaveletsConeBeamReconstructionFilter<TOutputImage>::ADMMWaveletsConeBeamReco

template <class TOutputImage>
void
ADMMWaveletsConeBeamReconstructionFilter<TOutputImage>::VerifyPreconditions() ITKv5_CONST
ADMMWaveletsConeBeamReconstructionFilter<TOutputImage>::VerifyPreconditions() const
{
this->Superclass::VerifyPreconditions();

Expand Down
2 changes: 1 addition & 1 deletion include/rtkBackProjectionImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class ITK_TEMPLATE_EXPORT BackProjectionImageFilter : public itk::InPlaceImageFi

/** Checks that inputs are correctly set. */
void
VerifyPreconditions() ITKv5_CONST override;
VerifyPreconditions() const override;

/** Apply changes to the input image requested region. */
void
Expand Down
2 changes: 1 addition & 1 deletion include/rtkBackProjectionImageFilter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ BackProjectionImageFilter<TInputImage, TOutputImage>::GenerateInputRequestedRegi

template <class TInputImage, class TOutputImage>
void
BackProjectionImageFilter<TInputImage, TOutputImage>::VerifyPreconditions() ITKv5_CONST
BackProjectionImageFilter<TInputImage, TOutputImage>::VerifyPreconditions() const
{
this->Superclass::VerifyPreconditions();

Expand Down
2 changes: 1 addition & 1 deletion include/rtkConjugateGradientConeBeamReconstructionFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ class ITK_TEMPLATE_EXPORT ConjugateGradientConeBeamReconstructionFilter

/** Checks that inputs are correctly set. */
void
VerifyPreconditions() ITKv5_CONST override;
VerifyPreconditions() const override;

/** Does the real work. */
void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ ConjugateGradientConeBeamReconstructionFilter<TOutputImage, TSingleComponentImag
template <typename TOutputImage, typename TSingleComponentImage, typename TWeightsImage>
void
ConjugateGradientConeBeamReconstructionFilter<TOutputImage, TSingleComponentImage, TWeightsImage>::VerifyPreconditions()
ITKv5_CONST
const
{
this->Superclass::VerifyPreconditions();

Expand Down
2 changes: 1 addition & 1 deletion include/rtkDisplacedDetectorImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class ITK_TEMPLATE_EXPORT DisplacedDetectorImageFilter : public itk::InPlaceImag

/** Checks that inputs are correctly set. */
void
VerifyPreconditions() ITKv5_CONST override;
VerifyPreconditions() const override;

void
GenerateInputRequestedRegion() override;
Expand Down
2 changes: 1 addition & 1 deletion include/rtkDisplacedDetectorImageFilter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ DisplacedDetectorImageFilter<TInputImage, TOutputImage>::SetOffsets(double minOf

template <class TInputImage, class TOutputImage>
void
DisplacedDetectorImageFilter<TInputImage, TOutputImage>::VerifyPreconditions() ITKv5_CONST
DisplacedDetectorImageFilter<TInputImage, TOutputImage>::VerifyPreconditions() const
{
this->Superclass::VerifyPreconditions();

Expand Down
2 changes: 1 addition & 1 deletion include/rtkFDKConeBeamReconstructionFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class ITK_TEMPLATE_EXPORT FDKConeBeamReconstructionFilter : public itk::InPlaceI

/** Checks that inputs are correctly set. */
void
VerifyPreconditions() ITKv5_CONST override;
VerifyPreconditions() const override;

void
GenerateInputRequestedRegion() override;
Expand Down
2 changes: 1 addition & 1 deletion include/rtkFDKConeBeamReconstructionFilter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ FDKConeBeamReconstructionFilter<TInputImage, TOutputImage, TFFTPrecision>::FDKCo

template <class TInputImage, class TOutputImage, class TFFTPrecision>
void
FDKConeBeamReconstructionFilter<TInputImage, TOutputImage, TFFTPrecision>::VerifyPreconditions() ITKv5_CONST
FDKConeBeamReconstructionFilter<TInputImage, TOutputImage, TFFTPrecision>::VerifyPreconditions() const
{
this->Superclass::VerifyPreconditions();

Expand Down
2 changes: 1 addition & 1 deletion include/rtkFDKWeightProjectionFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class ITK_TEMPLATE_EXPORT FDKWeightProjectionFilter : public itk::InPlaceImageFi

/** Checks that inputs are correctly set. */
void
VerifyPreconditions() ITKv5_CONST override;
VerifyPreconditions() const override;

void
BeforeThreadedGenerateData() override;
Expand Down
2 changes: 1 addition & 1 deletion include/rtkFDKWeightProjectionFilter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace rtk

template <class TInputImage, class TOutputImage>
void
FDKWeightProjectionFilter<TInputImage, TOutputImage>::VerifyPreconditions() ITKv5_CONST
FDKWeightProjectionFilter<TInputImage, TOutputImage>::VerifyPreconditions() const
{
this->Superclass::VerifyPreconditions();

Expand Down
2 changes: 1 addition & 1 deletion include/rtkFieldOfViewImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class ITK_TEMPLATE_EXPORT FieldOfViewImageFilter : public itk::InPlaceImageFilte

/** Checks that inputs are correctly set. */
void
VerifyPreconditions() ITKv5_CONST override;
VerifyPreconditions() const override;

void
BeforeThreadedGenerateData() override;
Expand Down
2 changes: 1 addition & 1 deletion include/rtkFieldOfViewImageFilter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ FieldOfViewImageFilter<TInputImage, TOutputImage>::ComputeFOVRadius(const FOVRad

template <class TInputImage, class TOutputImage>
void
FieldOfViewImageFilter<TInputImage, TOutputImage>::VerifyPreconditions() ITKv5_CONST
FieldOfViewImageFilter<TInputImage, TOutputImage>::VerifyPreconditions() const
{
this->Superclass::VerifyPreconditions();

Expand Down
2 changes: 1 addition & 1 deletion include/rtkForwardProjectionImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class ITK_TEMPLATE_EXPORT ForwardProjectionImageFilter : public itk::InPlaceImag

/** Checks that inputs are correctly set. */
void
VerifyPreconditions() ITKv5_CONST override;
VerifyPreconditions() const override;

/** Apply changes to the input image requested region. */
void
Expand Down
2 changes: 1 addition & 1 deletion include/rtkForwardProjectionImageFilter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ namespace rtk

template <class TInputImage, class TOutputImage>
void
ForwardProjectionImageFilter<TInputImage, TOutputImage>::VerifyPreconditions() ITKv5_CONST
ForwardProjectionImageFilter<TInputImage, TOutputImage>::VerifyPreconditions() const
{
this->Superclass::VerifyPreconditions();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ class ITK_TEMPLATE_EXPORT FourDConjugateGradientConeBeamReconstructionFilter

/** Checks that inputs are correctly set. */
void
VerifyPreconditions() ITKv5_CONST override;
VerifyPreconditions() const override;

void
GenerateOutputInformation() override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ FourDConjugateGradientConeBeamReconstructionFilter<VolumeSeriesType, ProjectionS

template <class VolumeSeriesType, class ProjectionStackType>
void
FourDConjugateGradientConeBeamReconstructionFilter<VolumeSeriesType, ProjectionStackType>::VerifyPreconditions()
ITKv5_CONST
FourDConjugateGradientConeBeamReconstructionFilter<VolumeSeriesType, ProjectionStackType>::VerifyPreconditions() const
{
this->Superclass::VerifyPreconditions();

Expand Down
2 changes: 1 addition & 1 deletion include/rtkFourDROOSTERConeBeamReconstructionFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ class ITK_TEMPLATE_EXPORT FourDROOSTERConeBeamReconstructionFilter

/** Checks that inputs are correctly set. */
void
VerifyPreconditions() ITKv5_CONST override;
VerifyPreconditions() const override;

/** Does the real work. */
void
Expand Down
2 changes: 1 addition & 1 deletion include/rtkFourDROOSTERConeBeamReconstructionFilter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ FourDROOSTERConeBeamReconstructionFilter<VolumeSeriesType, ProjectionStackType>:

template <typename VolumeSeriesType, typename ProjectionStackType>
void
FourDROOSTERConeBeamReconstructionFilter<VolumeSeriesType, ProjectionStackType>::VerifyPreconditions() ITKv5_CONST
FourDROOSTERConeBeamReconstructionFilter<VolumeSeriesType, ProjectionStackType>::VerifyPreconditions() const
{
this->Superclass::VerifyPreconditions();

Expand Down
2 changes: 1 addition & 1 deletion include/rtkFourDReconstructionConjugateGradientOperator.h
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ class ITK_TEMPLATE_EXPORT FourDReconstructionConjugateGradientOperator

/** Checks that inputs are correctly set. */
void
VerifyPreconditions() ITKv5_CONST override;
VerifyPreconditions() const override;

/** Builds the pipeline and computes output information */
void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ FourDReconstructionConjugateGradientOperator<VolumeSeriesType, ProjectionStackTy

template <typename VolumeSeriesType, typename ProjectionStackType>
void
FourDReconstructionConjugateGradientOperator<VolumeSeriesType, ProjectionStackType>::VerifyPreconditions() ITKv5_CONST
FourDReconstructionConjugateGradientOperator<VolumeSeriesType, ProjectionStackType>::VerifyPreconditions() const
{
this->Superclass::VerifyPreconditions();

Expand Down
2 changes: 1 addition & 1 deletion include/rtkFourDSARTConeBeamReconstructionFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ class ITK_TEMPLATE_EXPORT FourDSARTConeBeamReconstructionFilter

/** Checks that inputs are correctly set. */
void
VerifyPreconditions() ITKv5_CONST override;
VerifyPreconditions() const override;

void
GenerateInputRequestedRegion() override;
Expand Down
2 changes: 1 addition & 1 deletion include/rtkFourDSARTConeBeamReconstructionFilter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ FourDSARTConeBeamReconstructionFilter<VolumeSeriesType, ProjectionStackType>::Se

template <class VolumeSeriesType, class ProjectionStackType>
void
FourDSARTConeBeamReconstructionFilter<VolumeSeriesType, ProjectionStackType>::VerifyPreconditions() ITKv5_CONST
FourDSARTConeBeamReconstructionFilter<VolumeSeriesType, ProjectionStackType>::VerifyPreconditions() const
{
this->Superclass::VerifyPreconditions();

Expand Down
2 changes: 1 addition & 1 deletion include/rtkIterativeFDKConeBeamReconstructionFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ class ITK_TEMPLATE_EXPORT IterativeFDKConeBeamReconstructionFilter

/** Checks that inputs are correctly set. */
void
VerifyPreconditions() ITKv5_CONST override;
VerifyPreconditions() const override;

void
GenerateInputRequestedRegion() override;
Expand Down
2 changes: 1 addition & 1 deletion include/rtkIterativeFDKConeBeamReconstructionFilter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ IterativeFDKConeBeamReconstructionFilter<TInputImage, TOutputImage, TFFTPrecisio

template <class TInputImage, class TOutputImage, class TFFTPrecision>
void
IterativeFDKConeBeamReconstructionFilter<TInputImage, TOutputImage, TFFTPrecision>::VerifyPreconditions() ITKv5_CONST
IterativeFDKConeBeamReconstructionFilter<TInputImage, TOutputImage, TFFTPrecision>::VerifyPreconditions() const
{
this->Superclass::VerifyPreconditions();

Expand Down
2 changes: 1 addition & 1 deletion include/rtkMaskCollimationImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class ITK_TEMPLATE_EXPORT MaskCollimationImageFilter : public itk::InPlaceImageF

/** Checks that inputs are correctly set. */
void
VerifyPreconditions() ITKv5_CONST override;
VerifyPreconditions() const override;

void
BeforeThreadedGenerateData() override;
Expand Down
2 changes: 1 addition & 1 deletion include/rtkMaskCollimationImageFilter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ MaskCollimationImageFilter<TInputImage, TOutputImage>::MaskCollimationImageFilte

template <class TInputImage, class TOutputImage>
void
MaskCollimationImageFilter<TInputImage, TOutputImage>::VerifyPreconditions() ITKv5_CONST
MaskCollimationImageFilter<TInputImage, TOutputImage>::VerifyPreconditions() const
{
this->Superclass::VerifyPreconditions();

Expand Down
2 changes: 1 addition & 1 deletion include/rtkMechlemOneStepSpectralReconstructionFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ class ITK_TEMPLATE_EXPORT MechlemOneStepSpectralReconstructionFilter

/** Checks that inputs are correctly set. */
void
VerifyPreconditions() ITKv5_CONST override;
VerifyPreconditions() const override;

/** Does the real work. */
void
Expand Down
2 changes: 1 addition & 1 deletion include/rtkMechlemOneStepSpectralReconstructionFilter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ MechlemOneStepSpectralReconstructionFilter<TOutputImage, TPhotonCounts, TSpectru

template <class TOutputImage, class TPhotonCounts, class TSpectrum>
void
MechlemOneStepSpectralReconstructionFilter<TOutputImage, TPhotonCounts, TSpectrum>::VerifyPreconditions() ITKv5_CONST
MechlemOneStepSpectralReconstructionFilter<TOutputImage, TPhotonCounts, TSpectrum>::VerifyPreconditions() const
{
this->Superclass::VerifyPreconditions();

Expand Down
2 changes: 1 addition & 1 deletion include/rtkOSEMConeBeamReconstructionFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ class ITK_TEMPLATE_EXPORT OSEMConeBeamReconstructionFilter

/** Checks that inputs are correctly set. */
void
VerifyPreconditions() ITKv5_CONST override;
VerifyPreconditions() const override;

void
GenerateInputRequestedRegion() override;
Expand Down
2 changes: 1 addition & 1 deletion include/rtkOSEMConeBeamReconstructionFilter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ OSEMConeBeamReconstructionFilter<TVolumeImage, TProjectionImage>::OSEMConeBeamRe

template <class TVolumeImage, class TProjectionImage>
void
OSEMConeBeamReconstructionFilter<TVolumeImage, TProjectionImage>::VerifyPreconditions() ITKv5_CONST
OSEMConeBeamReconstructionFilter<TVolumeImage, TProjectionImage>::VerifyPreconditions() const
{
this->Superclass::VerifyPreconditions();

Expand Down
2 changes: 1 addition & 1 deletion include/rtkParkerShortScanImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class ITK_TEMPLATE_EXPORT ParkerShortScanImageFilter : public itk::InPlaceImageF

/** Checks that inputs are correctly set. */
void
VerifyPreconditions() ITKv5_CONST override;
VerifyPreconditions() const override;

void
GenerateInputRequestedRegion() override;
Expand Down
2 changes: 1 addition & 1 deletion include/rtkParkerShortScanImageFilter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ ParkerShortScanImageFilter<TInputImage, TOutputImage>::ParkerShortScanImageFilte

template <class TInputImage, class TOutputImage>
void
ParkerShortScanImageFilter<TInputImage, TOutputImage>::VerifyPreconditions() ITKv5_CONST
ParkerShortScanImageFilter<TInputImage, TOutputImage>::VerifyPreconditions() const
{
this->Superclass::VerifyPreconditions();

Expand Down
2 changes: 1 addition & 1 deletion include/rtkProjectGeometricPhantomImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class ITK_TEMPLATE_EXPORT ProjectGeometricPhantomImageFilter : public itk::InPla

/** Checks that inputs are correctly set. */
void
VerifyPreconditions() ITKv5_CONST override;
VerifyPreconditions() const override;

void
GenerateData() override;
Expand Down
2 changes: 1 addition & 1 deletion include/rtkProjectGeometricPhantomImageFilter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ ProjectGeometricPhantomImageFilter<TInputImage, TOutputImage>::ProjectGeometricP

template <class TInputImage, class TOutputImage>
void
ProjectGeometricPhantomImageFilter<TInputImage, TOutputImage>::VerifyPreconditions() ITKv5_CONST
ProjectGeometricPhantomImageFilter<TInputImage, TOutputImage>::VerifyPreconditions() const
{
this->Superclass::VerifyPreconditions();

Expand Down
2 changes: 1 addition & 1 deletion include/rtkProjectionStackToFourDImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ class ITK_TEMPLATE_EXPORT ProjectionStackToFourDImageFilter

/** Checks that inputs are correctly set. */
void
VerifyPreconditions() ITKv5_CONST override;
VerifyPreconditions() const override;

/** Does the real work. */
void
Expand Down
3 changes: 1 addition & 2 deletions include/rtkProjectionStackToFourDImageFilter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,7 @@ ProjectionStackToFourDImageFilter<VolumeSeriesType, ProjectionStackType, TFFTPre

template <typename VolumeSeriesType, typename ProjectionStackType, typename TFFTPrecision>
void
ProjectionStackToFourDImageFilter<VolumeSeriesType, ProjectionStackType, TFFTPrecision>::VerifyPreconditions()
ITKv5_CONST
ProjectionStackToFourDImageFilter<VolumeSeriesType, ProjectionStackType, TFFTPrecision>::VerifyPreconditions() const
{
this->Superclass::VerifyPreconditions();

Expand Down
2 changes: 1 addition & 1 deletion include/rtkRayConvexIntersectionImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class ITK_TEMPLATE_EXPORT RayConvexIntersectionImageFilter : public itk::InPlace

/** Checks that inputs are correctly set. */
void
VerifyPreconditions() ITKv5_CONST override;
VerifyPreconditions() const override;

/** Apply changes to the input image requested region. */
void
Expand Down
2 changes: 1 addition & 1 deletion include/rtkRayConvexIntersectionImageFilter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ RayConvexIntersectionImageFilter<TInputImage, TOutputImage>::BeforeThreadedGener

template <class TInputImage, class TOutputImage>
void
RayConvexIntersectionImageFilter<TInputImage, TOutputImage>::VerifyPreconditions() ITKv5_CONST
RayConvexIntersectionImageFilter<TInputImage, TOutputImage>::VerifyPreconditions() const
{
this->Superclass::VerifyPreconditions();

Expand Down
Loading

0 comments on commit 60b70b4

Please sign in to comment.