MySQL 8.4.2
Source Code Documentation
mysqlrouter::impl::Option< Opt, ValueType > Class Template Reference

gettable, settable option for mysql_option's. More...

#include <mysql_session.h>

Public Types

using value_type = ValueType
 

Public Member Functions

constexpr Option ()=default
 
constexpr Option (value_type v)
 
constexpr mysql_option option () const noexcept
 
constexpr const void * data () const
 
constexpr void * data ()
 
constexpr void value (value_type v)
 
constexpr value_type value () const
 

Private Attributes

value_type v_ {}
 

Detailed Description

template<mysql_option Opt, class ValueType>
class mysqlrouter::impl::Option< Opt, ValueType >

gettable, settable option for mysql_option's.

adapts scalar types like int/bool/... mysql_option's to mysql_options()/mysql_get_option().

  • mysql_options() expects a '&int'
  • mysql_get_option() expects a '&int'

Member Typedef Documentation

◆ value_type

template<mysql_option Opt, class ValueType >
using mysqlrouter::impl::Option< Opt, ValueType >::value_type = ValueType

Constructor & Destructor Documentation

◆ Option() [1/2]

template<mysql_option Opt, class ValueType >
constexpr mysqlrouter::impl::Option< Opt, ValueType >::Option ( )
constexprdefault

◆ Option() [2/2]

template<mysql_option Opt, class ValueType >
constexpr mysqlrouter::impl::Option< Opt, ValueType >::Option ( value_type  v)
inlineexplicitconstexpr

Member Function Documentation

◆ data() [1/2]

template<mysql_option Opt, class ValueType >
constexpr void * mysqlrouter::impl::Option< Opt, ValueType >::data ( )
inlineconstexpr

◆ data() [2/2]

template<mysql_option Opt, class ValueType >
constexpr const void * mysqlrouter::impl::Option< Opt, ValueType >::data ( ) const
inlineconstexpr

◆ option()

template<mysql_option Opt, class ValueType >
constexpr mysql_option mysqlrouter::impl::Option< Opt, ValueType >::option ( ) const
inlineconstexprnoexcept

◆ value() [1/2]

template<mysql_option Opt, class ValueType >
constexpr value_type mysqlrouter::impl::Option< Opt, ValueType >::value ( ) const
inlineconstexpr

◆ value() [2/2]

template<mysql_option Opt, class ValueType >
constexpr void mysqlrouter::impl::Option< Opt, ValueType >::value ( value_type  v)
inlineconstexpr

Member Data Documentation

◆ v_

template<mysql_option Opt, class ValueType >
value_type mysqlrouter::impl::Option< Opt, ValueType >::v_ {}
private

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