Skip to content

Commit 1d9bb8d

Browse files
STYLE: Use Macro for Function Deletion
1 parent 6b7b917 commit 1d9bb8d

6 files changed

+7
-14
lines changed

include/itkArrivalFunctionToPathFilter.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,7 @@ class ArrivalFunctionToPathCommand : public itk::Command
8282
~ArrivalFunctionToPathCommand(){}
8383

8484
private:
85-
ArrivalFunctionToPathCommand( const Self& );
86-
void operator = ( const Self& );
85+
ITK_DISALLOW_COPY_AND_ASSIGN(ArrivalFunctionToPathCommand);
8786

8887
typename FilterType::Pointer m_Filter;
8988
};
@@ -236,8 +235,7 @@ class ITK_EXPORT ArrivalFunctionToPathFilter :
236235
unsigned int m_CurrentOutput;
237236

238237
private:
239-
ArrivalFunctionToPathFilter(const Self&); //purposely not implemented
240-
void operator=(const Self&); //purposely not implemented
238+
ITK_DISALLOW_COPY_AND_ASSIGN(ArrivalFunctionToPathFilter);
241239
};
242240

243241
} // end namespace itk

include/itkIterateNeighborhoodOptimizer.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,7 @@ class MinimalPathExtraction_EXPORT IterateNeighborhoodOptimizer :
108108
void PrintSelf(std::ostream& os, Indent indent) const ITK_OVERRIDE;
109109

110110
private:
111-
IterateNeighborhoodOptimizer(const Self&); //purposely not implemented
112-
void operator=(const Self&); //purposely not implemented
111+
ITK_DISALLOW_COPY_AND_ASSIGN(IterateNeighborhoodOptimizer);
113112

114113
bool m_Stop;
115114
bool m_Maximize;

include/itkPhysicalCentralDifferenceImageFunction.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,7 @@ class ITK_EXPORT PhysicalCentralDifferenceImageFunction :
138138
void PrintSelf(std::ostream& os, Indent indent) const ITK_OVERRIDE;
139139

140140
private:
141-
PhysicalCentralDifferenceImageFunction( const Self& ); //purposely not implemented
142-
void operator=( const Self& ); //purposely not implemented
141+
ITK_DISALLOW_COPY_AND_ASSIGN(PhysicalCentralDifferenceImageFunction);
143142

144143
typename InterpolateImageFunctionType::Pointer m_Interpolator;
145144

include/itkSingleImageCostFunction.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,7 @@ class ITK_EXPORT SingleImageCostFunction :
134134
void PrintSelf(std::ostream& os, Indent indent) const ITK_OVERRIDE;
135135

136136
private:
137-
SingleImageCostFunction(const Self&); //purposely not implemented
138-
void operator=(const Self&); //purposely not implemented
137+
ITK_DISALLOW_COPY_AND_ASSIGN(SingleImageCostFunction);
139138

140139
ImageConstPointer m_Image;
141140
typename InterpolatorType::Pointer m_Interpolator;

include/itkSpeedFunctionPathInformation.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,7 @@ class SpeedFunctionPathInformation :
101101

102102

103103
private:
104-
SpeedFunctionPathInformation( const Self& ); //purposely not implemented
105-
void operator=( const Self& ); //purposely not implemented
104+
ITK_DISALLOW_COPY_AND_ASSIGN(SpeedFunctionPathInformation);
106105
};
107106

108107

include/itkSpeedFunctionToPathFilter.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,7 @@ class ITK_EXPORT SpeedFunctionToPathFilter :
169169
InputImagePointer m_CurrentArrivalFunction;
170170

171171
private:
172-
SpeedFunctionToPathFilter( const Self& ); //purposely not implemented
173-
void operator=( const Self& ); //purposely not implemented
172+
ITK_DISALLOW_COPY_AND_ASSIGN(SpeedFunctionToPathFilter);
174173

175174
};
176175

0 commit comments

Comments
 (0)