Skip to content

Commit

Permalink
Move ITK_DISSALLOW_COPY_AND_ASSIGN to public
Browse files Browse the repository at this point in the history
Using:

https://gist.github.com/N-Dekker/a46cd003f19a84c6d285c2487fc5e13d#file-move_disallow_copy_to_public_section-cpp

with:

```bash
g++ Move_DISALLOW_COPY_to_public_section.cpp -lstdc++fs
```
```bash
clang++ Move_DISALLOW_COPY_to_public_section.cpp -lstdc++fs
```
  • Loading branch information
phcerdan committed Mar 28, 2018
1 parent b1c04cb commit 3702105
Show file tree
Hide file tree
Showing 28 changed files with 56 additions and 56 deletions.
4 changes: 2 additions & 2 deletions include/itkExpandWithZerosImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ class ExpandWithZerosImageFilter:
public ImageToImageFilter< TInputImage, TOutputImage >
{
public:
ITK_DISALLOW_COPY_AND_ASSIGN(ExpandWithZerosImageFilter);

/** Standard class type alias. */
using Self = ExpandWithZerosImageFilter;
using Superclass = ImageToImageFilter< TInputImage, TOutputImage >;
Expand Down Expand Up @@ -149,8 +151,6 @@ class ExpandWithZerosImageFilter:
void BeforeThreadedGenerateData() override;

private:
ITK_DISALLOW_COPY_AND_ASSIGN(ExpandWithZerosImageFilter);

ExpandFactorsType m_ExpandFactors;
};
} // end namespace itk
Expand Down
3 changes: 2 additions & 1 deletion include/itkFFTPadPositiveIndexImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ class FFTPadPositiveIndexImageFilter:
public ImageToImageFilter<TInputImage, TOutputImage>
{
public:
ITK_DISALLOW_COPY_AND_ASSIGN(FFTPadPositiveIndexImageFilter);

/** Standard class type alias. */
using Self = FFTPadPositiveIndexImageFilter;
using Superclass = ImageToImageFilter<TInputImage, TOutputImage>;
Expand Down Expand Up @@ -112,7 +114,6 @@ class FFTPadPositiveIndexImageFilter:
void GenerateData() override;

private:
ITK_DISALLOW_COPY_AND_ASSIGN(FFTPadPositiveIndexImageFilter);
typename FFTPadFilterType::Pointer m_FFTPadFilter;
typename ChangeInfoFilterType::Pointer m_ChangeInfoFilter;
SizeValueType m_SizeGreatestPrimeFactor;
Expand Down
4 changes: 2 additions & 2 deletions include/itkFrequencyBandImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ class FrequencyBandImageFilter:
public ImageToImageFilter<TImageType, TImageType>
{
public:
ITK_DISALLOW_COPY_AND_ASSIGN(FrequencyBandImageFilter);

/** Standard class type alias. */
using Self = FrequencyBandImageFilter;
using Superclass = ImageToImageFilter<TImageType, TImageType>;
Expand Down Expand Up @@ -184,8 +186,6 @@ class FrequencyBandImageFilter:
ThreadIdType threadId) override;

private:
ITK_DISALLOW_COPY_AND_ASSIGN(FrequencyBandImageFilter);

FrequencyValueType m_LowFrequencyThreshold;
FrequencyValueType m_HighFrequencyThreshold;

Expand Down
4 changes: 2 additions & 2 deletions include/itkFrequencyExpandImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ class FrequencyExpandImageFilter:
public ImageToImageFilter< TImageType, TImageType >
{
public:
ITK_DISALLOW_COPY_AND_ASSIGN(FrequencyExpandImageFilter);

/** Standard class type alias. */
using Self = FrequencyExpandImageFilter;
using Superclass = ImageToImageFilter<TImageType, TImageType>;
Expand Down Expand Up @@ -167,8 +169,6 @@ class FrequencyExpandImageFilter:
void GenerateData() override;

private:
ITK_DISALLOW_COPY_AND_ASSIGN(FrequencyExpandImageFilter);

ExpandFactorsType m_ExpandFactors;
};
} // end namespace itk
Expand Down
4 changes: 2 additions & 2 deletions include/itkFrequencyExpandViaInverseFFTImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ class FrequencyExpandViaInverseFFTImageFilter:
public ImageToImageFilter< TImageType, TImageType >
{
public:
ITK_DISALLOW_COPY_AND_ASSIGN(FrequencyExpandViaInverseFFTImageFilter);

/** Standard class type alias. */
using Self = FrequencyExpandViaInverseFFTImageFilter;
using Superclass = ImageToImageFilter<TImageType, TImageType>;
Expand Down Expand Up @@ -122,8 +124,6 @@ class FrequencyExpandViaInverseFFTImageFilter:
void GenerateData() override;

private:
ITK_DISALLOW_COPY_AND_ASSIGN(FrequencyExpandViaInverseFFTImageFilter);

ExpandFactorsType m_ExpandFactors;
typename InverseFFTFilterType::Pointer m_InverseFFT;
typename ForwardFFTFilterType::Pointer m_ForwardFFT;
Expand Down
5 changes: 2 additions & 3 deletions include/itkFrequencyFunction.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ class FrequencyFunction:
public SpatialFunction< TFunctionValue, VImageDimension, TInput >
{
public:
ITK_DISALLOW_COPY_AND_ASSIGN(FrequencyFunction);

/** Standard class type alias. */
using Self = FrequencyFunction;
using Superclass = SpatialFunction< TFunctionValue, VImageDimension, TInput >;
Expand Down Expand Up @@ -70,9 +72,6 @@ class FrequencyFunction:
{
Superclass::PrintSelf(os, indent);
}

private:
ITK_DISALLOW_COPY_AND_ASSIGN(FrequencyFunction);
};
} // end namespace itk

