Skip to content

Commit 4aba13d

Browse files
committed
ENH: Add const smart pointer type alias
Add `const` smart pointer type alias to classes.
1 parent 84afaf0 commit 4aba13d

11 files changed

+12
-0
lines changed

src/Developer/ImageFilter.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class ImageFilter : public ImageToImageFilter<TImage, TImage>
1414
using Self = ImageFilter;
1515
using Superclass = ImageToImageFilter<TImage, TImage>;
1616
using Pointer = SmartPointer<Self>;
17+
using ConstPointer = SmartPointer<const Self>;
1718

1819
/** Method for creation through the object factory. */
1920
itkNewMacro(Self);

src/Developer/ImageFilterMultipleInputsDifferentType.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class ImageFilterMultipleInputsDifferentType : public ImageToImageFilter<TImage,
1515
using Self = ImageFilterMultipleInputsDifferentType;
1616
using Superclass = ImageToImageFilter<TImage, TImage>;
1717
using Pointer = SmartPointer<Self>;
18+
using ConstPointer = SmartPointer<const Self>;
1819

1920
/** Method for creation through the object factory. */
2021
itkNewMacro(Self);

src/Developer/ImageFilterMultipleOutputs.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class ImageFilterMultipleOutputs : public ImageToImageFilter<TImage, TImage>
1414
using Self = ImageFilterMultipleOutputs;
1515
using Superclass = ImageToImageFilter<TImage, TImage>;
1616
using Pointer = SmartPointer<Self>;
17+
using ConstPointer = SmartPointer<const Self>;
1718

1819
/** Method for creation through the object factory. */
1920
itkNewMacro(Self);

src/Developer/ImageFilterMultipleOutputsDifferentType.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class ImageFilterMultipleOutputsDifferentType
1717
using Self = ImageFilterMultipleOutputsDifferentType;
1818
using Superclass = ImageToImageFilter<TInputImage, TOutputImage1>;
1919
using Pointer = SmartPointer<Self>;
20+
using ConstPointer = SmartPointer<const Self>;
2021

2122
/** Method for creation through the object factory. */
2223
itkNewMacro(Self);

src/Developer/ImageFilterX.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class ImageFilter : public ImageToImageFilter<TImage, TImage>
1515
using Self = ImageFilter;
1616
using Superclass = ImageToImageFilter<TImage, TImage>;
1717
using Pointer = SmartPointer<Self>;
18+
using ConstPointer = SmartPointer<const Self>;
1819

1920
/** Method for creation through the object factory. */
2021
itkNewMacro(Self);

src/Developer/ImageFilterY.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class ImageFilter : public ImageToImageFilter<TImage, TImage>
1717
using Self = ImageFilter;
1818
using Superclass = ImageToImageFilter<TImage, TImage>;
1919
using Pointer = SmartPointer<Self>;
20+
using ConstPointer = SmartPointer<const Self>;
2021

2122
/** Method for creation through the object factory. */
2223
itkNewMacro(Self);

src/Developer/ImageSource.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class ImageSource : public ProcessObject
1717
using Self = ImageSource;
1818
using Superclass = ProcessObject;
1919
using Pointer = SmartPointer<Self>;
20+
using ConstPointer = SmartPointer<const Self>;
2021

2122
/** Method for creation through the object factory. */
2223
itkNewMacro(Self);

src/Developer/MultiThreadedImageFilter.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class MultiThreadedImageFilter : public ImageToImageFilter<TImage, TImage>
1515
using Self = MultiThreadedImageFilter;
1616
using Superclass = ImageToImageFilter<TImage, TImage>;
1717
using Pointer = SmartPointer<Self>;
18+
using ConstPointer = SmartPointer<const Self>;
1819

1920
using OutputImageRegionType = typename Superclass::OutputImageRegionType;
2021

src/Developer/MyInPlaceImageFilter.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class MyInPlaceImageFilter : public InPlaceImageFilter<TImage>
1414
using Self = MyInPlaceImageFilter;
1515
using Superclass = InPlaceImageFilter<TImage>;
1616
using Pointer = SmartPointer<Self>;
17+
using ConstPointer = SmartPointer<const Self>;
1718

1819
/** Method for creation through the object factory. */
1920
itkNewMacro(Self);

src/Developer/itkImageFilterMultipleInputs.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class ImageFilterMultipleInputs : public ImageToImageFilter<TImage, TImage>
1414
using Self = ImageFilterMultipleInputs;
1515
using Superclass = ImageToImageFilter<TImage, TImage>;
1616
using Pointer = SmartPointer<Self>;
17+
using ConstPointer = SmartPointer<const Self>;
1718

1819
/** Method for creation through the object factory. */
1920
itkNewMacro(Self);

0 commit comments

Comments
 (0)