|
ACTS
Experiment-independent tracking
|
Combined navigation policy that calls all contained other navigation policies. More...
#include <Acts/Navigation/MultiNavigationPolicy.hpp>
Public Member Functions | |
| template<typename... Policies> | |
| MultiNavigationPolicy (std::unique_ptr< Policies >... policies) | |
| Constructor from multiple unique_ptr policies. | |
| MultiNavigationPolicy (std::vector< std::unique_ptr< INavigationPolicy > > &&policies) | |
| Constructor from a vector of navigation policies. | |
| void | connect (NavigationDelegate &delegate) const override |
| Connect this policy to a navigation delegate. | |
| std::span< const std::unique_ptr< INavigationPolicy > > | policies () const |
| Access the contained navigation policies. | |
| void | visit (const std::function< void(const INavigationPolicy &)> &visitor) const override |
| Visit this policy first, and then all child policies one by one. | |
| Public Member Functions inherited from Acts::INavigationPolicy | |
| virtual | ~INavigationPolicy ()=default |
| Virtual destructor so policies can be held through this base class. | |
Additional Inherited Members | |
| Static Public Member Functions inherited from Acts::INavigationPolicy | |
| static void | noopInitializeCandidates (const GeometryContext &, const NavigationArguments &, const AppendOnlyNavigationStream &, const Logger &) |
| Noop update function that is suitable as a default for default navigation delegates. | |
| Protected Member Functions inherited from Acts::INavigationPolicy | |
| template<NavigationPolicyConcept T> | |
| void | connectDefault (NavigationDelegate &delegate) const |
| Internal helper function for derived classes that conform to the concept and have a conventional updateState method. | |
Combined navigation policy that calls all contained other navigation policies.
This class manages multiple navigation policies and executes them sequentially to populate the navigation stream with candidates.
|
explicit |
Constructor from multiple unique_ptr policies.
| Policies | The types of the navigation policies |
| policies | Unique pointers to navigation policies |
|
explicit |
Constructor from a vector of navigation policies.
| policies | Vector of unique pointers to navigation policies |
|
overridevirtual |
Connect this policy to a navigation delegate.
| delegate | The navigation delegate to connect to |
Implements Acts::INavigationPolicy.
| std::span< const std::unique_ptr< INavigationPolicy > > Acts::MultiNavigationPolicy::policies | ( | ) | const |
Access the contained navigation policies.
|
overridevirtual |
Visit this policy first, and then all child policies one by one.
| visitor | The function to call for each policy |
Reimplemented from Acts::INavigationPolicy.