|
SWC-DB
v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
|
Go to the documentation of this file.
6 #ifndef swcdb_manager_MngrStatus_h
7 #define swcdb_manager_MngrStatus_h
15 namespace SWC {
namespace Manager {
21 typedef std::shared_ptr<MngrStatus>
Ptr;
48 return role == other.role &&
70 void print(std::ostream& out)
const {
71 out <<
"MngrStatus(priority=" <<
priority
98 #endif // swcdb_manager_MngrStatus_h
SWC_CAN_INLINE MngrStatus(uint8_t a_role, cid_t begin, cid_t end, const Comm::EndPoints &a_endpoints, Comm::ConnHandlerPtr c, uint32_t pr)
SWC_CAN_INLINE void encode_i32(uint8_t **bufp, uint32_t val) noexcept
std::shared_ptr< MngrStatus > Ptr
const char *SWC_CONST_FUNC to_string(Column typ) noexcept
size_t encoded_length() const noexcept
constexpr SWC_CAN_INLINE void encode_i8(uint8_t **bufp, uint8_t val) noexcept
SWC_CAN_INLINE uint8_t encoded_length(const Comm::EndPoint &endpoint) noexcept
void print(std::ostream &out, const EndPoints &endpoints)
void encode(uint8_t **bufp, const Comm::EndPoint &endpoint)
Core::Atomic< uint32_t > priority
void encode(uint8_t **bufp) const
The SWC-DB C++ namespace 'SWC'.
constexpr SWC_CAN_INLINE uint8_t encoded_length_vi64(uint64_t val) noexcept
const Comm::EndPoints endpoints
std::shared_ptr< ConnHandler > ConnHandlerPtr
Comm::ConnHandlerPtr conn
SWC_CAN_INLINE Comm::EndPoints decode_endpoints(const uint8_t **bufp, size_t *remainp)
void print(std::ostream &out) const
constexpr SWC_CAN_INLINE T load() const noexcept
SWC_CAN_INLINE bool eq_grouping(const MngrStatus &other) const noexcept
constexpr SWC_CAN_INLINE uint64_t decode_vi64(const uint8_t **bufp, size_t *remainp)
constexpr SWC_CAN_INLINE void encode_vi64(uint8_t **bufp, uint64_t val)
Core::Atomic< DB::Types::MngrState > state
Core::Vector< MngrStatus::Ptr > MngrsStatus
SWC_CAN_INLINE MngrStatus(const uint8_t **bufp, size_t *remainp)
constexpr SWC_CAN_INLINE uint8_t decode_i8(const uint8_t **bufp, size_t *remainp)
SWC_CAN_INLINE uint32_t decode_i32(const uint8_t **bufp, size_t *remainp)
std::string to_string(uint8_t role)