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::Cell::Serial::Value::FieldUpdate Class Reference

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

+ Inheritance diagram for SWC::DB::Cell::Serial::Value::FieldUpdate:

Public Member Functions

SWC_CAN_INLINE FieldUpdate (uint8_t a_ctrl) noexcept
 
SWC_CAN_INLINE FieldUpdate (const uint8_t **ptrp, size_t *remainp)
 
 FieldUpdate (FieldUpdate &&) noexcept=default
 
FieldUpdateoperator= (FieldUpdate &&) noexcept=default
 
 FieldUpdate (const FieldUpdate &)=delete
 
FieldUpdateoperator= (const FieldUpdate &)=delete
 
virtual ~FieldUpdate () noexcept
 
SWC_CAN_INLINE bool set_ctrl (const char **ptr, uint32_t *remainp, bool w_value_ctrl) noexcept
 
SWC_CAN_INLINE void set_no_add_field () noexcept
 
SWC_CAN_INLINE bool is_no_add_field () const noexcept
 
SWC_CAN_INLINE void set_delete_field () noexcept
 
SWC_CAN_INLINE bool is_delete_field () const noexcept
 
SWC_CAN_INLINE void set_value_set () noexcept
 
SWC_CAN_INLINE bool is_value_set () const noexcept
 
SWC_CAN_INLINE void set_value_del () noexcept
 
SWC_CAN_INLINE bool is_value_del () const noexcept
 
SWC_CAN_INLINE bool is_sub_op_required () const noexcept
 
virtual SWC_CAN_INLINE uint24_t encoded_length () const noexcept
 
virtual SWC_CAN_INLINE void encode (uint8_t **bufp) const
 
virtual SWC_CAN_INLINE void decode (const uint8_t **ptrp, size_t *remainp)
 
virtual std::ostream & print (std::ostream &out) const
 

Public Attributes

uint8_t ctrl
 

Static Public Attributes

static constexpr const uint8_t CTRL_DEFAULT = 0x00
 
static constexpr const uint8_t CTRL_NO_ADD_FIELD = 0x01
 
static constexpr const uint8_t CTRL_DELETE_FIELD = 0x02
 
static constexpr const uint8_t CTRL_VALUE_SET = 0x04
 
static constexpr const uint8_t CTRL_VALUE_DEL = 0x08
 

Detailed Description

Definition at line 29 of file CellValueSerialFieldUpdate.h.

Constructor & Destructor Documentation

◆ FieldUpdate() [1/4]

SWC_CAN_INLINE SWC::DB::Cell::Serial::Value::FieldUpdate::FieldUpdate ( uint8_t  a_ctrl)
inlinenoexcept

Definition at line 37 of file CellValueSerialFieldUpdate.h.

◆ FieldUpdate() [2/4]

SWC_CAN_INLINE SWC::DB::Cell::Serial::Value::FieldUpdate::FieldUpdate ( const uint8_t **  ptrp,
size_t *  remainp 
)
inline

Definition at line 39 of file CellValueSerialFieldUpdate.h.

◆ FieldUpdate() [3/4]

SWC::DB::Cell::Serial::Value::FieldUpdate::FieldUpdate ( FieldUpdate &&  )
defaultnoexcept

◆ FieldUpdate() [4/4]

SWC::DB::Cell::Serial::Value::FieldUpdate::FieldUpdate ( const FieldUpdate )
delete

◆ ~FieldUpdate()

virtual SWC::DB::Cell::Serial::Value::FieldUpdate::~FieldUpdate ( )
inlinevirtualnoexcept

Definition at line 46 of file CellValueSerialFieldUpdate.h.

Member Function Documentation

◆ decode()

virtual SWC_CAN_INLINE void SWC::DB::Cell::Serial::Value::FieldUpdate::decode ( const uint8_t **  ptrp,
size_t *  remainp 
)
inlinevirtual

Reimplemented in SWC::DB::Cell::Serial::Value::FieldUpdate_LIST_ITEMS< UpdateField_T, ValueT >, SWC::DB::Cell::Serial::Value::FieldUpdate_LIST, and SWC::DB::Cell::Serial::Value::FieldUpdate_MATH.

Definition at line 121 of file CellValueSerialFieldUpdate.h.

References ctrl, and SWC::Serialization::decode_i8().

