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::RgrGetRsp Class Referencefinal

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

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

Public Member Functions

SWC_CAN_INLINE RgrGetRsp (int a_err=Error::OK) noexcept
 
SWC_CAN_INLINE RgrGetRsp (cid_t a_cid, rid_t a_rid) noexcept
 
 RgrGetRsp (int err, const uint8_t *ptr, size_t remain) noexcept
 
SWC_CAN_INLINE ~RgrGetRsp () 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
 
int err
 
cid_t cid
 
rid_t rid
 
DB::Cell::Key range_end
 
DB::Cell::Key range_begin
 
int64_t revision
 

Private Member Functions

size_t SWC_PURE_FUNC 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 53 of file RgrGet.h.

Constructor & Destructor Documentation

◆ RgrGetRsp() [1/3]

SWC_CAN_INLINE SWC::Comm::Protocol::Mngr::Params::RgrGetRsp::RgrGetRsp ( int  a_err = Error::OK)
inlinenoexcept

Definition at line 57 of file RgrGet.h.

◆ RgrGetRsp() [2/3]

SWC_CAN_INLINE SWC::Comm::Protocol::Mngr::Params::RgrGetRsp::RgrGetRsp ( cid_t  a_cid,
rid_t  a_rid 
)
inlinenoexcept

Definition at line 65 of file RgrGet.h.

◆ RgrGetRsp() [3/3]

SWC::Comm::Protocol::Mngr::Params::RgrGetRsp::RgrGetRsp ( int  err,
const uint8_t *  ptr,
size_t  remain 
)
noexcept

Definition at line 58 of file RgrGet.cc.

References SWC::Error::Exception::code(), decode(), SWC::LOG_ERROR, SWC_CURRENT_EXCEPTION, SWC_LOG_OSTREAM, and SWC_LOG_OUT.

+ Here is the call graph for this function:

◆ ~RgrGetRsp()

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

Definition at line 75 of file RgrGet.h.

Member Function Documentation

◆ internal_decode()

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

Implements SWC::Comm::Serializable.

Definition at line 116 of file RgrGet.cc.

References cid, SWC::Serialization::decode(), SWC::DB::Cell::Key::decode(), SWC::Serialization::decode_vi32(), SWC::Serialization::decode_vi64(), endpoints, err, SWC::DB::Types::SystemColumn::is_master(), range_begin, range_end, revision, and rid.

+ Here is the call graph for this function:

◆ internal_encode()

void SWC::Comm::Protocol::Mngr::Params::RgrGetRsp::internal_encode ( uint8_t **  bufp) const
overrideprivatevirtual

Implements SWC::Comm::Serializable.

Definition at line 102 of file RgrGet.cc.

References cid, SWC::DB::Cell::Key::encode(), SWC::Serialization::encode(), SWC::Serialization::encode_vi32(), SWC::Serialization::encode_vi64(), endpoints, err, SWC::DB::Types::SystemColumn::is_master(), range_begin, range_end, revision, and rid.

+ Here is the call graph for this function:

◆ internal_encoded_length()

size_t SWC::Comm::Protocol::Mngr::Params::RgrGetRsp::internal_encoded_length ( ) const
overrideprivatevirtual

Implements SWC::Comm::Serializable.

Definition at line 87 of file RgrGet.cc.

References cid, SWC::DB::Cell::Key::encoded_length(), SWC::Serialization::encoded_length(), SWC::Serialization::encoded_length_vi32(), SWC::Serialization::encoded_length_vi64(), endpoints, err, SWC::DB::Types::SystemColumn::is_master(), range_begin, range_end, revision, and rid.

+ Here is the call graph for this function:

◆ print()

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

Definition at line 72 of file RgrGet.cc.

References cid, endpoints, err, SWC::DB::Types::SystemColumn::is_master(), SWC::DB::Cell::Key::print(), SWC::Comm::print(), SWC::Error::print(), range_begin, range_end, revision, and rid.

Referenced by SWC::Comm::Protocol::Mngr::Handler::rgr_get().

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

Member Data Documentation

◆ cid

◆ endpoints

◆ err

◆ range_begin

◆ range_end

◆ revision

◆ rid


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