NamedKeys
NamedKeys
Section titled “NamedKeys”#include <sbio/util/parameters.hh>template<FixedName... Keys>struct NamedKeysDefined in src/lib/sbio/util/parameters.hh:211
A wrapping container for a set of named keys.
Series of FixedNames are used as the “keyword” names for data-class parameters. A set of these can be defined using the NamedKeys. Underlying storage container is provided by an array. These constructs are constexpr, and device safe.
Template Parameters
Section titled “Template Parameters”KeysThe set of FixedName that serve as keywords.
Public Static Attributes
Section titled “Public Static Attributes”| Return | Name | Description |
|---|---|---|
constexpr hd_std::size_t |
count static constexpr |
|
constexpr hd_std::array< FixedName<>, count > |
keys static constexpr |
static constexpr
constexpr hd_std::size_t count { sizeof...(Keys) }Defined in src/lib/sbio/util/parameters.hh:212
static constexpr
constexpr hd_std::array< FixedName<>, count > keys = { Keys... }Type: constexpr hd_std::array< FixedName<>, count >
Defined in src/lib/sbio/util/parameters.hh:214
Public Static Methods
Section titled “Public Static Methods”| Return | Name | Description |
|---|---|---|
SBIO_HD constexpr bool |
contains static inline constexpr |
|
SBIO_HD constexpr std::size_t |
index_of static inline constexpr |
contains
Section titled “contains”static inline constexpr
template<FixedName Key> constexpr static inline SBIO_HD constexpr bool contains()Defined in src/lib/sbio/util/parameters.hh:217
index_of
Section titled “index_of”static inline constexpr
template<FixedName Key> constexpr static inline SBIO_HD constexpr std::size_t index_of()Defined in src/lib/sbio/util/parameters.hh:222