Referenced by SWC::DB::Cell::Serial::Value::FieldUpdate_MATH::decode(), and SWC::DB::Cell::Serial::Value::FieldUpdate_LIST::decode().

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

◆ encode()

virtual SWC_CAN_INLINE void SWC::DB::Cell::Serial::Value::FieldUpdate::encode ( uint8_t **  bufp) const
inlinevirtual

Reimplemented in SWC::DB::Cell::Serial::Value::FieldUpdate_LIST_ITEMS< UpdateField_T, ValueT >, SWC::DB::Cell::Serial::Value::FieldUpdate_LIST, and SWC::DB::Cell::Serial::Value::FieldUpdate_MATH.

Definition at line 117 of file CellValueSerialFieldUpdate.h.

References ctrl, and SWC::Serialization::encode_i8().

Referenced by SWC::DB::Cell::Serial::Value::FieldsWriter::add(), SWC::DB::Cell::Serial::Value::FieldUpdate_MATH::encode(), and SWC::DB::Cell::Serial::Value::FieldUpdate_LIST::encode().

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

◆ encoded_length()

virtual SWC_CAN_INLINE uint24_t SWC::DB::Cell::Serial::Value::FieldUpdate::encoded_length ( ) const
inlinevirtualnoexcept

◆ is_delete_field()

SWC_CAN_INLINE bool SWC::DB::Cell::Serial::Value::FieldUpdate::is_delete_field ( ) const
inlinenoexcept

Definition at line 89 of file CellValueSerialFieldUpdate.h.

References ctrl, and CTRL_DELETE_FIELD.

Referenced by is_sub_op_required(), print(), SWC::client::SQL::Reader::read_ts_and_value(), and SWC::Thrift::Converter::set().

+ Here is the caller graph for this function:

◆ is_no_add_field()

SWC_CAN_INLINE bool SWC::DB::Cell::Serial::Value::FieldUpdate::is_no_add_field ( ) const
inlinenoexcept

Definition at line 81 of file CellValueSerialFieldUpdate.h.

References ctrl, and CTRL_NO_ADD_FIELD.

Referenced by print().

+ Here is the caller graph for this function:

◆ is_sub_op_required()

SWC_CAN_INLINE bool SWC::DB::Cell::Serial::Value::FieldUpdate::is_sub_op_required ( ) const
inlinenoexcept

Definition at line 109 of file CellValueSerialFieldUpdate.h.

References is_delete_field(), is_value_del(), and is_value_set().

Referenced by SWC::DB::Cell::Serial::Value::FieldUpdate_MATH::decode(), SWC::DB::Cell::Serial::Value::FieldUpdate_LIST::decode(), SWC::DB::Cell::Serial::Value::FieldUpdate_MATH::encode(), SWC::DB::Cell::Serial::Value::FieldUpdate_LIST::encode(), SWC::DB::Cell::Serial::Value::FieldUpdate_MATH::encoded_length(), and SWC::DB::Cell::Serial::Value::FieldUpdate_LIST::encoded_length().

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

◆ is_value_del()

SWC_CAN_INLINE bool SWC::DB::Cell::Serial::Value::FieldUpdate::is_value_del ( ) const
inlinenoexcept

Definition at line 105 of file CellValueSerialFieldUpdate.h.

References ctrl, and CTRL_VALUE_DEL.

Referenced by is_sub_op_required(), and print().

+ Here is the caller graph for this function:

◆ is_value_set()

SWC_CAN_INLINE bool SWC::DB::Cell::Serial::Value::FieldUpdate::is_value_set ( ) const
inlinenoexcept

Definition at line 97 of file CellValueSerialFieldUpdate.h.

References ctrl, and CTRL_VALUE_SET.

Referenced by is_sub_op_required(), and print().

+ Here is the caller graph for this function:

◆ operator=() [1/2]

FieldUpdate& SWC::DB::Cell::Serial::Value::FieldUpdate::operator= ( const FieldUpdate )
delete

◆ operator=() [2/2]

FieldUpdate& SWC::DB::Cell::Serial::Value::FieldUpdate::operator= ( FieldUpdate &&  )
defaultnoexcept

◆ print()

std::ostream & SWC::DB::Cell::Serial::Value::FieldUpdate::print ( std::ostream &  out) const
virtual