Expand Down
4 changes: 2 additions & 2 deletions include/itkFrequencyShrinkImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ class FrequencyShrinkImageFilter:
public ImageToImageFilter<TImageType, TImageType>
{
public:
ITK_DISALLOW_COPY_AND_ASSIGN(FrequencyShrinkImageFilter);

/** Standard class type alias. */
using Self = FrequencyShrinkImageFilter;
using Superclass = ImageToImageFilter<TImageType, TImageType>;
Expand Down Expand Up @@ -146,8 +148,6 @@ class FrequencyShrinkImageFilter:
void GenerateData() override;

private:
ITK_DISALLOW_COPY_AND_ASSIGN(FrequencyShrinkImageFilter);

ShrinkFactorsType m_ShrinkFactors;
bool m_ApplyBandFilter;
typename FrequencyBandFilterType::Pointer m_FrequencyBandFilter;
Expand Down
4 changes: 2 additions & 2 deletions include/itkFrequencyShrinkViaInverseFFTImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ class FrequencyShrinkViaInverseFFTImageFilter:
public ImageToImageFilter<TImageType, TImageType>
{
public:
ITK_DISALLOW_COPY_AND_ASSIGN(FrequencyShrinkViaInverseFFTImageFilter);

/** Standard class type alias. */
using Self = FrequencyShrinkViaInverseFFTImageFilter;
using Superclass = ImageToImageFilter<TImageType, TImageType>;
Expand Down Expand Up @@ -111,8 +113,6 @@ class FrequencyShrinkViaInverseFFTImageFilter:
void GenerateData() override;

private:
ITK_DISALLOW_COPY_AND_ASSIGN(FrequencyShrinkViaInverseFFTImageFilter);

ShrinkFactorsType m_ShrinkFactors;
typename InverseFFTFilterType::Pointer m_InverseFFT;
typename ForwardFFTFilterType::Pointer m_ForwardFFT;
Expand Down
4 changes: 2 additions & 2 deletions include/itkHeldIsotropicWavelet.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ class HeldIsotropicWavelet:
public IsotropicWaveletFrequencyFunction< TFunctionValue, VImageDimension, TInput >
{
public:
ITK_DISALLOW_COPY_AND_ASSIGN(HeldIsotropicWavelet);

/** Standard class type alias. */
using Self = HeldIsotropicWavelet;
using Superclass = IsotropicWaveletFrequencyFunction< TFunctionValue, VImageDimension, TInput >;
Expand Down Expand Up @@ -83,8 +85,6 @@ class HeldIsotropicWavelet:
void PrintSelf(std::ostream & os, Indent indent) const override;

private:
ITK_DISALLOW_COPY_AND_ASSIGN(HeldIsotropicWavelet);

/** The order of the polynom. */
unsigned int m_PolynomialOrder;
};
Expand Down
5 changes: 2 additions & 3 deletions include/itkIsotropicFrequencyFunction.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ class IsotropicFrequencyFunction:
public FrequencyFunction< TFunctionValue, VImageDimension, TInput >
{
public:
ITK_DISALLOW_COPY_AND_ASSIGN(IsotropicFrequencyFunction);

/** Standard class type alias. */
using Self = IsotropicFrequencyFunction;
using Superclass = FrequencyFunction< TFunctionValue, VImageDimension, TInput >;
Expand Down Expand Up @@ -88,9 +90,6 @@ class IsotropicFrequencyFunction:
{
Superclass::PrintSelf(os, indent);
}

private:
ITK_DISALLOW_COPY_AND_ASSIGN(IsotropicFrequencyFunction);
};
} // end namespace itk

Expand Down
5 changes: 2 additions & 3 deletions include/itkIsotropicWaveletFrequencyFunction.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ class IsotropicWaveletFrequencyFunction:
public IsotropicFrequencyFunction< TFunctionValue, VImageDimension, TInput >
{
public:
ITK_DISALLOW_COPY_AND_ASSIGN(IsotropicWaveletFrequencyFunction);

/** Standard class type alias. */
using Self = IsotropicWaveletFrequencyFunction;
using Superclass = IsotropicFrequencyFunction< TFunctionValue, VImageDimension, TInput >;
Expand Down Expand Up @@ -116,9 +118,6 @@ class IsotropicWaveletFrequencyFunction:

unsigned int m_HighPassSubBands;
FunctionValueType m_FreqCutOff;

private:
ITK_DISALLOW_COPY_AND_ASSIGN(IsotropicWaveletFrequencyFunction);
};
} // end namespace itk

