MySQL 9.0.0
Source Code Documentation
mysqlrouter::impl::Option< Opt, const char * > Class Template Reference

gettable, settable option for 'const char *' based mysql_option's. More...

#include <mysql_session.h>

Public Types

using value_type = const char *
 

Public Member Functions

 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 mysqlrouter::impl::Option< Opt, const char * >

gettable, settable option for 'const char *' based mysql_option's.

adapts 'const char *' based mysql_option to mysql_options()/mysql_get_option().

  • mysql_options() expects a 'const char *'
  • mysql_get_option() expects a '&(const char *)'

Member Typedef Documentation

◆ value_type

template<mysql_option Opt>
using mysqlrouter::impl::Option< Opt, const char * >::value_type = const char *

Constructor & Destructor Documentation

◆ Option() [1/2]

template<mysql_option Opt>
mysqlrouter::impl::Option< Opt, const char * >::Option ( )
default

◆ Option() [2/2]

template<mysql_option Opt>
constexpr mysqlrouter::impl::Option< Opt, const char * >::Option ( value_type  v)
inlineexplicitconstexpr

Member Function Documentation

◆ data() [1/2]

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

◆ data() [2/2]

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

◆ option()

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

◆ value() [1/2]

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

◆ value() [2/2]

template<mysql_option Opt>
constexpr void mysqlrouter::impl::Option< Opt, const char * >::value ( value_type  v)
inlineconstexpr

Member Data Documentation

◆ v_

template<mysql_option Opt>
value_type mysqlrouter::impl::Option< Opt, const char * >::v_ {}
private

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