Reimplemented in SWC::DB::Cell::Serial::Value::FieldUpdate_LIST_ITEMS< UpdateField_T, ValueT >, SWC::DB::Cell::Serial::Value::FieldUpdate_LIST, and SWC::DB::Cell::Serial::Value::FieldUpdate_MATH.

Definition at line 15 of file CellValueSerialFieldUpdate.cc.

References is_delete_field(), is_no_add_field(), is_value_del(), and is_value_set().

Referenced by SWC::DB::Cell::Serial::Value::FieldUpdate_MATH::print(), and SWC::DB::Cell::Serial::Value::FieldUpdate_LIST::print().

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

◆ set_ctrl()

SWC_CAN_INLINE bool SWC::DB::Cell::Serial::Value::FieldUpdate::set_ctrl ( const char **  ptr,
uint32_t *  remainp,
bool  w_value_ctrl 
)
inlinenoexcept

Definition at line 48 of file CellValueSerialFieldUpdate.h.

References set_delete_field(), set_no_add_field(), set_value_del(), set_value_set(), and SWC::Condition::str_eq().

Referenced by SWC::DB::Cell::Serial::Value::FieldUpdate_MATH::set_op(), and SWC::DB::Cell::Serial::Value::FieldUpdate_LIST::set_op().

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

◆ set_delete_field()

SWC_CAN_INLINE void SWC::DB::Cell::Serial::Value::FieldUpdate::set_delete_field ( )
inlinenoexcept

Definition at line 85 of file CellValueSerialFieldUpdate.h.

References ctrl, and CTRL_DELETE_FIELD.

Referenced by set_ctrl().

+ Here is the caller graph for this function:

◆ set_no_add_field()

SWC_CAN_INLINE void SWC::DB::Cell::Serial::Value::FieldUpdate::set_no_add_field ( )
inlinenoexcept

Definition at line 77 of file CellValueSerialFieldUpdate.h.

References ctrl, and CTRL_NO_ADD_FIELD.

Referenced by set_ctrl().

+ Here is the caller graph for this function:

◆ set_value_del()

SWC_CAN_INLINE void SWC::DB::Cell::Serial::Value::FieldUpdate::set_value_del ( )
inlinenoexcept

Definition at line 101 of file CellValueSerialFieldUpdate.h.

References ctrl, and CTRL_VALUE_DEL.

Referenced by set_ctrl().

+ Here is the caller graph for this function:

◆ set_value_set()

SWC_CAN_INLINE void SWC::DB::Cell::Serial::Value::FieldUpdate::set_value_set ( )
inlinenoexcept

Definition at line 93 of file CellValueSerialFieldUpdate.h.

References ctrl, and CTRL_VALUE_SET.

Referenced by set_ctrl().

+ Here is the caller graph for this function:

Member Data Documentation

◆ ctrl

uint8_t SWC::DB::Cell::Serial::Value::FieldUpdate::ctrl

◆ CTRL_DEFAULT

constexpr const uint8_t SWC::DB::Cell::Serial::Value::FieldUpdate::CTRL_DEFAULT = 0x00
staticconstexpr

Definition at line 31 of file CellValueSerialFieldUpdate.h.

◆ CTRL_DELETE_FIELD

constexpr const uint8_t SWC::DB::Cell::Serial::Value::FieldUpdate::CTRL_DELETE_FIELD = 0x02
staticconstexpr

Definition at line 33 of file CellValueSerialFieldUpdate.h.

Referenced by is_delete_field(), and set_delete_field().

◆ CTRL_NO_ADD_FIELD

constexpr const uint8_t SWC::DB::Cell::Serial::Value::FieldUpdate::CTRL_NO_ADD_FIELD = 0x01
staticconstexpr

Definition at line 32 of file CellValueSerialFieldUpdate.h.

Referenced by is_no_add_field(), and set_no_add_field().

◆ CTRL_VALUE_DEL

constexpr const uint8_t SWC::DB::Cell::Serial::Value::FieldUpdate::CTRL_VALUE_DEL = 0x08
staticconstexpr

Definition at line 35 of file CellValueSerialFieldUpdate.h.

Referenced by is_value_del(), and set_value_del().

◆ CTRL_VALUE_SET

constexpr const uint8_t SWC::DB::Cell::Serial::Value::FieldUpdate::CTRL_VALUE_SET = 0x04
staticconstexpr

Definition at line 34 of file CellValueSerialFieldUpdate.h.

Referenced by is_value_set(), and set_value_set().


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