Expand Down
3 changes: 2 additions & 1 deletion include/itkMonogenicSignalFrequencyImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ class MonogenicSignalFrequencyImageFilter:
TInputImage::ImageDimension> >
{
public:
ITK_DISALLOW_COPY_AND_ASSIGN(MonogenicSignalFrequencyImageFilter);

/** Standard class type alias. */
using Self = MonogenicSignalFrequencyImageFilter;
using Superclass = ImageToImageFilter< TInputImage, VectorImage<typename TInputImage::PixelType,
Expand Down Expand Up @@ -95,7 +97,6 @@ class MonogenicSignalFrequencyImageFilter:
ThreadIdType threadId) override;

private:
ITK_DISALLOW_COPY_AND_ASSIGN(MonogenicSignalFrequencyImageFilter);
RieszFunctionPointer m_Evaluator;
};
} // end namespace itk
Expand Down
5 changes: 2 additions & 3 deletions include/itkPhaseAnalysisImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ class PhaseAnalysisImageFilter:
public ImageToImageFilter< TInputImage, TOutputImage >
{
public:
ITK_DISALLOW_COPY_AND_ASSIGN(PhaseAnalysisImageFilter);

/** Standard class type alias. */
using Self = PhaseAnalysisImageFilter;
using Superclass = ImageToImageFilter<TInputImage, TOutputImage >;
Expand Down Expand Up @@ -176,9 +178,6 @@ class PhaseAnalysisImageFilter:
}
return out;
}

