|
ACTS
Experiment-independent tracking
|
Wrapper class for a navigation policy state stored in the state manager. More...
#include <Acts/Navigation/INavigationPolicy.hpp>
Public Member Functions | |
| template<typename T> | |
| T & | as () |
| Cast the state to a specific type. | |
| template<typename T> | |
| const T & | as () const |
| Cast the state to a specific type (const version). | |
| bool | empty () const |
| Check if the state is empty (not associated with a manager). | |
Wrapper class for a navigation policy state stored in the state manager.
This class provides type-safe access to the underlying state through the as<T>() method. The state is stored as a type-erased std::any in the NavigationPolicyStateManager.
| T & Acts::NavigationPolicyState::as | ( | ) |
Cast the state to a specific type.
| T | The type to cast to |
| const T & Acts::NavigationPolicyState::as | ( | ) | const |
Cast the state to a specific type (const version).
| T | The type to cast to |
| bool Acts::NavigationPolicyState::empty | ( | ) | const |
Check if the state is empty (not associated with a manager).