MySQL 9.1.0
Source Code Documentation
|
This represents the membership view that a member has from a group. More...
#include <gcs_view.h>
Public Types | |
enum | Gcs_view_error_code { OK = 1 , MEMBER_EXPELLED } |
Define error codes associated to the view. More... | |
Public Member Functions | |
Gcs_view (const std::vector< Gcs_member_identifier > &members, const Gcs_view_identifier &view_id, const std::vector< Gcs_member_identifier > &leaving, const std::vector< Gcs_member_identifier > &joined, const Gcs_group_identifier &group_id) | |
Gcs_view constructor. More... | |
Gcs_view (const std::vector< Gcs_member_identifier > &members, const Gcs_view_identifier &view_id, const std::vector< Gcs_member_identifier > &leaving, const std::vector< Gcs_member_identifier > &joined, const Gcs_group_identifier &group_id, Gcs_view::Gcs_view_error_code error_code) | |
Gcs_view (Gcs_view const &view) | |
Gcs_view constructor which does a deep copy of the object passed as parameter. More... | |
virtual | ~Gcs_view () |
const Gcs_view_identifier & | get_view_id () const |
const Gcs_group_identifier & | get_group_id () const |
const std::vector< Gcs_member_identifier > & | get_members () const |
const std::vector< Gcs_member_identifier > & | get_leaving_members () const |
const std::vector< Gcs_member_identifier > & | get_joined_members () const |
Gcs_view::Gcs_view_error_code | get_error_code () const |
const Gcs_member_identifier * | get_member (const std::string &member_id) const |
bool | has_member (const std::string &member_id) const |
Private Member Functions | |
void | clone (const std::vector< Gcs_member_identifier > &members, const Gcs_view_identifier &view_id, const std::vector< Gcs_member_identifier > &leaving, const std::vector< Gcs_member_identifier > &joined, const Gcs_group_identifier &group_id, Gcs_view::Gcs_view_error_code error_code) |
Gcs_view & | operator= (Gcs_view const &) |
Private Attributes | |
std::vector< Gcs_member_identifier > * | m_members |
Gcs_view_identifier * | m_view_id |
std::vector< Gcs_member_identifier > * | m_leaving |
std::vector< Gcs_member_identifier > * | m_joined |
Gcs_group_identifier * | m_group_id |
Gcs_view::Gcs_view_error_code | m_error_code |
This represents the membership view that a member has from a group.
This objects contains:
There are two ways to obtain this:
|
explicit |
Gcs_view constructor.
[in] | members | group members |
[in] | view_id | the view identifier |
[in] | leaving | the members that left from the previous view |
[in] | joined | the new members |
[in] | group_id | the group identifier |
|
explicit |
[in] | members | group members |
[in] | view_id | the view identifier |
[in] | leaving | the members that left from the previous view |
[in] | joined | the new members |
[in] | group_id | the group identifier |
[in] | error_code | error code associated to the view. |
|
explicit |
Gcs_view constructor which does a deep copy of the object passed as parameter.
[in] | view | reference to a Gcs_view object |
|
virtual |
|
private |
Gcs_view::Gcs_view_error_code Gcs_view::get_error_code | ( | ) | const |
const Gcs_group_identifier & Gcs_view::get_group_id | ( | ) | const |
const std::vector< Gcs_member_identifier > & Gcs_view::get_joined_members | ( | ) | const |
const std::vector< Gcs_member_identifier > & Gcs_view::get_leaving_members | ( | ) | const |
const Gcs_member_identifier * Gcs_view::get_member | ( | const std::string & | member_id | ) | const |
const std::vector< Gcs_member_identifier > & Gcs_view::get_members | ( | ) | const |
const Gcs_view_identifier & Gcs_view::get_view_id | ( | ) | const |
bool Gcs_view::has_member | ( | const std::string & | member_id | ) | const |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |