|
SWC-DB
v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
|
Go to the documentation of this file.
7 #ifndef swcdb_db_cells_SpecsValues_h
8 #define swcdb_db_cells_SpecsValues_h
14 namespace SWC {
namespace DB {
namespace Specs {
34 Values(
const uint8_t** bufp,
size_t* remainp,
bool owner)
36 decode(bufp, remainp, owner);
82 for(
const auto& value : *
this) {
85 sz += value.encoded_length();
94 for(
const auto& value : *
this) {
99 for(
const auto& value : *
this) {
106 void decode(
const uint8_t** bufp,
size_t* remainp,
bool owner) {
115 void print(std::ostream& out)
const;
117 void display(std::ostream& out,
bool pretty,
118 const std::string& offset)
const;
126 size_t sz =
sizeof(*this);
127 for(
const auto& value : *
this)
128 sz +=
sizeof(value) + value.size;
138 case Types::Column::PLAIN: {
139 for(
const auto& value : *
this) {
140 if(!value.is_matching_plain(cell))
146 for(
const auto& value : *
this) {
147 if(!value.is_matching_serial(cell))
152 case Types::Column::COUNTER_I64:
153 case Types::Column::COUNTER_I32:
154 case Types::Column::COUNTER_I16:
155 case Types::Column::COUNTER_I8: {
156 for(
const auto& value : *
this) {
157 if(!value.is_matching_counter(cell))
173 #ifdef SWC_IMPL_SOURCE
178 #endif // swcdb_db_cells_SpecsValues_h
SWC_CAN_INLINE void clear() noexcept(_NoExceptDestructor)
bool is_matching(const Cells::Cell &cell) const
size_t size_of_internal() const noexcept
SWC_CAN_INLINE Vector & operator=(Vector &&other) noexcept
void print(std::ostream &out) const
void display(std::ostream &out, bool pretty, const std::string &offset) const
SWC_CAN_INLINE Values & operator=(Values &&other) noexcept
bool SWC_PURE_FUNC equal(const Values &other) const noexcept
void copy(const Values &other)
constexpr SWC_CAN_INLINE bool empty() const noexcept
The SWC-DB C++ namespace 'SWC'.
SWC_CAN_INLINE void move(Values &other) noexcept
SWC_CAN_INLINE Values & operator=(const Values &other)
constexpr SWC_CAN_INLINE uint8_t encoded_length_vi64(uint64_t val) noexcept
SWC_CAN_INLINE Values(Values &&other) noexcept
SWC_CAN_INLINE void reserve()
Value & add(Condition::Comp comp=Condition::EQ)
constexpr SWC_CAN_INLINE uint64_t decode_vi64(const uint8_t **bufp, size_t *remainp)
SWC_CAN_INLINE size_t encoded_length() const noexcept
SWC_CAN_INLINE void encode(uint8_t **bufp) const
SWC_CAN_INLINE Values(const uint8_t **bufp, size_t *remainp, bool owner)
constexpr SWC_CAN_INLINE void encode_vi64(uint8_t **bufp, uint64_t val)
SWC_CAN_INLINE void decode(const uint8_t **bufp, size_t *remainp, bool owner)
SWC_CAN_INLINE reference emplace_back(ArgsT &&... args)
SWC_CAN_INLINE iterator insert(size_type offset, ArgsT &&... args)
Core::Vector< Value > Vec
SWC_CAN_INLINE Values(Types::Column a_col_type=Types::Column::UNKNOWN) noexcept