private:
ITK_DISALLOW_COPY_AND_ASSIGN(PhaseAnalysisImageFilter);
};
} // end namespace itk
#ifndef ITK_MANUAL_INSTANTIATION
Expand Down
3 changes: 2 additions & 1 deletion include/itkPhaseAnalysisSoftThresholdImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ class PhaseAnalysisSoftThresholdImageFilter:
public PhaseAnalysisImageFilter< TInputImage, TOutputImage >
{
public:
ITK_DISALLOW_COPY_AND_ASSIGN(PhaseAnalysisSoftThresholdImageFilter);

/** Standard class type alias. */
using Self = PhaseAnalysisSoftThresholdImageFilter;
using Superclass = PhaseAnalysisImageFilter<TInputImage, TOutputImage >;
Expand Down Expand Up @@ -107,7 +109,6 @@ class PhaseAnalysisSoftThresholdImageFilter:
ThreadIdType threadId) override;

private:
ITK_DISALLOW_COPY_AND_ASSIGN(PhaseAnalysisSoftThresholdImageFilter);
bool m_ApplySoftThreshold;
OutputImagePixelType m_NumOfSigmas;
OutputImagePixelType m_MeanAmp;
Expand Down
3 changes: 2 additions & 1 deletion include/itkRieszFrequencyFilterBankGenerator.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ class RieszFrequencyFilterBankGenerator:
public itk::GenerateImageSource< TOutputImage >
{
public:
ITK_DISALLOW_COPY_AND_ASSIGN(RieszFrequencyFilterBankGenerator);

/** Standard type alias */
using Self = RieszFrequencyFilterBankGenerator;
using Superclass = itk::GenerateImageSource<TOutputImage>;
Expand Down Expand Up @@ -116,7 +118,6 @@ class RieszFrequencyFilterBankGenerator:
void GenerateData() override;

private:
ITK_DISALLOW_COPY_AND_ASSIGN(RieszFrequencyFilterBankGenerator);
unsigned int m_Order;
RieszFunctionPointer m_Evaluator;
}; // end of class
Expand Down
3 changes: 2 additions & 1 deletion include/itkRieszFrequencyFunction.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ class RieszFrequencyFunction:
public FrequencyFunction< TFunctionValue, VImageDimension, TInput >
{
public:
ITK_DISALLOW_COPY_AND_ASSIGN(RieszFrequencyFunction);

/** Standard class type alias. */
using Self = RieszFrequencyFunction;
using Superclass = SpatialFunction< TFunctionValue, VImageDimension, TInput >;
Expand Down Expand Up @@ -196,7 +198,6 @@ class RieszFrequencyFunction:
void PrintSelf(std::ostream & os, Indent indent) const override;

private:
ITK_DISALLOW_COPY_AND_ASSIGN(RieszFrequencyFunction);
unsigned int m_Order;
SetType m_Indices;
};
Expand Down
5 changes: 2 additions & 3 deletions include/itkShannonIsotropicWavelet.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ class ShannonIsotropicWavelet:
public IsotropicWaveletFrequencyFunction< TFunctionValue, VImageDimension, TInput >
{
public:
ITK_DISALLOW_COPY_AND_ASSIGN(ShannonIsotropicWavelet);

/** Standard class type alias. */
using Self = ShannonIsotropicWavelet;
using Superclass = IsotropicWaveletFrequencyFunction< TFunctionValue, VImageDimension, TInput >;
Expand All @@ -73,9 +75,6 @@ class ShannonIsotropicWavelet:
ShannonIsotropicWavelet();
~ShannonIsotropicWavelet() override;
void PrintSelf(std::ostream & os, Indent indent) const override;

private:
ITK_DISALLOW_COPY_AND_ASSIGN(ShannonIsotropicWavelet);
};
} // end namespace itk

