-
Notifications
You must be signed in to change notification settings - Fork 35
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
Enable early termination of the tree traversal for spatial predicates #427
Conversation
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.
Two things that should be done:
- enforce either enum or void as return type
- prohibit using with BufferOptimization
@@ -20,6 +20,13 @@ | |||
|
|||
namespace ArborX | |||
{ | |||
|
|||
enum class CallbackTreeTraversalControl |
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.
Any opinion on the name of the enum? It might be less relevant with the BruteForce
data structure or a binning strategy.
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.
I would change it to CallbackControl
or similar, making it more general than just a tree.
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.
I don't like it because it does not indicate what it controls and could even mislead into thinking controls the callback.
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.
Not going to bikeshed, it's acceptable.
08c8d96
to
3cfa8d5
Compare
In TreeTraversal specialization for spatial predicates.
Callbacks that do not take an output functor as trailing argument.
Rebased and all builds are passing |
Implement #407