Skip to content

Commit

Permalink
STYLE: Add itkVirtualGetNameOfClassMacro + itkOverrideGetNameOfClassM…
Browse files Browse the repository at this point in the history
…acro

Added two new macro's, intended to replace the old 'itkTypeMacro' and
'itkTypeMacroNoParent'.

The main aim is to be clearer about what those macro's do: add a virtual
'GetNameOfClass()' member function and override it. Unlike 'itkTypeMacro',
'itkOverrideGetNameOfClassMacro' does not have a 'superclass' parameter, as it
was not used anyway.

Note that originally 'itkTypeMacro' did not use its 'superclass' parameter
either, looking at commit 699b66cb04d410e555656828e8892107add38ccb, Will
Schroeder, June 27, 2001:
https://github.com/InsightSoftwareConsortium/ITK/blob/699b66cb04d410e555656828e8892107add38ccb/Code/Common/itkMacro.h#L331-L337
  • Loading branch information
hjmjohnson committed Jan 27, 2025
1 parent 0b4f945 commit 38c25ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/itkProxTVImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class ProxTVImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
using ConstPointer = SmartPointer<const Self>;

/** Run-time type information. */
itkTypeMacro(ProxTVImageFilter, ImageToImageFilter);
itkOverrideGetNameOfClassMacro(ProxTVImageFilter);

/** Standard New macro. */
itkNewMacro(Self);
Expand Down

0 comments on commit 38c25ae

Please sign in to comment.