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::Rgr::Params::Report::RspRes Class Referencefinal

#include <swcdb/db/Protocol/Rgr/params/Report.h>

+ Inheritance diagram for SWC::Comm::Protocol::Rgr::Params::Report::RspRes:
+ Collaboration diagram for SWC::Comm::Protocol::Rgr::Params::Report::RspRes:

Public Member Functions

SWC_CAN_INLINE RspRes (uint32_t a_mem=0, uint32_t a_cpu=0, size_t a_ranges=0) noexcept
 
void display (std::ostream &out, const std::string &offset="") 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

uint32_t mem
 
uint32_t cpu
 
size_t ranges
 

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 Report.h.

Constructor & Destructor Documentation

◆ RspRes()

SWC_CAN_INLINE SWC::Comm::Protocol::Rgr::Params::Report::RspRes::RspRes ( uint32_t  a_mem = 0,
uint32_t  a_cpu = 0,
size_t  a_ranges = 0 
)
inlinenoexcept

Definition at line 57 of file Report.h.

Member Function Documentation

◆ display()

void SWC::Comm::Protocol::Rgr::Params::Report::RspRes::display ( std::ostream &  out,
const std::string &  offset = "" 
) const

Definition at line 33 of file Report.cc.

References cpu, mem, and ranges.

Referenced by SWC::Utils::shell::Rgr::report_resources().

+ Here is the caller graph for this function:

◆ internal_decode()

void SWC::Comm::Protocol::Rgr::Params::Report::RspRes::internal_decode ( const uint8_t **  bufp,
size_t *  remainp 
)
overrideprivatevirtual

Implements SWC::Comm::Serializable.

Definition at line 53 of file Report.cc.

References cpu, SWC::Serialization::decode_vi32(), SWC::Serialization::decode_vi64(), mem, and ranges.

+ Here is the call graph for this function:

◆ internal_encode()

void SWC::Comm::Protocol::Rgr::Params::Report::RspRes::internal_encode ( uint8_t **  bufp) const
overrideprivatevirtual

Implements SWC::Comm::Serializable.

Definition at line 47 of file Report.cc.

References cpu, SWC::Serialization::encode_vi32(), SWC::Serialization::encode_vi64(), mem, and ranges.

+ Here is the call graph for this function:

◆ internal_encoded_length()

size_t SWC::Comm::Protocol::Rgr::Params::Report::RspRes::internal_encoded_length ( ) const
overrideprivatevirtual

Implements SWC::Comm::Serializable.

Definition at line 41 of file Report.cc.

References cpu, SWC::Serialization::encoded_length_vi32(), SWC::Serialization::encoded_length_vi64(), mem, and ranges.

+ Here is the call graph for this function:

Member Data Documentation

◆ cpu

uint32_t SWC::Comm::Protocol::Rgr::Params::Report::RspRes::cpu

◆ mem

uint32_t SWC::Comm::Protocol::Rgr::Params::Report::RspRes::mem

◆ ranges

size_t SWC::Comm::Protocol::Rgr::Params::Report::RspRes::ranges

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