MySQL 8.0.39
Source Code Documentation
Gcs_xcom_view_identifier Class Reference

#include <gcs_xcom_view_identifier.h>

Inheritance diagram for Gcs_xcom_view_identifier:
[legend]

Public Member Functions

 Gcs_xcom_view_identifier (uint64_t fixed_part_arg, uint32_t monotonic_part_arg)
 
 Gcs_xcom_view_identifier (const Gcs_xcom_view_identifier &)=default
 
uint64_t get_fixed_part () const
 
uint32_t get_monotonic_part () const
 
void increment_by_one ()
 
const std::string & get_representation () const override
 Returns a normalized representation of the DTO. More...
 
Gcs_view_identifierclone () const override
 Returns a copy of this object. More...
 
- Public Member Functions inherited from Gcs_view_identifier
 Gcs_view_identifier ()=default
 
 Gcs_view_identifier (const Gcs_view_identifier &)=default
 
 Gcs_view_identifier (Gcs_view_identifier &&)=default
 
Gcs_view_identifieroperator= (const Gcs_view_identifier &)=default
 
Gcs_view_identifieroperator= (Gcs_view_identifier &&)=default
 
bool operator< (const Gcs_view_identifier &other) const
 Redefinition of the operator less, to allow usage as key in maps. More...
 
bool operator== (const Gcs_view_identifier &other) const
 Redefinition of the operator equals, to allow usage in sets. More...
 
bool operator!= (const Gcs_view_identifier &other) const
 
virtual ~Gcs_view_identifier ()=default
 

Private Member Functions

void init (uint64_t fixed_part_arg, uint32_t monotonic_part_arg)
 
bool equals (const Gcs_view_identifier &other) const override
 
bool lessThan (const Gcs_view_identifier &other) const override
 

Private Attributes

uint64_t m_fixed_part
 
uint32_t m_monotonic_part
 
std::string m_representation
 

Constructor & Destructor Documentation

◆ Gcs_xcom_view_identifier() [1/2]

Gcs_xcom_view_identifier::Gcs_xcom_view_identifier ( uint64_t  fixed_part_arg,
uint32_t  monotonic_part_arg 
)
explicit

◆ Gcs_xcom_view_identifier() [2/2]

Gcs_xcom_view_identifier::Gcs_xcom_view_identifier ( const Gcs_xcom_view_identifier )
default

Member Function Documentation

◆ clone()

Gcs_view_identifier * Gcs_xcom_view_identifier::clone ( ) const
overridevirtual

Returns a copy of this object.

Since this object is an interface, this is necessary to generate copies of it.

Returns
a copy of the current object

Implements Gcs_view_identifier.

◆ equals()

bool Gcs_xcom_view_identifier::equals ( const Gcs_view_identifier other) const
overrideprivatevirtual

Implements Gcs_view_identifier.

◆ get_fixed_part()

uint64_t Gcs_xcom_view_identifier::get_fixed_part ( ) const
inline

◆ get_monotonic_part()

uint32_t Gcs_xcom_view_identifier::get_monotonic_part ( ) const
inline

◆ get_representation()

const std::string & Gcs_xcom_view_identifier::get_representation ( ) const
overridevirtual

Returns a normalized representation of the DTO.

Returns
a const char * containing the normalized representation of the DTO

Implements Gcs_view_identifier.

◆ increment_by_one()

void Gcs_xcom_view_identifier::increment_by_one ( )

◆ init()

void Gcs_xcom_view_identifier::init ( uint64_t  fixed_part_arg,
uint32_t  monotonic_part_arg 
)
private

◆ lessThan()

bool Gcs_xcom_view_identifier::lessThan ( const Gcs_view_identifier other) const
overrideprivatevirtual

Implements Gcs_view_identifier.

Member Data Documentation

◆ m_fixed_part

uint64_t Gcs_xcom_view_identifier::m_fixed_part
private

◆ m_monotonic_part

uint32_t Gcs_xcom_view_identifier::m_monotonic_part
private

◆ m_representation

std::string Gcs_xcom_view_identifier::m_representation
private

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