We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06e75a4 commit ee3e1f5Copy full SHA for ee3e1f5
1 file changed
Modules/Core/Common/include/itkMacro.h
@@ -1271,6 +1271,14 @@ compilers.
1271
ITK_MACROEND_NOOP_STATEMENT
1272
1273
1274
+// A useful macro in the PrintSelf method for printing member variables
1275
+// that require to be casted to the corresponding numeric value so that
1276
+// their numeric value gets printed.
1277
+#define itkPrintSelfNumericTraitsMacro(name, type) \
1278
+ os << indent << #name << ": " << static_cast<typename NumericTraits<type>::PrintType>(this->m_##name) << std::endl; \
1279
+ ITK_MACROEND_NOOP_STATEMENT
1280
+
1281
1282
/** Set a decorated output. This defines the Set"name"() and a Set"name"Output() method */
1283
#define itkSetDecoratedOutputMacro(name, type) \
1284
virtual void Set##name##Output(const SimpleDataObjectDecorator<type> * _arg) \
0 commit comments