libjmmcg  build_2783
A C++ library containing an eclectic mix of useful, advanced components.
jmmcg::enum_tags::mpl::to_array< EnumT, t, 5u > Struct Template Reference

#include <enum_as_char_array.hpp>

Public Types

enum  : std::size_t { size =private_::count_digits<EnumT, t>::value }
 
enum  : typename std::underlying_type< EnumT >::type { value_as_int =static_cast<typename std::underlying_type<EnumT>::type>(t) }
 
using const_element_type = const char[size]
 The type of the const char-array of the extracted string. More...
 
using element_type = char[size]
 The type of the char-array of the extracted string. More...
 

Static Public Attributes

static constexpr EnumT tag =t
 
static constexpr const_element_type value
 The array of chars extracted from the enum-tag. More...
 

Detailed Description

template<class EnumT, EnumT t>
struct jmmcg::enum_tags::mpl::to_array< EnumT, t, 5u >

Definition at line 338 of file enum_as_char_array.hpp.

Member Typedef Documentation

◆ const_element_type

template<class EnumT , EnumT t>
using jmmcg::enum_tags::mpl::to_array< EnumT, t, 5u >::const_element_type = const char [size]

The type of the const char-array of the extracted string.

Definition at line 345 of file enum_as_char_array.hpp.

◆ element_type

template<class EnumT , EnumT t>
using jmmcg::enum_tags::mpl::to_array< EnumT, t, 5u >::element_type = char [size]

The type of the char-array of the extracted string.

Definition at line 346 of file enum_as_char_array.hpp.

Member Enumeration Documentation

◆ anonymous enum

template<class EnumT , EnumT t>
anonymous enum : std::size_t
Enumerator
size 

Definition at line 339 of file enum_as_char_array.hpp.

◆ anonymous enum

template<class EnumT , EnumT t>
anonymous enum : typename std::underlying_type< EnumT >::type
Enumerator
value_as_int 

Definition at line 342 of file enum_as_char_array.hpp.

Member Data Documentation

◆ tag

template<class EnumT , EnumT t>
constexpr EnumT jmmcg::enum_tags::mpl::to_array< EnumT, t, 5u >::tag =t
staticconstexpr

The enum-tag associated the with the encoded string.

Definition at line 347 of file enum_as_char_array.hpp.

◆ value

template<class EnumT , EnumT t>
constexpr const_element_type jmmcg::enum_tags::mpl::to_array< EnumT, t, 5u >::value
staticconstexpr
Initial value:
={
static_cast<char>((static_cast<typename std::underlying_type<EnumT>::type>(t)>>32)&0xFF),
static_cast<char>((static_cast<typename std::underlying_type<EnumT>::type>(t)>>24)&0xFF),
static_cast<char>((static_cast<typename std::underlying_type<EnumT>::type>(t)>>16)&0xFF),
static_cast<char>((static_cast<typename std::underlying_type<EnumT>::type>(t)>>8)&0xFF),
static_cast<char>(static_cast<typename std::underlying_type<EnumT>::type>(t)&0xFF)
}

The array of chars extracted from the enum-tag.

Definition at line 349 of file enum_as_char_array.hpp.


The documentation for this struct was generated from the following file:
type
const MsgType_t type() const noexcept(true)
Definition: messages.hpp:131