23#ifndef GCS_XCOM_SYNODE_H
24#define GCS_XCOM_SYNODE_H
27#include <unordered_set>
71 std::hash<std::string> hash_function;
74 formatter <<
"g" << s.get_synod().group_id <<
"m" << s.get_synod().msgno
75 <<
"n" << s.get_synod().node;
76 auto representation = formatter.str();
78 return hash_function(representation);
Defines a message identifier so that joining members can fetch the associated packet from a remote no...
Definition: gcs_xcom_synode.h:38
Gcs_xcom_synode() noexcept
Definition: gcs_xcom_synode.cc:25
synode_no synode_
Definition: gcs_xcom_synode.h:56
Gcs_xcom_synode & operator=(Gcs_xcom_synode const &other)=default
Gcs_xcom_synode(Gcs_xcom_synode const &other)=default
bool operator==(const Gcs_xcom_synode &other) const
Definition: gcs_xcom_synode.cc:42
synode_no const & get_synod() const
Definition: gcs_xcom_synode.cc:46
std::unordered_set< Gcs_xcom_synode > Gcs_xcom_synode_set
Definition: gcs_xcom_synode.h:83
Definition: varlen_sort.h:183
std::basic_ostringstream< char, std::char_traits< char >, ut::allocator< char > > ostringstream
Specialization of basic_ostringstream which uses ut::allocator.
Definition: ut0new.h:2869
std::size_t operator()(Gcs_xcom_synode const &s) const noexcept
Definition: gcs_xcom_synode.h:66