![]() |
MySQL 9.6.0
Source Code Documentation
|
Base class for classes representing a single Gtid, parameterized by the type of the Tsid. More...
#include <gtid.h>
Public Member Functions | |
| 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... | |
Protected Member Functions | |
| 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 Member Functions | |
| void | assert_sequence_number (Sequence_number sequence_number) const |
| Assert that the sequence number is in range. More... | |
Private Attributes | |
| Tsid_tp | m_tsid |
| The Tsid object. More... | |
| Sequence_number | m_sequence_number |
| The Sequence_number. More... | |
Base class for classes representing a single Gtid, parameterized by the type of the Tsid.
|
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. |
|
default |
Construct a new, uninitialized object.
Note that this must not initialize any members because we need the subclass Gtid_trivial to satisfy std::is_trivially_default_constructible.
|
inlineexplicit |
Construct a new object by copying the given Gtid.
|
inlineprivate |
Assert that the sequence number is in range.
| std::domain_error | if the given number is out of range. |
|
inline |
Copy from other to this.
void. If we introduce allocating tag types, the allocation may fail, in which case this will return Return_status.
|
inline |
Return the Sequence_number.
|
inline |
Set and validate the Sequence_number.
|
inline |
Return non-const reference to the Tag.
|
inline |
Return const reference to the Tag.
|
inline |
Set and validate the Sequence_number.
| std::domain_error | if the given number is out of range. |
|
inline |
Return non-const reference to the Tsid.
|
inline |
Return const reference to the Tsid.
|
inline |
Return non-const reference to the Uuid.
|
inline |
Return const reference to the Uuid.
|
private |
The Sequence_number.
This must not be initialized by default, because this is a base class for of Gtid_trivial, and initializing it would make Gtid_trivial violate std::is_trivially_default_constructible.
|
private |
The Tsid object.