|
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_SpecsTimestamp_h
8 #define swcdb_db_cells_SpecsTimestamp_h
15 namespace SWC {
namespace DB {
namespace Specs {
32 explicit Timestamp(
const uint8_t** bufp,
size_t* remainp)
50 set(other.value, other.comp);
74 return value == other.value &&
comp == other.comp;
93 void decode(
const uint8_t** bufp,
size_t* remainp) {
108 std::stringstream ss;
115 void display(std::ostream& out)
const;
117 void print(std::ostream& out)
const;
133 #ifdef SWC_IMPL_SOURCE
137 #endif // swcdb_db_cells_SpecsTimestamp_h
constexpr SWC_CAN_INLINE size_t encoded_length() const noexcept
SWC_CAN_INLINE Timestamp(const uint8_t **bufp, size_t *remainp)
SWC_CAN_INLINE void encode_i64(uint8_t **bufp, uint64_t val) noexcept
constexpr SWC_CAN_INLINE void copy(const Timestamp &other) noexcept
SWC_CAN_INLINE void encode(uint8_t **bufp) const
constexpr SWC_CAN_INLINE void encode_i8(uint8_t **bufp, uint8_t val) noexcept
SWC_CAN_INLINE void decode(const uint8_t **bufp, size_t *remainp)
The SWC-DB C++ namespace 'SWC'.
constexpr SWC_CAN_INLINE Timestamp(int64_t timestamp, Condition::Comp a_comp) noexcept
constexpr SWC_CAN_INLINE void free() noexcept
constexpr SWC_CAN_INLINE bool empty() const noexcept
constexpr SWC_CAN_INLINE bool equal(const Timestamp &other) const noexcept
Timestamp(Timestamp &&) noexcept=default
SWC_CAN_INLINE bool is_matching(bool volumetric, uint8_t comp, const uint8_t *p1, uint32_t p1_len, const uint8_t *p2, uint32_t p2_len)
void display(std::ostream &out) const
constexpr SWC_CAN_INLINE Timestamp() noexcept
SWC_CAN_INLINE std::string to_string() const
constexpr SWC_CAN_INLINE uint8_t decode_i8(const uint8_t **bufp, size_t *remainp)
SWC_CAN_INLINE uint64_t decode_i64(const uint8_t **bufp, size_t *remainp)
SWC_CAN_INLINE bool is_matching(int64_t other) const noexcept
friend std::ostream & operator<<(std::ostream &out, const Timestamp &key)
void print(std::ostream &out) const
constexpr SWC_CAN_INLINE void set(int64_t timestamp, Condition::Comp comperator) noexcept