userver: ydb::ValueTraits< T > Struct Template Reference
Loading...
Searching...
No Matches
ydb::ValueTraits< T > Struct Template Reference

Detailed Description

template<typename T>
requires meta::kIsRange<T> && (!meta::kIsMap<T>)
struct ydb::ValueTraits< T >

Definition at line 78 of file list.hpp.

Public Types

using ValueType = meta::RangeValueType<T>
 

Static Public Member Functions

static T Parse (NYdb::TValueParser &parser, const ParseContext &context)
 
template<typename Builder, typename U = const T&>
static void Write (NYdb::TValueBuilderBase< Builder > &builder, U &&value)
 
static NYdb::TType MakeType ()
 
static T Parse (NYdb::TValueParser &parser, const ParseContext &context)
 
template<typename Builder>
static void Write (NYdb::TValueBuilderBase< Builder > &builder, const T &value)
 
static NYdb::TType MakeType ()
 
static T Parse (NYdb::TValueParser &parser, const ParseContext &context)
 
static void Write (NYdb::TValueBuilderBase< Builder > &builder, const T &value)
 Writes an element of type T to builder.
 
static NYdb::TType MakeType ()=delete
 Uses NYdb::TTypeBuilder to create a representation of T type.
 

Static Public Attributes

static constexpr auto kFieldNames = impl::WithDeducedNames<T>(kStructMemberNames<T>)
 
static constexpr auto kFieldNamesSet = utils::MakeTrivialSet<kFieldNames>()
 
static constexpr auto kFieldsCount = kFieldNames.size()
 

Member Typedef Documentation

◆ ValueType

template<typename T>
using ydb::ValueTraits< T >::ValueType = meta::RangeValueType<T>

Definition at line 79 of file list.hpp.

Member Function Documentation

◆ MakeType() [1/2]

template<typename T>
static NYdb::TType ydb::ValueTraits< T >::MakeType ( )
inlinestatic

Definition at line 119 of file list.hpp.

◆ MakeType() [2/2]

template<typename T>
static NYdb::TType ydb::ValueTraits< T >::MakeType ( )
inlinestatic

Definition at line 212 of file structs.hpp.

◆ Parse() [1/3]

template<typename T>
static T ydb::ValueTraits< T >::Parse ( NYdb::TValueParser & parser,
const ParseContext & context )
inlinestatic

Definition at line 81 of file list.hpp.

◆ Parse() [2/3]

template<typename T>
static T ydb::ValueTraits< T >::Parse ( NYdb::TValueParser & parser,
const ParseContext & context )
inlinestatic

Definition at line 158 of file structs.hpp.

◆ Parse() [3/3]

static T ydb::ValueTraits< T >::Parse ( NYdb::TValueParser & parser,
const ParseContext & context )
inlinestatic

Parses an element of type T from parser. context may be used for diagnostic messages.

Definition at line 25 of file traits.hpp.

◆ Write() [1/3]

template<typename T>
template<typename Builder>
static void ydb::ValueTraits< T >::Write ( NYdb::TValueBuilderBase< Builder > & builder,
const T & value )
inlinestatic

Definition at line 203 of file structs.hpp.

◆ Write() [2/3]

static void ydb::ValueTraits< T >::Write ( NYdb::TValueBuilderBase< Builder > & builder,
const T & value )
inlinestatic

Writes an element of type T to builder.

Definition at line 37 of file traits.hpp.

◆ Write() [3/3]

template<typename T>
template<typename Builder, typename U = const T&>
static void ydb::ValueTraits< T >::Write ( NYdb::TValueBuilderBase< Builder > & builder,
U && value )
inlinestatic

Definition at line 98 of file list.hpp.

Member Data Documentation

◆ kFieldNames

template<typename T>
auto ydb::ValueTraits< T >::kFieldNames = impl::WithDeducedNames<T>(kStructMemberNames<T>)
staticconstexpr

Definition at line 154 of file structs.hpp.

◆ kFieldNamesSet

template<typename T>
auto ydb::ValueTraits< T >::kFieldNamesSet = utils::MakeTrivialSet<kFieldNames>()
staticconstexpr

Definition at line 155 of file structs.hpp.

◆ kFieldsCount

template<typename T>
auto ydb::ValueTraits< T >::kFieldsCount = kFieldNames.size()
staticconstexpr

Definition at line 156 of file structs.hpp.


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