MySQL 9.6.0
Source Code Documentation
mysql::strconv::detail::Constructible_string_writer Class Reference

String_writer subclass that can be instantiated. More...

#include <string_writer.h>

Inheritance diagram for mysql::strconv::detail::Constructible_string_writer:
[legend]

Public Member Functions

 Constructible_string_writer (const Is_out_str auto &out_str)
 
- Public Member Functions inherited from mysql::strconv::String_writer
 String_writer (const String_writer &)=delete
 
 String_writer (String_writer &&) noexcept=default
 
String_writeroperator= (const String_writer &)=delete
 
String_writeroperator= (String_writer &&) noexcept=default
 
 ~String_writer ()=default
 
void write_raw (const std::string_view &sv)
 Append a string_view to the buffer, unformatted. More...
 
void write_char (int ch)
 Append a single character to the buffer. More...
 
void write (const Is_format auto &format, const auto &object)
 Write the given object to this String_writer. More...
 
void write (const Is_format auto &format, const std::string_view &sv)
 Write the given string_view to this String_writer. More...
 
void advance (std::size_t size)
 Move the position size bytes forward without writing anything. More...
 
char * pos ()
 Return the current write position as a char *. More...
 
const char * pos () const
 Return the current write position as a const char *. More...
 
unsigned char * upos ()
 Return the current write position as an unsigned char *. More...
 
const unsigned char * upos () const
 Return the current write position as a const unsigned char *. More...
 
std::bytebpos ()
 Return the current write position as a std::byte *. More...
 
const std::bytebpos () const
 Return the current write position as a const std::byte *. More...
 
char * end ()
 Return the buffer end as a char *. More...
 
const char * end () const
 Return the buffer end as a const char *. More...
 
unsigned char * uend ()
 Return the buffer end as an unsigned char *. More...
 
const unsigned char * uend () const
 Return the buffer end as a const unsigned char *. More...
 
std::bytebend ()
 Return the buffer end as a std::byte *. More...
 
const std::bytebend () const
 Return the buffer end as a const std::byte *. More...
 
std::size_t remaining_size () const
 
- Public Member Functions inherited from mysql::strconv::detail::String_target_interface< String_writer >
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...
 

Additional Inherited Members

- Static Public Attributes inherited from mysql::strconv::String_writer
static constexpr Target_type target_type = Target_type::writer
 
- Protected Member Functions inherited from mysql::strconv::String_writer
 String_writer (char *first, char *last)
 Construct a new object backed by the given buffer. More...
 
- Protected Member Functions inherited from mysql::strconv::detail::String_target_interface< String_writer >
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...
 

Detailed Description

String_writer subclass that can be instantiated.

We hide this in the detail namespace because the class is not supposed to be instantiated in user code, only in this framework.

Constructor & Destructor Documentation

◆ Constructible_string_writer()

mysql::strconv::detail::Constructible_string_writer::Constructible_string_writer ( const Is_out_str auto &  out_str)
inlineexplicit

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