![]() |
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_trivial ()=default | |
| Construct a new Gtid with all fields uninitialized. More... | |
| Gtid_trivial (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_trivial > | |
| 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_trivial | 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_trivial | 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_trivial | 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_trivial (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_trivial (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_trivial (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_trivial > | |
| 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_trivial > |
Represents a single Gtid, consisting of a Tsid and a Sequence_number.
The default constructor leaves all fields uninitialized. Thus, it satisfies std::is_trivially_default_constructible.
|
private |
|
inlineexplicitprotected |
Construct a new object from the given Uuid, Tag, and Sequence_number.
This throws an exception if the sequence number is out of range.
|
inlineexplicitprotected |
Construct a new object from the given Uuid and Sequence_number, using an empty tag.
This throws an exception if the sequence number is out of range.
|
inlineexplicitprotected |
Construct a new object from the given Tsid and Sequence_number.
This throws an exception if the sequence number is out of range.
|
default |
Construct a new Gtid with all fields uninitialized.
|
inlineexplicit |
Construct a new object by copying the given Gtid.
|
inlinestatic |
Return a new object constructed from the given Tsid and Sequence_number.
This throws an exception if the sequence number is out of range: use in exception-free code only if the sequence_number has been validated already.
|
inlinestatic |
Return a new object constructed from the given Uuid, Tag, and Sequence_number.
This throws an exception if the sequence number is out of range: use in exception-free code only if the sequence_number has been validated already.
|
inlinestatic |
Return a new object constructed from the given Uuid and Sequence_number, using an empty tag.
This throws an exception if the sequence number is out of range: use in exception-free code only if the sequence_number has been validated already.