![]() |
MySQL 9.6.0
Source Code Documentation
|
Represents a single Gtid, consisting of a Tsid and a Sequence_number. More...
#include <gtid.h>
Public Member Functions | |
| Gtid () | |
| Construct a new Gtid, leaving the UUID uninitialized, setting the tag to empty, and the sequence number to 1. More... | |
| Gtid (const Is_gtid auto >id) | |
| Construct a new object by copying the given Gtid. More... | |
Public Member Functions inherited from mysql::gtids::detail::Gtid_interface< Tsid > | |
| Gtid_interface ()=default | |
| Construct a new, uninitialized object. More... | |
| Gtid_interface (const Is_gtid auto >id) | |
| Construct a new object by copying the given Gtid. More... | |
| const auto & | tsid () const |
| Return const reference to the Tsid. More... | |
| auto & | tsid () |
| Return non-const reference to the Tsid. More... | |
| const auto & | uuid () const |
| Return const reference to the Uuid. More... | |
| auto & | uuid () |
| Return non-const reference to the Uuid. More... | |
| const auto & | tag () const |
| Return const reference to the Tag. More... | |
| auto & | tag () |
| Return non-const reference to the Tag. More... | |
| Sequence_number | get_sequence_number () const |
| Return the Sequence_number. More... | |
| void | throwing_set_sequence_number (const Sequence_number &sequence_number) |
| Set and validate the Sequence_number. More... | |
| auto | set_sequence_number (const Sequence_number &sequence_number) |
| Set and validate the Sequence_number. More... | |
| auto | assign (const Is_gtid auto &other) |
| Copy from other to this. More... | |
Static Public Member Functions | |
| static Gtid | throwing_make (const mysql::uuids::Uuid &uuid, const Is_tag auto &tag, Sequence_number sequence_number) |
| Return a new object constructed from the given Uuid, Tag, and Sequence_number. More... | |
| static Gtid | throwing_make (const mysql::uuids::Uuid &uuid, Sequence_number sequence_number) |
| Return a new object constructed from the given Uuid and Sequence_number, using an empty tag. More... | |
| static Gtid | throwing_make (const Is_tsid auto &tsid, Sequence_number sequence_number) |
| Return a new object constructed from the given Tsid and Sequence_number. More... | |
Protected Member Functions | |
| Gtid (const mysql::uuids::Uuid &uuid, const Is_tag auto &tag, Sequence_number sequence_number) | |
| Construct a new object from the given Uuid, Tag, and Sequence_number. More... | |
| Gtid (const mysql::uuids::Uuid &uuid, Sequence_number sequence_number) | |
| Construct a new object from the given Uuid and Sequence_number, using an empty tag. More... | |
| Gtid (const Is_tsid auto &tsid, Sequence_number sequence_number) | |
| Construct a new object from the given Tsid and Sequence_number. More... | |
Protected Member Functions inherited from mysql::gtids::detail::Gtid_interface< Tsid > | |
| Gtid_interface (const mysql::uuids::Uuid &uuid, const Is_tag auto &tag, Sequence_number sequence_number) | |
| Construct a new object from the given Uuid, Tag, and Sequence_number. More... | |
| Gtid_interface (const mysql::uuids::Uuid &uuid, Sequence_number sequence_number) | |
| Construct a new object from the given Uuid and Sequence_number, using an empty tag. More... | |
| Gtid_interface (const Is_tsid auto &tsid, Sequence_number sequence_number) | |
| Construct a new object from the given Tsid and Sequence_number. More... | |
Private Types | |
| using | Base_t = detail::Gtid_interface< Tsid > |
Represents a single Gtid, consisting of a Tsid and a Sequence_number.
The default constructor for this class will initialize the sequence number to sequence_number_min, the tag to empty, and leave the UUID uninitialized. Thus, it does not satisfy std::is_trivially_default_constructible.
|
private |
|
inlineexplicitprotected |
Construct a new object from the given Uuid, Tag, and Sequence_number.
| std::domain_error | if the given number is out of range. |
|
inlineexplicitprotected |
Construct a new object from the given Uuid and Sequence_number, using an empty tag.
| std::domain_error | if the given number is out of range. |
|
inlineexplicitprotected |
Construct a new object from the given Tsid and Sequence_number.
| std::domain_error | if the given number is out of range. |
|
inline |
Construct a new Gtid, leaving the UUID uninitialized, setting the tag to empty, and the sequence number to 1.
|
inlineexplicit |
Construct a new object by copying the given Gtid.
|
inlinestatic |
Return a new object constructed from the given Tsid and Sequence_number.
Use in exception-free code only if the sequence_number has been validated already.
| std::domain_error | if the given number is out of range. |
|
inlinestatic |
Return a new object constructed from the given Uuid, Tag, and Sequence_number.
Use in exception-free code only if the sequence_number has been validated already.
| std::domain_error | if the given number is out of range. |
|
inlinestatic |
Return a new object constructed from the given Uuid and Sequence_number, using an empty tag.
Use in exception-free code only if the sequence_number has been validated already.
| std::domain_error | if the given number is out of range. |