Skip to content

STYLE: Add itkVirtualGetNameOfClassMacro + itkOverrideGetNameOfClassMacro#1313

Closed
hjmjohnson wants to merge 0 commit intomainfrom
update-to-new-macros
Closed

STYLE: Add itkVirtualGetNameOfClassMacro + itkOverrideGetNameOfClassMacro#1313
hjmjohnson wants to merge 0 commit intomainfrom
update-to-new-macros

Conversation

@hjmjohnson
Copy link
Member

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

@hjmjohnson hjmjohnson closed this Mar 16, 2025
@hjmjohnson hjmjohnson force-pushed the update-to-new-macros branch from d9932e6 to 54aac6c Compare March 16, 2025 16:51
@hjmjohnson hjmjohnson deleted the update-to-new-macros branch March 16, 2025 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant