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::DB::Specs::Scan Class Referencefinal

#include <swcdb/db/Cells/SpecsScan.h>

+ Collaboration diagram for SWC::DB::Specs::Scan:

Public Types

typedef Core::Vector< ColumnColumns
 

Public Member Functions

SWC_CAN_INLINE Scan () noexcept
 
SWC_CAN_INLINE Scan (uint32_t reserve)
 
SWC_CAN_INLINE Scan (const Scan &other)
 
SWC_CAN_INLINE Scan (Scan &&other) noexcept
 
SWC_CAN_INLINE Scan (const Columns &a_columns)
 
SWC_CAN_INLINE Scan (Columns &&a_columns) noexcept
 
SWC_CAN_INLINE Scan (const uint8_t **bufp, size_t *remainp)
 
 ~Scan () noexcept
 
SWC_CAN_INLINE Scanoperator= (Scan &&other) noexcept
 
SWC_CAN_INLINE Scanoperator= (const Scan &other)
 
SWC_CAN_INLINE void free () noexcept
 
bool SWC_PURE_FUNC equal (const Scan &other) const noexcept
 
size_t SWC_PURE_FUNC encoded_length () const noexcept
 
void encode (uint8_t **bufp) const
 
void decode (const uint8_t **bufp, size_t *remainp)
 
SWC_CAN_INLINE std::string to_string () const
 
void print (std::ostream &out) const
 
void display (std::ostream &out, bool pretty=true, std::string offset="") const
 

Public Attributes

Columns columns
 
Flags flags
 

Detailed Description

Definition at line 21 of file SpecsScan.h.

Member Typedef Documentation

◆ Columns

Definition at line 24 of file SpecsScan.h.

Constructor & Destructor Documentation

◆ Scan() [1/7]

SWC_CAN_INLINE SWC::DB::Specs::Scan::Scan ( )
inlineexplicitnoexcept

Definition at line 27 of file SpecsScan.h.

◆ Scan() [2/7]

SWC_CAN_INLINE SWC::DB::Specs::Scan::Scan ( uint32_t  reserve)
inlineexplicit

Definition at line 30 of file SpecsScan.h.

References columns, and SWC::Core::Vector< T, SizeT, GROW_SZ >::reserve().

+ Here is the call graph for this function:

◆ Scan() [3/7]

SWC_CAN_INLINE SWC::DB::Specs::Scan::Scan ( const Scan other)
inlineexplicit

Definition at line 35 of file SpecsScan.h.

◆ Scan() [4/7]

SWC_CAN_INLINE SWC::DB::Specs::Scan::Scan ( Scan &&  other)
inlineexplicitnoexcept

Definition at line 40 of file SpecsScan.h.

◆ Scan() [5/7]

SWC_CAN_INLINE SWC::DB::Specs::Scan::Scan ( const Columns a_columns)
inlineexplicit

Definition at line 45 of file SpecsScan.h.

◆ Scan() [6/7]

SWC_CAN_INLINE SWC::DB::Specs::Scan::Scan ( Columns &&  a_columns)
inlineexplicitnoexcept

Definition at line 48 of file SpecsScan.h.

◆ Scan() [7/7]

SWC_CAN_INLINE SWC::DB::Specs::Scan::Scan ( const uint8_t **  bufp,
size_t *  remainp 
)
inlineexplicit

Definition at line 52 of file SpecsScan.h.

References decode().

+ Here is the call graph for this function:

◆ ~Scan()

SWC::DB::Specs::Scan::~Scan ( )
inlinenoexcept

Definition at line 56 of file SpecsScan.h.

Member Function Documentation

◆ decode()

void SWC::DB::Specs::Scan::decode ( const uint8_t **  bufp,
size_t *  remainp 
)

Definition at line 39 of file SpecsScan.cc.

References columns, SWC::DB::Specs::Flags::decode(), SWC::Serialization::decode_vi32(), SWC::Core::Vector< T, SizeT, GROW_SZ >::emplace_back(), flags, free(), and SWC::Core::Vector< T, SizeT, GROW_SZ >::reserve().

Referenced by Scan().

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

◆ display()

void SWC::DB::Specs::Scan::display ( std::ostream &  out,
bool  pretty = true,
std::string  offset = "" 
) const

Definition at line 58 of file SpecsScan.cc.

References columns, SWC::DB::Specs::Flags::display(), and flags.

Referenced by SWC::Utils::shell::Statistics::list_metrics().

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

◆ encode()

void SWC::DB::Specs::Scan::encode ( uint8_t **  bufp) const

Definition at line 32 of file SpecsScan.cc.

References columns, SWC::DB::Specs::Flags::encode(), SWC::Serialization::encode_vi32(), flags, and SWC::Core::Vector< T, SizeT, GROW_SZ >::size().

+ Here is the call graph for this function:

◆ encoded_length()

size_t SWC::DB::Specs::Scan::encoded_length ( ) const
noexcept

Definition at line 25 of file SpecsScan.cc.

References columns, SWC::DB::Specs::Flags::encoded_length(), SWC::Serialization::encoded_length_vi32(), flags, and SWC::Core::Vector< T, SizeT, GROW_SZ >::size().

+ Here is the call graph for this function:

◆ equal()

bool SWC::DB::Specs::Scan::equal ( const Scan other) const
noexcept

Definition at line 14 of file SpecsScan.cc.

References flags.

◆ free()

SWC_CAN_INLINE void SWC::DB::Specs::Scan::free ( )
inlinenoexcept

Definition at line 73 of file SpecsScan.h.

References SWC::Core::Vector< T, SizeT, GROW_SZ >::clear(), and columns.

Referenced by decode().

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

◆ operator=() [1/2]

SWC_CAN_INLINE Scan& SWC::DB::Specs::Scan::operator= ( const Scan other)
inline

Definition at line 66 of file SpecsScan.h.

References columns, SWC::DB::Specs::Flags::copy(), and flags.

+ Here is the call graph for this function:

◆ operator=() [2/2]

SWC_CAN_INLINE Scan& SWC::DB::Specs::Scan::operator= ( Scan &&  other)
inlinenoexcept

Definition at line 59 of file SpecsScan.h.

References columns, SWC::DB::Specs::Flags::copy(), and flags.

+ Here is the call graph for this function:

◆ print()

void SWC::DB::Specs::Scan::print ( std::ostream &  out) const

Definition at line 48 of file SpecsScan.cc.

References columns, flags, and SWC::DB::Specs::Flags::print().

Referenced by to_string().

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

◆ to_string()

SWC_CAN_INLINE std::string SWC::DB::Specs::Scan::to_string ( ) const
inline

Definition at line 86 of file SpecsScan.h.

References print().

+ Here is the call graph for this function:

Member Data Documentation

◆ columns

◆ flags


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