Skip to content

NamedKeys

#include <sbio/util/parameters.hh>
template<FixedName... Keys>
struct NamedKeys

Defined 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.

  • Keys The set of FixedName that serve as keywords.
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

Return Name Description
SBIO_HD constexpr bool contains static inline constexpr
SBIO_HD constexpr std::size_t index_of static inline constexpr

static inline constexpr

template<FixedName Key> constexpr static inline SBIO_HD constexpr bool contains()

Defined in src/lib/sbio/util/parameters.hh:217


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