MySQL 9.6.0
Source Code Documentation
parse_options.h File Reference

Experimental API header. More...

Go to the source code of this file.

Classes

struct  mysql::strconv::detail::Is_format_pred< Test >
 Type predicate with a member constant value that is true if Test is a format. More...
 
struct  mysql::strconv::detail::Is_repeat_pred< Test >
 Type predicate with a member constant value that is true if Test is Repeat. More...
 
struct  mysql::strconv::detail::Is_checker_pred< Test >
 Class template parameterized by an object type, holding a member class template, which is a type predicate whose member constant value is true if Test is a checker for the object type. More...
 
struct  mysql::strconv::Compound_parse_options< Tuple_tp >
 Represents parse options consisting of a tuple where each of the following elements occurs optionally: Format, Repeat, Checker. More...
 

Namespaces

namespace  mysql
 
namespace  mysql::strconv
 
namespace  mysql::strconv::detail
 

Concepts

concept  mysql::strconv::detail::Is_compound_parse_options_tuple
 
concept  mysql::strconv::Is_compound_parse_options
 True if Test is a Compound_parse_options object with at most one Format element, at most one Repeat element, and at most one other element.
 
concept  mysql::strconv::Is_parse_options
 True for any kind of parse options: Format, Repeat, Checker, or Compound_parse_options.
 
concept  mysql::strconv::Is_parse_options_nocheck
 True for any kind of parse options: Format, Repeat, Checker, or Compound_parse_options.
 
concept  mysql::strconv::Is_parse_options_optional
 True for any kind of parse options for which get_repeat() returns Repeat_optional, i.e., it is known at compile-time that a string of length 0 matches, and thus parse error is impossible.
 

Typedefs

using mysql::strconv::Empty_parse_options = Compound_parse_options< std::tuple<> >
 

Functions

template<class... Args_t>
 mysql::strconv::Compound_parse_options (std::tuple< Args_t... >) -> Compound_parse_options< std::tuple< Args_t... > >
 Deduction guide. More...
 
auto mysql::strconv::get_format (const Is_parse_options auto &)
 Return the Format component of any parse options that has one. More...
 
auto mysql::strconv::get_format (const Is_format auto &format)
 
template<Is_compound_parse_options Compound_parse_options_t>
requires Compound_parse_options_t
::has_format auto mysql::strconv::get_format (const Compound_parse_options_t &opt)
 
auto mysql::strconv::get_repeat (const Is_parse_options auto &)
 Return the Repeat component of any parse options, if it exists; otherwise a default-constructed Repeat object. More...
 
auto mysql::strconv::get_repeat (const Is_repeat auto &repeat)
 
template<Is_compound_parse_options Compound_parse_options_t>
requires Compound_parse_options_t
::has_repeat auto mysql::strconv::get_repeat (const Compound_parse_options_t &opt)
 
void mysql::strconv::invoke_checker (const Is_parse_options auto &)
 Invoke the Checker member of any parse options, if it exists; otherwise do nothing. More...
 
void mysql::strconv::invoke_checker (const Is_checker auto &checker)
 
template<Is_compound_parse_options Compound_parse_options_t>
requires Compound_parse_options_t
::has_checker void mysql::strconv::invoke_checker (const Compound_parse_options_t &opt)
 
auto mysql::strconv::detail::make_compound_parse_options ()
 Given any form of parse options; Format, Repeat, Checker, or Compound_parse_options; return a Compound_parse_options object. More...
 
template<Is_format Format_t>
auto mysql::strconv::detail::make_compound_parse_options (const Format_t &format)
 
template<Is_repeat Repeat_t>
auto mysql::strconv::detail::make_compound_parse_options (const Repeat_t &repeat)
 
template<Is_checker Checker_t>
auto mysql::strconv::detail::make_compound_parse_options (const Checker_t &checker)
 
auto mysql::strconv::detail::make_compound_parse_options (const Is_compound_parse_options auto &opt)
 
template<Is_parse_options Opt1, Is_parse_options Opt2>
auto mysql::strconv::operator| (const Opt1 &opt1, const Opt2 &opt2)
 Combine two Parse Options objects into one. More...
 

Variables

template<class Tuple_t >
constexpr std::size_t mysql::strconv::detail::Format_count
 The number of elements in a Compound_parse_options of Format type. More...
 
template<class Tuple_t >
constexpr std::size_t mysql::strconv::detail::Repeat_count
 The number of elements in a Compound_parse_options of Repeat type. More...
 
template<class Tuple_t >
constexpr std::size_t mysql::strconv::detail::Checker_count
 The number of element in a Compound_parse_options of Checker type. More...
 

Detailed Description

Experimental API header.