Botcraft 1.21.4
Loading...
Searching...
No Matches
Botcraft::Utilities::EnumMapperRange< Enum, MinVal, MaxVal > Struct Template Reference

#include <EnumUtilities.hpp>

Static Public Member Functions

template<std::size_t ... Is>
static constexpr std::array< std::string_view, end - start+1 > map_range (std::index_sequence< Is... >)
 

Static Public Attributes

static constexpr std::underlying_type_t< Enum > start = to_underlying(MinVal)
 
static constexpr std::underlying_type_t< Enum > end = to_underlying(MaxVal)
 
static constexpr std::array< std::string_view, end - start+1 > mapping = map_range(std::make_index_sequence<end - start + 1>())
 

Detailed Description

template<class Enum, Enum MinVal, Enum MaxVal>
struct Botcraft::Utilities::EnumMapperRange< Enum, MinVal, MaxVal >

Definition at line 43 of file EnumUtilities.hpp.

Member Function Documentation

◆ map_range()

template<class Enum , Enum MinVal, Enum MaxVal>
template<std::size_t ... Is>
static constexpr std::array< std::string_view, end - start+1 > Botcraft::Utilities::EnumMapperRange< Enum, MinVal, MaxVal >::map_range ( std::index_sequence< Is... >  )
inlinestaticconstexpr

Member Data Documentation

◆ end

template<class Enum , Enum MinVal, Enum MaxVal>
constexpr std::underlying_type_t<Enum> Botcraft::Utilities::EnumMapperRange< Enum, MinVal, MaxVal >::end = to_underlying(MaxVal)
inlinestaticconstexpr

◆ mapping

template<class Enum , Enum MinVal, Enum MaxVal>
constexpr std::array<std::string_view, end - start + 1> Botcraft::Utilities::EnumMapperRange< Enum, MinVal, MaxVal >::mapping = map_range(std::make_index_sequence<end - start + 1>())
inlinestaticconstexpr

Definition at line 58 of file EnumUtilities.hpp.

◆ start

template<class Enum , Enum MinVal, Enum MaxVal>
constexpr std::underlying_type_t<Enum> Botcraft::Utilities::EnumMapperRange< Enum, MinVal, MaxVal >::start = to_underlying(MinVal)
inlinestaticconstexpr

The documentation for this struct was generated from the following file: