MySQL 9.1.0
Source Code Documentation
Gcs_view_identifier Class Referenceabstract

This represents the identification of a certain view of a certain group in a moment in time. More...

#include <gcs_view_identifier.h>

Inheritance diagram for Gcs_view_identifier:
[legend]

Public Member Functions

 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
 
virtual const std::string & get_representation () const =0
 Returns a normalized representation of the DTO. More...
 
virtual Gcs_view_identifierclone () const =0
 Returns a copy of this object. More...
 
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

virtual bool equals (const Gcs_view_identifier &other) const =0
 
virtual bool lessThan (const Gcs_view_identifier &other) const =0
 

Detailed Description

This represents the identification of a certain view of a certain group in a moment in time.

This identifier must increase monotonically and be unique, in order to provide the notion of "happened before".

The get_representation() method is virtual, since each binding implementation might provide its notion of view identifier. The only mandatory property is that they should be comparable.

Constructor & Destructor Documentation

◆ Gcs_view_identifier() [1/3]

Gcs_view_identifier::Gcs_view_identifier ( )
default

◆ Gcs_view_identifier() [2/3]

Gcs_view_identifier::Gcs_view_identifier ( const Gcs_view_identifier )
default

◆ Gcs_view_identifier() [3/3]

Gcs_view_identifier::Gcs_view_identifier ( Gcs_view_identifier &&  )
default

◆ ~Gcs_view_identifier()

virtual Gcs_view_identifier::~Gcs_view_identifier ( )
virtualdefault

Member Function Documentation

◆ clone()

virtual Gcs_view_identifier * Gcs_view_identifier::clone ( ) const
pure virtual

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

Implemented in Gcs_xcom_view_identifier.

◆ equals()

virtual bool Gcs_view_identifier::equals ( const Gcs_view_identifier other) const
privatepure virtual

Implemented in Gcs_xcom_view_identifier.

◆ get_representation()

virtual const std::string & Gcs_view_identifier::get_representation ( ) const
pure virtual

Returns a normalized representation of the DTO.

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

Implemented in Gcs_xcom_view_identifier.

◆ lessThan()

virtual bool Gcs_view_identifier::lessThan ( const Gcs_view_identifier other) const
privatepure virtual

Implemented in Gcs_xcom_view_identifier.

◆ operator!=()

bool Gcs_view_identifier::operator!= ( const Gcs_view_identifier other) const
inline

◆ operator<()

bool Gcs_view_identifier::operator< ( const Gcs_view_identifier other) const
inline

Redefinition of the operator less, to allow usage as key in maps.

Parameters
[in]otherthe Gcs_view_identifier to compare to
Returns
true if the objects is less than other, according to the internal representation of the object. false otherwise.

◆ operator=() [1/2]

Gcs_view_identifier & Gcs_view_identifier::operator= ( const Gcs_view_identifier )
default

◆ operator=() [2/2]

Gcs_view_identifier & Gcs_view_identifier::operator= ( Gcs_view_identifier &&  )
default

◆ operator==()

bool Gcs_view_identifier::operator== ( const Gcs_view_identifier other) const
inline

Redefinition of the operator equals, to allow usage in sets.

Parameters
[in]otherthe Gcs_view_identifier to compare to
Returns
true if the objects have the same internal representation. false otherwise.

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