#include <swcdb/db/Cells/SpecsTimestamp.h>
Public Member Functions | |
constexpr SWC_CAN_INLINE | Timestamp () noexcept |
constexpr SWC_CAN_INLINE | Timestamp (int64_t timestamp, Condition::Comp a_comp) noexcept |
SWC_CAN_INLINE | Timestamp (const uint8_t **bufp, size_t *remainp) |
Timestamp (Timestamp &&) noexcept=default | |
Timestamp (const Timestamp &) noexcept=default | |
Timestamp & | operator= (Timestamp &&) noexcept=default |
Timestamp & | operator= (const Timestamp &) noexcept=default |
~Timestamp () noexcept | |
constexpr SWC_CAN_INLINE void | copy (const Timestamp &other) noexcept |
constexpr SWC_CAN_INLINE void | set (int64_t timestamp, Condition::Comp comperator) 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 |
constexpr SWC_CAN_INLINE size_t | encoded_length () const noexcept |
SWC_CAN_INLINE void | encode (uint8_t **bufp) const |
SWC_CAN_INLINE void | decode (const uint8_t **bufp, size_t *remainp) |
SWC_CAN_INLINE bool | is_matching (int64_t other) const noexcept |
SWC_CAN_INLINE std::string | to_string () const |
void | display (std::ostream &out) const |
void | print (std::ostream &out) const |
Public Attributes | |
int64_t | value |
Condition::Comp | comp |
bool | was_set |
Friends | |
std::ostream & | operator<< (std::ostream &out, const Timestamp &key) |
Definition at line 18 of file SpecsTimestamp.h.
|
inlineexplicitconstexprnoexcept |
Definition at line 22 of file SpecsTimestamp.h.
|
inlineexplicitconstexprnoexcept |
Definition at line 27 of file SpecsTimestamp.h.
|
inlineexplicit |
Definition at line 32 of file SpecsTimestamp.h.
References comp, SWC::Serialization::decode_i64(), SWC::Condition::NONE, and value.
|
defaultnoexcept |
|
defaultnoexcept |
|
inlinenoexcept |
Definition at line 46 of file SpecsTimestamp.h.
|
inlineconstexprnoexcept |
Definition at line 49 of file SpecsTimestamp.h.
References set().
Referenced by SWC::Ranger::Range::check_meta(), SWC::DB::Specs::Interval::copy(), SWC::DB::Cells::Interval::set_ts_earliest(), and SWC::DB::Cells::Interval::set_ts_latest().
|
inline |
Definition at line 93 of file SpecsTimestamp.h.
References comp, SWC::Serialization::decode_i64(), SWC::Serialization::decode_i8(), SWC::Condition::NONE, and value.
Referenced by SWC::DB::Specs::Interval::decode(), and SWC::DB::Cells::Interval::decode().
void SWC::DB::Specs::Timestamp::display | ( | std::ostream & | out | ) | const |
Definition at line 15 of file SpecsTimestamp.cc.
References comp, SWC::Condition::to_string(), and value.
Referenced by SWC::DB::Specs::Interval::display().
|
inlineconstexprnoexcept |
Definition at line 68 of file SpecsTimestamp.h.
References was_set.
Referenced by SWC::DB::Cells::Interval::expand().
|
inline |
Definition at line 86 of file SpecsTimestamp.h.
References comp, SWC::Serialization::encode_i64(), SWC::Serialization::encode_i8(), SWC::Condition::NONE, and value.
Referenced by SWC::DB::Specs::Interval::encode(), and SWC::DB::Cells::Interval::encode().
|
inlineconstexprnoexcept |
Definition at line 78 of file SpecsTimestamp.h.
References comp, and SWC::Condition::NONE.
Referenced by SWC::DB::Cells::Interval::encoded_length(), and SWC::DB::Specs::Interval::encoded_length().
|
inlineconstexprnoexcept |
Definition at line 73 of file SpecsTimestamp.h.
Referenced by SWC::DB::Cells::Interval::equal().
|
inlineconstexprnoexcept |
Definition at line 61 of file SpecsTimestamp.h.
References comp, SWC::Condition::NONE, value, and was_set.
Referenced by SWC::DB::Cells::Interval::free().
|
inlinenoexcept |
Definition at line 100 of file SpecsTimestamp.h.
References comp, SWC::Condition::is_matching(), and value.
Referenced by SWC::DB::Cells::Interval::expand(), and SWC::DB::Specs::Interval::is_matching().
void SWC::DB::Specs::Timestamp::print | ( | std::ostream & | out | ) | const |
Definition at line 19 of file SpecsTimestamp.cc.
References comp, SWC::Condition::NONE, SWC::Condition::to_string(), and value.
Referenced by SWC::DB::Specs::Interval::print(), and to_string().
|
inlineconstexprnoexcept |
Definition at line 54 of file SpecsTimestamp.h.
References comp, value, and was_set.
Referenced by copy(), SWC::DB::Cells::Interval::expand(), SWC::client::SQL::QuerySelect::read_timestamp(), and SWC::Thrift::Converter::set().
|
inline |
Definition at line 105 of file SpecsTimestamp.h.
References print().
|
friend |
Definition at line 119 of file SpecsTimestamp.h.
Condition::Comp SWC::DB::Specs::Timestamp::comp |
Definition at line 125 of file SpecsTimestamp.h.
Referenced by decode(), display(), encode(), encoded_length(), equal(), SWC::DB::Cells::Interval::expand(), free(), is_matching(), print(), set(), and Timestamp().
int64_t SWC::DB::Specs::Timestamp::value |
Definition at line 124 of file SpecsTimestamp.h.
Referenced by decode(), display(), encode(), equal(), SWC::DB::Cells::Interval::expand(), free(), is_matching(), print(), set(), and Timestamp().
bool SWC::DB::Specs::Timestamp::was_set |
Definition at line 126 of file SpecsTimestamp.h.
Referenced by empty(), free(), SWC::client::SQL::QuerySelect::read_timestamp(), and set().