repr 0.1
Reconstructable string representations and more
Loading...
Searching...
No Matches
librepr::ctei::Accessor< T, Kind, Structure > Struct Template Reference

#include <accessor.h>

Collaboration diagram for librepr::ctei::Accessor< T, Kind, Structure >:
[legend]

Public Types

using structure = Structure
 
using underlying = std::underlying_type_t< T >
 

Static Public Member Functions

template<std::size_t Idx = 0>
requires (Kind == EnumKind::Linear)
static constexpr std::string_view search_name (underlying value)
 
static std::string_view search_name (underlying value)
 
static std::string_view search_name (underlying)
 
static constexpr std::string_view get_name (T value)
 
static constexpr auto get_names ()
 
static constexpr auto get_names ()
 

Static Public Attributes

static constexpr auto kind = Kind
 
static constexpr auto names = get_enum_names()
 

Member Typedef Documentation

◆ structure

template<typename T , EnumKind Kind, typename Structure = TypeList<>>
using librepr::ctei::Accessor< T, Kind, Structure >::structure = Structure

◆ underlying

template<typename T , EnumKind Kind, typename Structure = TypeList<>>
using librepr::ctei::Accessor< T, Kind, Structure >::underlying = std::underlying_type_t<T>

Member Function Documentation

◆ get_name()

template<typename T , EnumKind Kind, typename Structure = TypeList<>>
static constexpr std::string_view librepr::ctei::Accessor< T, Kind, Structure >::get_name ( value)
inlinestaticconstexpr

◆ get_names() [1/2]

template<typename T , EnumKind Kind, typename Structure = TypeList<>>
static constexpr auto librepr::ctei::Accessor< T, Kind, Structure >::get_names ( )
inlinestaticconstexpr

◆ get_names() [2/2]

template<typename T , EnumKind Kind, typename Structure = TypeList<>>
static constexpr auto librepr::ctei::Accessor< T, Kind, Structure >::get_names ( )
inlinestaticconstexpr

◆ search_name() [1/3]

template<typename T , EnumKind Kind, typename Structure = TypeList<>>
template<std::size_t Idx = 0>
requires (Kind == EnumKind::Linear)
static constexpr std::string_view librepr::ctei::Accessor< T, Kind, Structure >::search_name ( underlying  value)
inlinestaticconstexpr

◆ search_name() [2/3]

template<typename T , EnumKind Kind, typename Structure = TypeList<>>
static std::string_view librepr::ctei::Accessor< T, Kind, Structure >::search_name ( underlying  value)
inlinestatic

◆ search_name() [3/3]

template<typename T , EnumKind Kind, typename Structure = TypeList<>>
static std::string_view librepr::ctei::Accessor< T, Kind, Structure >::search_name ( underlying  )
inlinestatic

Member Data Documentation

◆ kind

template<typename T , EnumKind Kind, typename Structure = TypeList<>>
constexpr auto librepr::ctei::Accessor< T, Kind, Structure >::kind = Kind
staticconstexpr

◆ names

template<typename T , EnumKind Kind, typename Structure = TypeList<>>
constexpr auto librepr::ctei::Accessor< T, Kind, Structure >::names = get_enum_names()
staticconstexpr

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