Skip to content

Commit 4c08bd7

Browse files
authored
Merge pull request #32 from jhlegarreta/MoveDISALLOWCOPYANDASSIGNToPublicSection
COMP: Move ITK_DISALLOW_COPY_AND_ASSIGN calls to public section.
2 parents d24773c + 3f5cc4d commit 4c08bd7

6 files changed

+14
-17
lines changed

include/itkArrivalFunctionToPathFilter.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ template <class TFilter>
4242
class ArrivalFunctionToPathCommand : public itk::Command
4343
{
4444
public:
45+
ITK_DISALLOW_COPY_AND_ASSIGN(ArrivalFunctionToPathCommand);
46+
4547
/** Standard class type alias. */
4648
using Self = ArrivalFunctionToPathCommand;
4749
using Superclass = itk::Command;
@@ -82,8 +84,6 @@ class ArrivalFunctionToPathCommand : public itk::Command
8284
~ArrivalFunctionToPathCommand() override{}
8385

8486
private:
85-
ITK_DISALLOW_COPY_AND_ASSIGN(ArrivalFunctionToPathCommand);
86-
8787
typename FilterType::Pointer m_Filter;
8888
};
8989

@@ -143,6 +143,8 @@ class ITK_EXPORT ArrivalFunctionToPathFilter :
143143
public ImageToPathFilter<TInputImage,TOutputPath>
144144
{
145145
public:
146+
ITK_DISALLOW_COPY_AND_ASSIGN(ArrivalFunctionToPathFilter);
147+
146148
/** Standard class type alias. */
147149
using Self = ArrivalFunctionToPathFilter;
148150
using Superclass = ImageToPathFilter<TInputImage,TOutputPath>;
@@ -235,9 +237,6 @@ class ITK_EXPORT ArrivalFunctionToPathFilter :
235237
typename OptimizerType::MeasureType m_TerminationValue;
236238
std::vector<PointsContainerType> m_PointList;
237239
unsigned int m_CurrentOutput;
238-
239-
private:
240-
ITK_DISALLOW_COPY_AND_ASSIGN(ArrivalFunctionToPathFilter);
241240
};
242241

243242
} // end namespace itk

include/itkIterateNeighborhoodOptimizer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ class MinimalPathExtraction_EXPORT IterateNeighborhoodOptimizer :
4141
public SingleValuedNonLinearOptimizer
4242
{
4343
public:
44+
ITK_DISALLOW_COPY_AND_ASSIGN(IterateNeighborhoodOptimizer);
45+
4446
/** Standard class type alias. */
4547
using Self = IterateNeighborhoodOptimizer;
4648
using Superclass = SingleValuedNonLinearOptimizer;
@@ -108,8 +110,6 @@ class MinimalPathExtraction_EXPORT IterateNeighborhoodOptimizer :
108110
void PrintSelf(std::ostream& os, Indent indent) const override;
109111

110112
private:
111-
ITK_DISALLOW_COPY_AND_ASSIGN(IterateNeighborhoodOptimizer);
112-
113113
bool m_Stop;
114114
bool m_Maximize;
115115
bool m_FullyConnected;

include/itkPhysicalCentralDifferenceImageFunction.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ class ITK_EXPORT PhysicalCentralDifferenceImageFunction :
4747
TCoordRep >
4848
{
4949
public:
50+
ITK_DISALLOW_COPY_AND_ASSIGN(PhysicalCentralDifferenceImageFunction);
51+
5052
/** Dimension underlying input image. */
5153
static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
5254

@@ -136,8 +138,6 @@ class ITK_EXPORT PhysicalCentralDifferenceImageFunction :
136138
void PrintSelf(std::ostream& os, Indent indent) const override;
137139

138140
private:
139-
ITK_DISALLOW_COPY_AND_ASSIGN(PhysicalCentralDifferenceImageFunction);
140-
141141
typename InterpolateImageFunctionType::Pointer m_Interpolator;
142142

143143
};

include/itkSingleImageCostFunction.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ class ITK_EXPORT SingleImageCostFunction :
5353
public SingleValuedCostFunction
5454
{
5555
public:
56+
ITK_DISALLOW_COPY_AND_ASSIGN(SingleImageCostFunction);
57+
5658
/** Standard class type alias. */
5759
using Self = SingleImageCostFunction;
5860
using Superclass = SingleValuedCostFunction;
@@ -142,8 +144,6 @@ class ITK_EXPORT SingleImageCostFunction :
142144
void PrintSelf(std::ostream& os, Indent indent) const override;
143145

144146
private:
145-
ITK_DISALLOW_COPY_AND_ASSIGN(SingleImageCostFunction);
146-
147147
ImageConstPointer m_Image;
148148
typename InterpolatorType::Pointer m_Interpolator;
149149
typename GradientImageFunctionType::Pointer m_GradientImageFunction;

include/itkSpeedFunctionPathInformation.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ class SpeedFunctionPathInformation :
5353
public LightObject
5454
{
5555
public:
56+
ITK_DISALLOW_COPY_AND_ASSIGN(SpeedFunctionPathInformation);
57+
5658
/** Standard class type alias. */
5759
using Self = SpeedFunctionPathInformation;
5860
using Superclass = LightObject;
@@ -132,8 +134,6 @@ class SpeedFunctionPathInformation :
132134
V[0]=P;
133135
return(V);
134136
}
135-
private:
136-
ITK_DISALLOW_COPY_AND_ASSIGN(SpeedFunctionPathInformation);
137137
};
138138

139139

include/itkSpeedFunctionToPathFilter.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ class ITK_EXPORT SpeedFunctionToPathFilter :
6767
public ArrivalFunctionToPathFilter<TInputImage,TOutputPath>
6868
{
6969
public:
70+
ITK_DISALLOW_COPY_AND_ASSIGN(SpeedFunctionToPathFilter);
71+
7072
/** Standard class type alias. */
7173
using Self = SpeedFunctionToPathFilter;
7274
using Superclass = ArrivalFunctionToPathFilter<TInputImage,TOutputPath>;
@@ -170,10 +172,6 @@ class ITK_EXPORT SpeedFunctionToPathFilter :
170172

171173
std::vector< typename PathInformationType::Pointer > m_Information;
172174
InputImagePointer m_CurrentArrivalFunction;
173-
174-
private:
175-
ITK_DISALLOW_COPY_AND_ASSIGN(SpeedFunctionToPathFilter);
176-
177175
};
178176

179177
} // end namespace itk

0 commit comments

Comments
 (0)