Skip to content

Commit

Permalink
STYLE: Replace itkTypeMacro calls with itkOverrideGetNameOfClassMacro
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Rit committed Jan 5, 2024
1 parent c79cfc5 commit 2f2f7e4
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/itkCudaDataManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ class CudaCommon_EXPORT GPUMemPointer : public Object
using ConstPointer = SmartPointer<const Self>;

itkNewMacro(Self);
#if ITK_VERSION_MINOR==3
itkTypeMacro(GPUMemPointer, Object);
#else
itkOverrideGetNameOfClassMacro(GPUMemPointer);
#endif

void
Allocate(size_t bufferSize)
Expand Down Expand Up @@ -131,7 +135,11 @@ class CudaCommon_EXPORT CudaDataManager : public Object
using ModifiedTimeType = unsigned long;

itkNewMacro(Self);
#if ITK_VERSION_MINOR==3
itkTypeMacro(CudaDataManager, Object);
#else
itkOverrideGetNameOfClassMacro(CudaDataManager);
#endif

/** total buffer size in bytes */
void
Expand Down
4 changes: 4 additions & 0 deletions include/itkCudaImage.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ class ITK_TEMPLATE_EXPORT CudaImage : public Image<TPixel, VImageDimension>

itkNewMacro(Self);

#if ITK_VERSION_MINOR==3
itkTypeMacro(CudaImage, Image);
#else
itkOverrideGetNameOfClassMacro(CudaImage);
#endif

static constexpr unsigned int ImageDimension = VImageDimension;

Expand Down
4 changes: 4 additions & 0 deletions include/itkCudaImageDataManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ class ITK_TEMPLATE_EXPORT CudaImageDataManager : public CudaDataManager
using SizeType = typename ImageType::SizeType;

itkNewMacro(Self);
#if ITK_VERSION_MINOR==3
itkTypeMacro(CudaImageDataManager, CudaDataManager);
#else
itkOverrideGetNameOfClassMacro(CudaImageDataManager);
#endif

itkGetModifiableObjectMacro(GPUBufferedRegionIndex, CudaDataManager);
itkGetModifiableObjectMacro(GPUBufferedRegionSize, CudaDataManager);
Expand Down
4 changes: 4 additions & 0 deletions include/itkCudaImageToImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ class ITK_TEMPLATE_EXPORT CudaImageToImageFilter : public TParentImageFilter
itkNewMacro(Self);

/** Run-time type information (and related methods). */
#if ITK_VERSION_MINOR==3
itkTypeMacro(CudaImageToImageFilter, TParentImageFilter);
#else
itkOverrideGetNameOfClassMacro(CudaImageToImageFilter);
#endif

/** Superclass type alias. */
using DataObjectIdentifierType = typename Superclass::DataObjectIdentifierType;
Expand Down
4 changes: 4 additions & 0 deletions include/itkCudaInPlaceImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ class ITK_TEMPLATE_EXPORT CudaInPlaceImageFilter
using ConstPointer = SmartPointer<const Self>;

/** Run-time type information (and related methods). */
#if ITK_VERSION_MINOR==3
itkTypeMacro(CudaInPlaceImageFilter, CudaImageToImageFilter);
#else
itkOverrideGetNameOfClassMacro(CudaInPlaceImageFilter);
#endif

/** Superclass type alias. */
using OutputImageType = typename GPUSuperclass::OutputImageType;
Expand Down
4 changes: 4 additions & 0 deletions include/itkCudaSquareImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ class ITK_TEMPLATE_EXPORT CudaSquareImageFilter : public CudaImageToImageFilter<
itkNewMacro(Self);

/** Run-time type information (and related methods). */
#if ITK_VERSION_MINOR==3
itkTypeMacro(CudaSquareImageFilter, CudaImageToImageFilter);
#else
itkOverrideGetNameOfClassMacro(CudaSquareImageFilter);
#endif

ITK_DISALLOW_COPY_AND_MOVE(CudaSquareImageFilter);

Expand Down

0 comments on commit 2f2f7e4

Please sign in to comment.