forked from arborx/ArborX
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify using APIv1 through APIv2 interface in BVH
Right now, it is inconvenient to get the old behavior. One has to write ```c++ ArborX::BVH<MemorySpace, ArborX::PairValueIndex<Box>> tree(space, ArborX::Experimental::attach_indices(boxes)); tree.query(space, queries, ArborX::LegacyDefaultCallback{}, indices, offsets); ``` The presence of the `LegacyDefaultCallback` is really annoying. This patch changes this. It automatically adds LegacyDefaultCallback if the following 3 conditions are satisfied: 1. A user does not provide a callback 2. The index is constructed on PairValueIndex 2. The output value_type matches the index_type in the PairValueIndex.
- Loading branch information
Showing
2 changed files
with
48 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters