MySQL 9.0.0
Source Code Documentation
mysql::gtid::Tsid_plain Struct Reference

TSID representation so that: More...

#include <tsid_plain.h>

Public Member Functions

 Tsid_plain ()=default
 Default ctor. More...
 
 Tsid_plain (const Tsid &tsid)
 Construct from tsid object. More...
 
void clear ()
 Clear this TSID. More...
 
std::size_t to_string (char *out) const
 Copies internal tsid into a given buffer. More...
 

Private Attributes

Uuid m_uuid
 GTID UUID. More...
 
Tag_plain m_tag
 GTID Tag. More...
 

Friends

class Tsid
 

Detailed Description

TSID representation so that:

  • Tsid_plain is trivial
  • Tsid_plain is a standard layout type

Constructor & Destructor Documentation

◆ Tsid_plain() [1/2]

mysql::gtid::Tsid_plain::Tsid_plain ( )
default

Default ctor.

◆ Tsid_plain() [2/2]

mysql::gtid::Tsid_plain::Tsid_plain ( const Tsid tsid)
explicit

Construct from tsid object.

Parameters
tsidtsid to copy

Member Function Documentation

◆ clear()

void mysql::gtid::Tsid_plain::clear ( )

Clear this TSID.

◆ to_string()

std::size_t mysql::gtid::Tsid_plain::to_string ( char *  out) const

Copies internal tsid into a given buffer.

Parameters
[out]outBuffer, needs to be pre-allocated
Returns
Number of bytes written into the buffer

Friends And Related Function Documentation

◆ Tsid

friend class Tsid
friend

Member Data Documentation

◆ m_tag

Tag_plain mysql::gtid::Tsid_plain::m_tag
private

GTID Tag.

◆ m_uuid

Uuid mysql::gtid::Tsid_plain::m_uuid
private

GTID UUID.


The documentation for this struct was generated from the following files: