sbepp
Loading...
Searching...
No Matches
sbepp::set_traits< T > Class Template Reference

Provides various traits/attributes of a <set> element. More...

Public Types

using encoding_type = EncodingType
 Underlying type, e.g. std::uint8_t
 
using encoding_type_tag = EncodingTypeTag
 Tag of the type specified in the encodingType attribute.
 
using value_type = SetType
 Representation type.
 
using choice_tags = sbepp::type_list<ChoiceTags...>
 Choice tags in schema order.
 

Static Public Member Functions

static constexpr const char * name () noexcept
 Returns name attribute.
 
static constexpr const char * description () noexcept
 Returns description attribute.
 
static constexpr version_t since_version () noexcept
 Returns sinceVersion attribute.
 
static constexpr version_t deprecated () noexcept
 Returns deprecated attribute. Available only if provided in schema.
 
static constexpr offset_t offset () noexcept
 Returns type offset. Available only if offset is static, i.e. not available for public sets whose offset is different on each usage.
 

Detailed Description

template<typename T>
class sbepp::set_traits< T >

Provides various traits/attributes of a <set> element.

For example: sbepp::set_traits<market_schema::schema::types::set_name>::since_version();

Template Parameters
Tset tag

Member Typedef Documentation

◆ encoding_type_tag

template<typename T>
using sbepp::set_traits< T >::encoding_type_tag = EncodingTypeTag

Tag of the type specified in the encodingType attribute.

For primitive built-in types provides tag of their optional representations, e.g. sbepp::uint8_opt_t for uint8.


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