|
ACTS
Experiment-independent tracking
|
match types with indices/identifiers and vice versa. More...
#include <detray/utils/type_registry.hpp>
Public Types | |
| enum | : std::size_t { n_types = sizeof...(registered_types) , e_any = sizeof...(registered_types) , e_unknown = sizeof...(registered_types) + 1 } |
| Conventions for some basic info. | |
| using | id = ID |
| Make the type IDs accessible. | |
| using | type_list = detray::types::list<registered_types...> |
| Make the registered types accessible. | |
Static Public Member Functions | |
| static constexpr bool | is_valid (const std::size_t type_idx) |
| template<typename id_t = id> requires (!std::convertible_to<id_t, std::size_t>) | |
| static constexpr bool | is_valid (const id_t type_id) |
| Check whether an identifier corresponds to a registered type. | |
match types with indices/identifiers and vice versa.
| IDs | enum that references the types (not used in base class) |
| registered_types | the types that is mapped to the ID enum values |
|
staticconstexpr |
Check whether an identifier corresponds to a registered type.
| type_id | the type identifier to be checked |
|
staticconstexpr |
Check whether an index corresponds to a registered type.
| type_idx | the type index to be checked |