MySQL 9.6.0
Source Code Documentation
mysql::gtids::Gtid_interval Class Reference

Class that defines the Interval type used for Gtid intervals. More...

#include <gtid_set.h>

Inheritance diagram for mysql::gtids::Gtid_interval:
[legend]

Public Member Functions

 Gtid_interval ()
 
- Public Member Functions inherited from mysql::sets::Interval< Set_traits_tp >
 Interval ()
 
void throwing_assign (const Element_t &start_arg, const Element_t &exclusive_end_arg)
 Set the start and exclusive end to the given values. More...
 
void throwing_set_start (const Element_t &start_arg)
 Set the start to the given value. More...
 
void throwing_set_exclusive_end (const Element_t &exclusive_end_arg)
 Set the exclusive end to the given value. More...
 
Return_status_t assign (const Element_t &start_arg, const Element_t &exclusive_end_arg)
 Set the start and exclusive end to the given values. More...
 
Return_status_t set_start (const Element_t &start_arg)
 Set the start to the given value. More...
 
Return_status_t set_exclusive_end (const Element_t &exclusive_end_arg)
 Set the exclusive end to the given value. More...
 
- Public Member Functions inherited from mysql::sets::detail::Interval_base< Set_traits_tp >
constexpr const Element_tstart () const
 Return const reference to the starting point of the interval (inclusive). More...
 
constexpr const Element_texclusive_end () const
 Return const reference to the exclusive endpoint of the interval. More...
 

Static Public Member Functions

static Gtid_interval throwing_make (const Element_t &start_arg, const Element_t &exclusive_end_arg)
 Construct an interval with the given values for start and exclusive end. More...
 
static Gtid_interval throwing_make (const Element_t &singleton)
 Construct a singleton interval. More...
 
- Static Public Member Functions inherited from mysql::sets::Interval< Set_traits_tp >
static Interval throwing_make (const Element_t &start_arg, const Element_t &exclusive_end_arg)
 Construct an interval with the given values for start and exclusive end. More...
 
static Interval throwing_make (const Element_t &singleton)
 Construct a singleton interval. More...
 

Private Types

using Base_t = detail::Gtid_interval_alias
 

Private Member Functions

 Gtid_interval (const Element_t &start_arg, const Element_t &exclusive_end_arg)
 Construct an interval with the given values for start and exclusive end. More...
 
 Gtid_interval (const Element_t &singleton)
 Construct a singleton interval. More...
 

Additional Inherited Members

- Public Types inherited from mysql::sets::Interval< Set_traits_tp >
using Set_traits_t = Set_traits_tp
 
using Element_t = Set_traits_t::Element_t
 
using Return_status_t = mysql::utils::Return_status
 
- Public Types inherited from mysql::sets::detail::Interval_base< Set_traits_tp >
using Set_traits_t = Set_traits_tp
 
using Element_t = Set_traits_t::Element_t
 
- Protected Member Functions inherited from mysql::sets::Interval< Set_traits_tp >
 Interval (const Element_t &start_arg, const Element_t &exclusive_end_arg)
 Construct an interval with the given values for start and exclusive end. More...
 
 Interval (const Element_t &singleton)
 Construct a singleton interval. More...
 
- Protected Member Functions inherited from mysql::sets::detail::Interval_base< Set_traits_tp >
constexpr Interval_base ()
 This is enabled if Set_traits_t are discrete set traits. More...
 
constexpr Interval_base (const Element_t &start, const Element_t &exclusive_end)
 Construct an interval with the given inclusive start and exclusive end. More...
 
constexpr Interval_base (Element_t singleton)
 Construct a singleton interval. More...
 
void assign (const Element_t &start_arg, const Element_t &exclusive_end_arg)
 Set both boundaries to the given values, without validating the range. More...
 
void set_start (Element_t start_arg)
 Set the value for the start boundary, without validating the range. More...
 
void set_exclusive_end (Element_t exclusive_end_arg)
 Set the value for the exclusive_end boundary, without validating the range. More...
 

Detailed Description

Class that defines the Interval type used for Gtid intervals.

Member Typedef Documentation

◆ Base_t

Constructor & Destructor Documentation

◆ Gtid_interval() [1/3]

mysql::gtids::Gtid_interval::Gtid_interval ( const Element_t start_arg,
const Element_t exclusive_end_arg 
)
inlineexplicitprivate

Construct an interval with the given values for start and exclusive end.

Exceptions
std::domain_errorif the values are out of range or out of order.

◆ Gtid_interval() [2/3]

mysql::gtids::Gtid_interval::Gtid_interval ( const Element_t singleton)
inlineexplicitprivate

Construct a singleton interval.

Exceptions
std::domain_errorif the value is out of range.

◆ Gtid_interval() [3/3]

mysql::gtids::Gtid_interval::Gtid_interval ( )
inline

Member Function Documentation

◆ throwing_make() [1/2]

static Gtid_interval mysql::gtids::Gtid_interval::throwing_make ( const Element_t singleton)
inlinestatic

Construct a singleton interval.

Exceptions
std::domain_errorif the value is out of range.

◆ throwing_make() [2/2]

static Gtid_interval mysql::gtids::Gtid_interval::throwing_make ( const Element_t start_arg,
const Element_t exclusive_end_arg 
)
inlinestatic

Construct an interval with the given values for start and exclusive end.

Exceptions
std::domain_errorif the values are out of range or out of order.

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