24#ifndef GCS_XCOM_SYNODE_H
25#define GCS_XCOM_SYNODE_H
28#include <unordered_set>
72 std::hash<std::string> hash_function;
75 formatter <<
"g" << s.get_synod().group_id <<
"m" << s.get_synod().msgno
76 <<
"n" << s.get_synod().node;
77 auto representation = formatter.str();
79 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:39
Gcs_xcom_synode() noexcept
Definition: gcs_xcom_synode.cc:26
synode_no synode_
Definition: gcs_xcom_synode.h:57
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:43
synode_no const & get_synod() const
Definition: gcs_xcom_synode.cc:47
std::unordered_set< Gcs_xcom_synode > Gcs_xcom_synode_set
Definition: gcs_xcom_synode.h:84
Definition: gcs_xcom_synode.h:64
std::basic_ostringstream< char, std::char_traits< char >, ut::allocator< char > > ostringstream
Specialization of basic_ostringstream which uses ut::allocator.
Definition: ut0new.h:2872
std::size_t operator()(Gcs_xcom_synode const &s) const noexcept
Definition: gcs_xcom_synode.h:67