-
Notifications
You must be signed in to change notification settings - Fork 19
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
Put detector in navigator_state #293
Put detector in navigator_state #293
Conversation
…tector-into-state
@niermann999 PR is ready |
vector_type<intersection_type> candidates) | ||
: _detector(&det), _candidates(candidates) {} | ||
|
||
/// Scalar representation of the navigation state, |
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.
Could you please update the comments?
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.
OK
@@ -410,8 +414,9 @@ class navigator { | |||
DETRAY_HOST_DEVICE inline bool init(propagator_state_t &propagation) const { | |||
|
|||
state &navigation = propagation._navigation; | |||
const auto &det = navigation.detector(); |
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.
Does this return a reference to a pointer? I am wondering, does simply using const auto
make things easier or does that break something?
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.
You are right :p That was dumb.
Depends on #291
This PR moves detector pointer from navigator to its state