-
Notifications
You must be signed in to change notification settings - Fork 157
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
refactor: Define interface for generators #919
Conversation
Codecov Report
@@ Coverage Diff @@
## main #919 +/- ##
=======================================
Coverage 48.46% 48.46%
=======================================
Files 334 334
Lines 17067 17067
Branches 8074 8074
=======================================
Hits 8271 8271
Misses 3094 3094
Partials 5702 5702 Continue to review full report at Codecov.
|
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.
Looks nice. I have just one minor comment.
Examples/Algorithms/Generators/ActsExamples/Generators/EventGenerator.hpp
Show resolved
Hide resolved
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.
@paulgessinger Thank you for the changes. Approved.
This is driven by the python binding implementation. std::function has the downside of making pybind11 do a round trip through python. This interface is equivalent, but slightly more complex. I think it's still acceptable.
This reverts commit be060ab.
d838216
to
b877ab0
Compare
@XiaocongAi can you reapprove? |
This is driven by the python binding implementation. std::function has
the downside of making pybind11 do a round trip through python. This
interface is equivalent, but slightly more complex. I think it's still
acceptable.