MySQL 8.0.32
Source Code Documentation
Mysql::Tools::Base::Options::Number_option< T_value > Class Template Reference

Template class for all number options. More...

#include <number_option.h>

Inheritance diagram for Mysql::Tools::Base::Options::Number_option< T_value >:
[legend]

Private Member Functions

 Number_option ()
 This class cannot be instanced. More...
 

Additional Inherited Members

- Public Member Functions inherited from Mysql::Tools::Base::Options::Abstract_integer_number_option< Number_option< T_value >, T_value >
Number_option< T_value > * set_value (T_value value)
 Sets value for this option. More...
 
Number_option< T_value > * set_value_step (T_value step)
 Sets required divisor of input value. More...
 
Number_option< T_value > * set_minimum_value (T_value minimum) override
 Sets minimum value boundary for option value. More...
 
Number_option< T_value > * set_maximum_value (T_value maximum) override
 Sets maximum value boundary for option value. More...
 
- Public Member Functions inherited from Mysql::Tools::Base::Options::Abstract_value_option< T_type >
T_type * value_optional ()
 Sets arg_type to OPT_ARG - doesn't require argument to be specified when using this option. More...
 
- Public Member Functions inherited from Mysql::Tools::Base::Options::Abstract_option< T_type >
 ~Abstract_option () override
 
void add_callback (std::function< void(char *)> *callback)
 Adds new callback for this option for option_parsed() event to callback chain. More...
 
T_type * set_short_character (char code)
 Sets optid to given character to make possible usage of short option alternative. More...
 
- Public Member Functions inherited from Mysql::Tools::Base::Options::I_option
virtual ~I_option ()
 
- Protected Member Functions inherited from Mysql::Tools::Base::Options::Abstract_integer_number_option< Number_option< T_value >, T_value >
 Abstract_integer_number_option (T_value *value, ulong var_type, std::string name, std::string description)
 Constructs new number option. More...
 
- Protected Member Functions inherited from Mysql::Tools::Base::Options::Abstract_number_option< T_type, T_value >
 Abstract_number_option (T_value *value, ulong var_type, std::string name, std::string description, uint64 default_value)
 Constructs new number option. More...
 
- Protected Member Functions inherited from Mysql::Tools::Base::Options::Abstract_value_option< T_type >
 Abstract_value_option (void *value, ulong var_type, std::string name, std::string description, uint64 default_value)
 Constructs new option with value argument. More...
 
- Protected Member Functions inherited from Mysql::Tools::Base::Options::Abstract_option< T_type >
 Abstract_option (void *value, ulong var_type, std::string name, std::string description, longlong default_value)
 Constructs new option. More...
 
my_option get_my_option () override
 Returns my_getopt internal option data structure representing this option. More...
 
void set_option_changed_listener (I_option_changed_listener *listener) override
 Method to set listener on option changed events. More...
 
- Protected Attributes inherited from Mysql::Tools::Base::Options::Abstract_option< T_type >
my_option m_option_structure
 
- Static Protected Attributes inherited from Mysql::Tools::Base::Options::I_option
static uint32 last_optid = 256
 

Detailed Description

template<typename T_value>
class Mysql::Tools::Base::Options::Number_option< T_value >

Template class for all number options.

Constructor & Destructor Documentation

◆ Number_option()

template<typename T_value >
Mysql::Tools::Base::Options::Number_option< T_value >::Number_option ( )
privatedefault

This class cannot be instanced.

It is only as template for specialized implementations.


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