acts-project / detray

Test library for detector surface intersection
Mozilla Public License 2.0
10 stars 18 forks source link

ref: make protected member variables private and add the excplicit keyword to constructors #797

Closed niermann999 closed 1 month ago

niermann999 commented 1 month ago

Some general code cleanup:

This resulted in some further small refactoring:

In the propagator, I removed the universal reference completely, since the actor states are just a tuple of references and added an overload, which is easier to read. This meant, I had to use detray::tie and detray::get for the actor states.

In the multistore, I collapsed the copy and move versions of the insert methods to one implementation

For the ranges implementation I was finally able to remove all of the explicit copy/move constructor and assignment operators.