SWC-DB  v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
SWC::Comm::Protocol::Mngr::Params::RgrMngId Class Referencefinal

#include <swcdb/db/Protocol/Mngr/params/RgrMngId.h>

+ Inheritance diagram for SWC::Comm::Protocol::Mngr::Params::RgrMngId:
+ Collaboration diagram for SWC::Comm::Protocol::Mngr::Params::RgrMngId:

Public Types

enum  Flag : uint8_t {
  MNGR_ASSIGNED = 1,
  MNGR_NOT_ACTIVE = 2,
  MNGR_REASSIGN = 3,
  MNGR_REREQ = 4,
  MNGR_ACK = 5,
  RGR_REQ = 6,
  RGR_ACK = 7,
  RGR_DISAGREE = 8,
  RGR_SHUTTINGDOWN = 9
}
 

Public Member Functions

SWC_CAN_INLINE RgrMngId () noexcept
 
SWC_CAN_INLINE RgrMngId (rgrid_t a_rgrid, Flag a_flag, const EndPoints &a_endpoints)
 
SWC_CAN_INLINE ~RgrMngId () noexcept
 
void print (std::ostream &out) const
 
- Public Member Functions inherited from SWC::Comm::Serializable
size_t encoded_length () const
 
void encode (uint8_t **bufp) const
 
void decode (const uint8_t **bufp, size_t *remainp)
 

Public Attributes

EndPoints endpoints
 
rgrid_t rgrid
 
Flag flag
 
FS::Type fs
 

Private Member Functions

size_t internal_encoded_length () const override
 
void internal_encode (uint8_t **bufp) const override
 
void internal_decode (const uint8_t **bufp, size_t *remainp) override
 

Additional Inherited Members

- Protected Member Functions inherited from SWC::Comm::Serializable
virtual ~Serializable () noexcept
 

Detailed Description

Definition at line 17 of file RgrMngId.h.

Member Enumeration Documentation

◆ Flag

Enumerator
MNGR_ASSIGNED 
MNGR_NOT_ACTIVE 
MNGR_REASSIGN 
MNGR_REREQ 
MNGR_ACK 
RGR_REQ 
RGR_ACK 
RGR_DISAGREE 
RGR_SHUTTINGDOWN 

Definition at line 20 of file RgrMngId.h.

Constructor & Destructor Documentation

◆ RgrMngId() [1/2]

SWC_CAN_INLINE SWC::Comm::Protocol::Mngr::Params::RgrMngId::RgrMngId ( )
inlinenoexcept

Definition at line 33 of file RgrMngId.h.

◆ RgrMngId() [2/2]

SWC_CAN_INLINE SWC::Comm::Protocol::Mngr::Params::RgrMngId::RgrMngId ( rgrid_t  a_rgrid,
Flag  a_flag,
const EndPoints a_endpoints 
)
inline

Definition at line 39 of file RgrMngId.h.

◆ ~RgrMngId()

SWC_CAN_INLINE SWC::Comm::Protocol::Mngr::Params::RgrMngId::~RgrMngId ( )
inlinenoexcept

Definition at line 46 of file RgrMngId.h.

Member Function Documentation

◆ internal_decode()

void SWC::Comm::Protocol::Mngr::Params::RgrMngId::internal_decode ( const uint8_t **  bufp,
size_t *  remainp 
)
inlineoverrideprivatevirtual

Implements SWC::Comm::Serializable.

Definition at line 89 of file RgrMngId.h.

References SWC::Serialization::decode(), SWC::Serialization::decode_i8(), SWC::Serialization::decode_vi64(), endpoints, flag, fs, SWC::Error::MNGR_NOT_ACTIVE, and rgrid.

+ Here is the call graph for this function:

◆ internal_encode()

void SWC::Comm::Protocol::Mngr::Params::RgrMngId::internal_encode ( uint8_t **  bufp) const
inlineoverrideprivatevirtual

Implements SWC::Comm::Serializable.

Definition at line 77 of file RgrMngId.h.

References SWC::Serialization::encode(), SWC::Serialization::encode_i8(), SWC::Serialization::encode_vi64(), endpoints, flag, fs, SWC::Error::MNGR_NOT_ACTIVE, and rgrid.

+ Here is the call graph for this function:

◆ internal_encoded_length()

size_t SWC::Comm::Protocol::Mngr::Params::RgrMngId::internal_encoded_length ( ) const
inlineoverrideprivatevirtual

Implements SWC::Comm::Serializable.

Definition at line 64 of file RgrMngId.h.

References SWC::Serialization::encoded_length(), SWC::Serialization::encoded_length_vi64(), endpoints, flag, SWC::Error::MNGR_NOT_ACTIVE, and rgrid.

+ Here is the call graph for this function:

◆ print()

void SWC::Comm::Protocol::Mngr::Params::RgrMngId::print ( std::ostream &  out) const
inline

Definition at line 48 of file RgrMngId.h.

References endpoints, flag, fs, SWC::Comm::print(), rgrid, and SWC::FS::to_string().

Referenced by SWC::Comm::Protocol::Mngr::Handler::RgrMngId::operator()().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ endpoints

EndPoints SWC::Comm::Protocol::Mngr::Params::RgrMngId::endpoints

◆ flag

◆ fs

◆ rgrid


The documentation for this class was generated from the following file: