MySQL 9.0.0
Source Code Documentation
|
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_identifier & | operator= (const Gcs_member_identifier &)=default |
Gcs_member_identifier & | operator= (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 |
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.
|
explicit |
Gcs_member_identifier constructor.
[in] | member_id | the member identifier |
|
default |
|
default |
|
default |
|
virtualdefault |
const std::string & Gcs_member_identifier::get_member_id | ( | ) | const |
bool Gcs_member_identifier::operator< | ( | const Gcs_member_identifier & | other | ) | const |
Redefinition of the operator less, to allow usage as key in maps.
[in] | other | the Gcs_member_identifier to compare to |
|
default |
|
default |
bool Gcs_member_identifier::operator== | ( | const Gcs_member_identifier & | other | ) | const |
Redefinition of the operator equals, to allow usage in sets.
[in] | other | the Gcs_member_identifier to compare to |
|
private |