|
ACTS
Experiment-independent tracking
|
Manager class for navigation policy states. More...
#include <Acts/Navigation/INavigationPolicy.hpp>
Public Member Functions | |
| NavigationPolicyState | currentState () |
| Get the current (top) state from the stack. | |
| void | popState () |
| Remove the current state from the stack. | |
| template<typename T, typename... Args> | |
| T & | pushState (Args &&... args) |
| Push a new state onto the stack and construct it in-place. | |
| void | reset () |
| Completely reset the state manager by clearing the stack. | |
Manager class for navigation policy states.
Maintains a stack of type-erased states and provides access to the current state. Navigation policies use this manager to push and pop their states during navigation.
| NavigationPolicyState Acts::NavigationPolicyStateManager::currentState | ( | ) |
Get the current (top) state from the stack.
| void Acts::NavigationPolicyStateManager::popState | ( | ) |
Remove the current state from the stack.
| std::runtime_error | if the stack is empty |
| T & Acts::NavigationPolicyStateManager::pushState | ( | Args &&... | args | ) |
Push a new state onto the stack and construct it in-place.
| T | The type of state to create |
| Args | The types of the constructor arguments |
| args | Arguments to forward to the state constructor |