MySQL 9.1.0
Source Code Documentation
Gcs_member_identifier Class Reference

It represents the identity of a group member within a certain group. More...

#include <gcs_member_identifier.h>

Public Member Functions

 Gcs_member_identifier (const std::string &member_id)
 Gcs_member_identifier constructor. More...
 
 Gcs_member_identifier ()=default
 
 Gcs_member_identifier (const Gcs_member_identifier &)=default
 
 Gcs_member_identifier (Gcs_member_identifier &&)=default
 
Gcs_member_identifieroperator= (const Gcs_member_identifier &)=default
 
Gcs_member_identifieroperator= (Gcs_member_identifier &&)=default
 
virtual ~Gcs_member_identifier ()=default
 
const std::string & get_member_id () const
 
bool operator< (const Gcs_member_identifier &other) const
 Redefinition of the operator less, to allow usage as key in maps. More...
 
bool operator== (const Gcs_member_identifier &other) const
 Redefinition of the operator equals, to allow usage in sets. More...
 

Private Attributes

std::string m_member_id
 

Detailed Description

It represents the identity of a group member within a certain group.

It can be the same or different within groups.

One should avoid creating this representation from outside the binding, since each one might have its own internal representations. Instead one should use the Gcs_control_interface::get_local_information method to know our own identification within the group.

Constructor & Destructor Documentation

◆ Gcs_member_identifier() [1/4]

Gcs_member_identifier::Gcs_member_identifier ( const std::string &  member_id)
explicit

Gcs_member_identifier constructor.

Parameters
[in]member_idthe member identifier

◆ Gcs_member_identifier() [2/4]

Gcs_member_identifier::Gcs_member_identifier ( )
default

◆ Gcs_member_identifier() [3/4]

Gcs_member_identifier::Gcs_member_identifier ( const Gcs_member_identifier )
default

◆ Gcs_member_identifier() [4/4]

Gcs_member_identifier::Gcs_member_identifier ( Gcs_member_identifier &&  )
default

◆ ~Gcs_member_identifier()

virtual Gcs_member_identifier::~Gcs_member_identifier ( )
virtualdefault

Member Function Documentation

◆ get_member_id()

const std::string & Gcs_member_identifier::get_member_id ( ) const
Returns
the member identifier

◆ operator<()

bool Gcs_member_identifier::operator< ( const Gcs_member_identifier other) const

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

Parameters
[in]otherthe Gcs_member_identifier to compare to
Returns
the result of comparing internal representation with the compare operation from the string object

◆ operator=() [1/2]

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

◆ operator=() [2/2]

Gcs_member_identifier & Gcs_member_identifier::operator= ( Gcs_member_identifier &&  )
default

◆ operator==()

bool Gcs_member_identifier::operator== ( const Gcs_member_identifier other) const

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

Parameters
[in]otherthe Gcs_member_identifier to compare to
Returns
the result of comparing internal representation with the compare operation from the string object

Member Data Documentation

◆ m_member_id

std::string Gcs_member_identifier::m_member_id
private

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