|
ACTS
Experiment-independent tracking
|
Utility class that eases accessing dynamic columns in track and track state containers. More...
#include <Acts/EventData/ProxyAccessor.hpp>
Public Member Functions | |
| constexpr | ProxyAccessorBase (const std::string &_key) |
| Create the accessor from a string key. | |
| constexpr | ProxyAccessorBase (HashedString _key) |
| Create the accessor from an already-hashed string key. | |
| template<detail::ProxyType proxy_t> | |
| bool | hasColumn (proxy_t proxy) const |
| Check if the stored key exists on the proxy given as an argument. | |
| template<detail::ProxyType proxy_t> requires (ReadOnly) | |
| const T & | operator() (proxy_t proxy) const |
| Access the stored key on the proxy given as an argument. | |
| template<detail::MutableProxyType proxy_t> requires (!ReadOnly) | |
| T & | operator() (proxy_t proxy) const |
| Access the stored key on the proxy given as an argument. | |
Public Attributes | |
| HashedString | key |
| Hashed string key for data access. | |
Utility class that eases accessing dynamic columns in track and track state containers.
| T | the type of the value to access |
| ReadOnly | true if this is a const accessor |
|
explicitconstexpr |
Create the accessor from an already-hashed string key.
| _key | the key |
|
explicitconstexpr |
Create the accessor from a string key.
| _key | the key |
| bool Acts::ProxyAccessorBase< T, ReadOnly >::hasColumn | ( | proxy_t | proxy | ) | const |
Check if the stored key exists on the proxy given as an argument.
| proxy_t | the type of the proxy |
| proxy | the proxy object to check |
| const T & Acts::ProxyAccessorBase< T, ReadOnly >::operator() | ( | proxy_t | proxy | ) | const |
Access the stored key on the proxy given as an argument.
Const version
| proxy_t | the type of the track proxy |
| proxy | the proxy to access |
| T & Acts::ProxyAccessorBase< T, ReadOnly >::operator() | ( | proxy_t | proxy | ) | const |
Access the stored key on the proxy given as an argument.
Mutable version
| proxy_t | the type of the proxy |
| proxy | the proxy object to access |
| HashedString Acts::ProxyAccessorBase< T, ReadOnly >::key |
Hashed string key for data access.