Expand Down
4 changes: 2 additions & 2 deletions include/itkShrinkDecimateImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ class ShrinkDecimateImageFilter:
public ImageToImageFilter<TInputImage, TOutputImage>
{
public:
ITK_DISALLOW_COPY_AND_ASSIGN(ShrinkDecimateImageFilter);

/** Standard class type alias. */
using Self = ShrinkDecimateImageFilter;
using Superclass = ImageToImageFilter<TInputImage, TOutputImage>;
Expand Down Expand Up @@ -111,8 +113,6 @@ class ShrinkDecimateImageFilter:
ThreadIdType threadId ) override;

private:
ITK_DISALLOW_COPY_AND_ASSIGN(ShrinkDecimateImageFilter);

ShrinkFactorsType m_ShrinkFactors;

/** Round different pixel types. */
Expand Down
5 changes: 2 additions & 3 deletions include/itkSimoncelliIsotropicWavelet.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ class SimoncelliIsotropicWavelet:
public IsotropicWaveletFrequencyFunction< TFunctionValue, VImageDimension, TInput >
{
public:
ITK_DISALLOW_COPY_AND_ASSIGN(SimoncelliIsotropicWavelet);

/** Standard class type alias. */
using Self = SimoncelliIsotropicWavelet;
using Superclass = IsotropicWaveletFrequencyFunction< TFunctionValue, VImageDimension, TInput >;
Expand All @@ -78,9 +80,6 @@ class SimoncelliIsotropicWavelet:
SimoncelliIsotropicWavelet();
~SimoncelliIsotropicWavelet() override;
void PrintSelf(std::ostream & os, Indent indent) const override;

private:
ITK_DISALLOW_COPY_AND_ASSIGN(SimoncelliIsotropicWavelet);
};
} // end namespace itk

Expand Down
3 changes: 2 additions & 1 deletion include/itkStructureTensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ class StructureTensor:
public ImageToImageFilter< TInputImage, TOutputImage >
{
public:
ITK_DISALLOW_COPY_AND_ASSIGN(StructureTensor);

/** Some convenient type alias. */
/** Standard class type alias. */
using Self = StructureTensor;
Expand Down Expand Up @@ -200,7 +202,6 @@ class StructureTensor:
}

private:
ITK_DISALLOW_COPY_AND_ASSIGN(StructureTensor);
unsigned int m_GaussianWindowRadius;
FloatType m_GaussianWindowSigma;
typename GaussianSourceType::Pointer m_GaussianSource;
Expand Down
5 changes: 2 additions & 3 deletions include/itkVectorInverseFFTImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ class VectorInverseFFTImageFilter:
public ImageToImageFilter< TInputImage, TOutputImage >
{
public:
ITK_DISALLOW_COPY_AND_ASSIGN(VectorInverseFFTImageFilter);

/** Standard class type alias. */
using InputImageType = TInputImage;
using InputPixelType = typename InputImageType::PixelType;
Expand Down Expand Up @@ -73,9 +75,6 @@ class VectorInverseFFTImageFilter:
void GenerateData() override;

void PrintSelf(std::ostream & os, Indent indent) const override;

private:
ITK_DISALLOW_COPY_AND_ASSIGN(VectorInverseFFTImageFilter);
};
} // end namespace itk
#ifndef ITK_MANUAL_INSTANTIATION
Expand Down
4 changes: 2 additions & 2 deletions include/itkVowIsotropicWavelet.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ class VowIsotropicWavelet:
public IsotropicWaveletFrequencyFunction< TFunctionValue, VImageDimension, TInput >
{
public:
ITK_DISALLOW_COPY_AND_ASSIGN(VowIsotropicWavelet);

/** Standard class type alias. */
using Self = VowIsotropicWavelet;
using Superclass = IsotropicWaveletFrequencyFunction< TFunctionValue, VImageDimension, TInput >;
Expand Down Expand Up @@ -86,8 +88,6 @@ class VowIsotropicWavelet:
void PrintSelf(std::ostream & os, Indent indent) const override;

private:
ITK_DISALLOW_COPY_AND_ASSIGN(VowIsotropicWavelet);

/** kappa value, default is optimal:0.75 */
FunctionValueType m_Kappa;
};
Expand Down
Loading

0 comments on commit 3702105

Please sign in to comment.