MySQL 9.3.0
Source Code Documentation
mysql_harness::IntOption< T > Class Template Reference

#include <config_option.h>

Public Types

using value_type = T
 

Public Member Functions

constexpr IntOption (T min_value=std::numeric_limits< T >::min(), T max_value=std::numeric_limits< T >::max())
 
T operator() (const std::string &value, const std::string &option_desc)
 
std::optional< Toperator() (const std::optional< std::string > &value, const std::string &option_desc)
 

Private Attributes

T min_value_
 
T max_value_
 

Member Typedef Documentation

◆ value_type

template<typename T >
using mysql_harness::IntOption< T >::value_type = T

Constructor & Destructor Documentation

◆ IntOption()

template<typename T >
constexpr mysql_harness::IntOption< T >::IntOption ( T  min_value = std::numeric_limits<T>::min(),
T  max_value = std::numeric_limits<T>::max() 
)
inlineconstexpr

Member Function Documentation

◆ operator()() [1/2]

template<typename T >
std::optional< T > mysql_harness::IntOption< T >::operator() ( const std::optional< std::string > &  value,
const std::string &  option_desc 
)
inline

◆ operator()() [2/2]

template<typename T >
T mysql_harness::IntOption< T >::operator() ( const std::string &  value,
const std::string &  option_desc 
)
inline

Member Data Documentation

◆ max_value_

template<typename T >
T mysql_harness::IntOption< T >::max_value_
private

◆ min_value_

template<typename T >
T mysql_harness::IntOption< T >::min_value_
private

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