MySQL 9.6.0
Source Code Documentation
mysql::strconv::detail::String_target_interface< Self_tp > Class Template Reference

CRTP base class providing common helpers needed by String_writer and String_counter, namely, the function to resolve the format. More...

#include <string_target.h>

Inheritance diagram for mysql::strconv::detail::String_target_interface< Self_tp >:
[legend]

Classes

struct  Can_invoke_encode_impl_pred
 Helper type predicate used by detail::resolve_format. More...
 

Public Member Functions

template<class... Args_t>
void concat (const Is_format auto &format, const Args_t &...args)
 Depending on the subclass, write or compute the size of multiple objects to this String_target. More...
 

Protected Member Functions

template<class Object_t >
void resolve_format_and_write (const Is_format auto &format, const Object_t &object)
 Resolve the format, using the rules to deduce format based on default format and parent format, and write the given object using the resolved format. More...
 

Private Types

using Self_t = Self_tp
 

Private Member Functions

Self_tself ()
 

Detailed Description

template<class Self_tp>
class mysql::strconv::detail::String_target_interface< Self_tp >

CRTP base class providing common helpers needed by String_writer and String_counter, namely, the function to resolve the format.

Member Typedef Documentation

◆ Self_t

template<class Self_tp >
using mysql::strconv::detail::String_target_interface< Self_tp >::Self_t = Self_tp
private

Member Function Documentation

◆ concat()

template<class Self_tp >
template<class... Args_t>
void mysql::strconv::detail::String_target_interface< Self_tp >::concat ( const Is_format auto &  format,
const Args_t &...  args 
)
inline

Depending on the subclass, write or compute the size of multiple objects to this String_target.

◆ resolve_format_and_write()

template<class Self_tp >
template<class Object_t >
void mysql::strconv::detail::String_target_interface< Self_tp >::resolve_format_and_write ( const Is_format auto &  format,
const Object_t &  object 
)
inlineprotected

Resolve the format, using the rules to deduce format based on default format and parent format, and write the given object using the resolved format.

◆ self()

template<class Self_tp >
Self_t & mysql::strconv::detail::String_target_interface< Self_tp >::self ( )
inlineprivate

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