-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ENH: Miscellaneous fixes to developer files #316
ENH: Miscellaneous fixes to developer files #316
Conversation
Include the appropriate implementation file in the instantiation guard.
Fix the class name in the `ImageSource` source files.
Inherit `ImageSource` from `ProcessObject`: the class is meant to serve as a data source/generator, not a filter.
Make the include guards match the filenames.
From Programming in C++, Rules and Recommendations : The use of two underscores (`__') in identifiers is reserved for the compiler's internal use according to the ANSI-C standard. Following the change in ITK: InsightSoftwareConsortium/ITK@8e12072
Use the `ITK_DISALLOW_COPY_AND_MOVE` macro to enhance consistency across the the toolkit when disallowing the copy constructor and the assign operator. Move the `ITK_DISALLOW_COPY_AND_MOVE` calls to public section following the discussion in https://discourse.itk.org/t/noncopyable Following the change in ITK, e.g.: InsightSoftwareConsortium/ITK@b0f183b InsightSoftwareConsortium/ITK@10429ae InsightSoftwareConsortium/ITK@7d177ca
Use C++11 = default in .h file rather than definition in .hxx. Following the change in ITK, e.g.: InsightSoftwareConsortium/ITK@91ab86f
This check replaces default bodies of special member functions with = default;. The explicitly defaulted function declarations enable more opportunities in optimization, because the compiler might treat explicitly defaulted functions as trivial. Additionally, the C++11 use of = default more clearly expreses the intent for the special member functions. Following the change in ITK, e.g.: InsightSoftwareConsortium/ITK@5142ed7
Mark class destructors with `override`. Following the change in ITK, e.g.: InsightSoftwareConsortium/ITK@1daf218
Use typename instead of class in template definitions. Following the change in ITK, e.g.: InsightSoftwareConsortium/ITK@26d1e03
Add `const` smart pointer type alias to classes.
Not sure if these fix all the Left for discussion and a separate PR:
|
Not sure whether the Python linter has beein failing lately due to some library not being found: But this PR does not modify any Python file. |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this update and cleanup!
ImageSource
source filesImageSource
from ProcessObject`override
const
smart pointer type alias