#include <swcdb/db/Cells/CellKeyVec.h>
Public Types | |
typedef VecFraction::value_type | Fraction |
![]() | |
using | value_type = T |
using | size_type = SizeT |
typedef value_type * | pointer |
typedef const value_type * | const_pointer |
typedef value_type * | iterator |
typedef const value_type * | const_iterator |
typedef value_type & | reference |
typedef const value_type & | const_reference |
Public Member Functions | |
SWC_CAN_INLINE | KeyVec () noexcept |
SWC_CAN_INLINE | KeyVec (KeyVec &&other) noexcept |
KeyVec (const KeyVec &other) | |
~KeyVec () noexcept | |
SWC_CAN_INLINE size_t | size_of_internal () const noexcept |
KeyVec & | operator= (const KeyVec &)=delete |
void | copy (const KeyVec &other) |
bool | equal (const KeyVec &other) const noexcept |
SWC_CAN_INLINE void | add (const Fraction &fraction) |
SWC_CAN_INLINE void | add (const std::string &fraction) |
SWC_CAN_INLINE void | add (const char *fraction) |
SWC_CAN_INLINE void | add (const char *fraction, const uint32_t len) |
void | add (const uint8_t *fraction, const uint32_t len) |
SWC_CAN_INLINE void | insert (const uint32_t idx, const Fraction &fraction) |
SWC_CAN_INLINE void | insert (const uint32_t idx, const std::string &fraction) |
SWC_CAN_INLINE void | insert (const uint32_t idx, const char *fraction) |
SWC_CAN_INLINE void | insert (const uint32_t idx, const char *fraction, const uint32_t len) |
void | insert (const uint32_t idx, const uint8_t *fraction, const uint32_t len) |
SWC_CAN_INLINE void | set (const uint32_t idx, const Fraction &fraction) |
SWC_CAN_INLINE void | set (const uint32_t idx, const std::string &fraction) |
SWC_CAN_INLINE void | set (const uint32_t idx, const char *fraction) |
SWC_CAN_INLINE void | set (const uint32_t idx, const char *fraction, const uint32_t len) |
void | set (const uint32_t idx, const uint8_t *fraction, const uint32_t len) |
void | remove (const uint32_t idx) |
SWC_CAN_INLINE const Fraction & | get (const uint32_t idx) const |
SWC_CAN_INLINE void | get (const uint32_t idx, Fraction &fraction) const |
SWC_CAN_INLINE void | get (const uint32_t idx, std::string &fraction) const |
uint32_t | 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 |
constexpr SWC_CAN_INLINE size_type | size () const noexcept |
![]() | |
constexpr SWC_CAN_INLINE | Vector () noexcept |
template<typename... ArgsT> | |
SWC_CAN_INLINE | Vector (size_type sz, ArgsT &&... args) |
constexpr SWC_CAN_INLINE | Vector (Vector &&other) noexcept |
SWC_CAN_INLINE | Vector (const Vector &other) |
SWC_CAN_INLINE | Vector (const_iterator _b, const_iterator _e) |
SWC_CAN_INLINE | Vector (std::initializer_list< value_type > &&l) |
SWC_CAN_INLINE | ~Vector () noexcept(_NoExceptDestructor) |
SWC_CAN_INLINE void | clear () noexcept(_NoExceptDestructor) |
SWC_CAN_INLINE void | free () noexcept |
SWC_CAN_INLINE Vector & | operator= (Vector &&other) noexcept |
SWC_CAN_INLINE Vector & | operator= (const Vector &other) |
SWC_CAN_INLINE void | swap (Vector &other) noexcept |
constexpr SWC_CAN_INLINE bool | empty () const noexcept |
constexpr SWC_CAN_INLINE bool | operator== (const Vector &other) const noexcept |
constexpr SWC_CAN_INLINE bool | operator!= (const Vector &other) const noexcept |
constexpr SWC_CAN_INLINE size_type | size () const noexcept |
constexpr SWC_CAN_INLINE size_type | capacity () const noexcept |
constexpr SWC_CAN_INLINE pointer | data () noexcept |
constexpr SWC_CAN_INLINE const_pointer | data () const noexcept |
constexpr SWC_CAN_INLINE iterator | begin () noexcept |
constexpr SWC_CAN_INLINE const_iterator | cbegin () const noexcept |
constexpr SWC_CAN_INLINE const_iterator | begin () const noexcept |
constexpr SWC_CAN_INLINE iterator | end () noexcept |
constexpr SWC_CAN_INLINE const_iterator | cend () const noexcept |
constexpr SWC_CAN_INLINE const_iterator | end () const noexcept |
constexpr SWC_CAN_INLINE reference | front () noexcept |
constexpr SWC_CAN_INLINE const_reference | front () const noexcept |
constexpr SWC_CAN_INLINE reference | back () noexcept |
constexpr SWC_CAN_INLINE const_reference | back () const noexcept |
constexpr SWC_CAN_INLINE reference | operator[] (size_type pos) noexcept |
constexpr SWC_CAN_INLINE const_reference | operator[] (size_type pos) const noexcept |
SWC_CAN_INLINE void | shrink_to_fit (size_type sz=0) |
SWC_CAN_INLINE void | reserve (size_type cap) |
SWC_CAN_INLINE void | reserve () |
template<typename... ArgsT> | |
SWC_CAN_INLINE void | resize (size_type sz, ArgsT &&... args) |
template<typename... ArgsT> | |
SWC_CAN_INLINE void | push_back (ArgsT &&... args) |
template<typename... ArgsT> | |
SWC_CAN_INLINE void | push_back_unsafe (ArgsT &&... args) noexcept(std::is_nothrow_constructible_v< value_type, ArgsT... >) |
template<typename... ArgsT> | |
SWC_CAN_INLINE reference | emplace_back (ArgsT &&... args) |
template<typename... ArgsT> | |
SWC_CAN_INLINE reference | emplace_back_unsafe (ArgsT &&... args) noexcept(std::is_nothrow_constructible_v< value_type, ArgsT... >) |
template<typename... ArgsT> | |
SWC_CAN_INLINE iterator | insert (size_type offset, ArgsT &&... args) |
template<typename... ArgsT> | |
SWC_CAN_INLINE iterator | insert (const_iterator it, ArgsT &&... args) |
template<typename... ArgsT> | |
SWC_CAN_INLINE reference | emplace (const_iterator it, ArgsT &&... args) |
template<typename... ArgsT> | |
SWC_CAN_INLINE iterator | insert_unsafe (const_iterator it, ArgsT &&... args) noexcept(_NoExceptMove &&_NoExceptDestructor &&std::is_nothrow_constructible_v< value_type, ArgsT... >) |
SWC_CAN_INLINE iterator | insert (size_type offset, const_iterator first, const_iterator last) |
SWC_CAN_INLINE iterator | insert (const_iterator it, const_iterator first, const_iterator last) |
template<typename IteratorT > | |
SWC_CAN_INLINE void | assign (IteratorT first, IteratorT last) |
SWC_CAN_INLINE iterator | erase (size_type offset) noexcept(_NoExceptMoveAssign &&_NoExceptDestructor) |
SWC_CAN_INLINE iterator | erase (const_iterator it) noexcept(_NoExceptMoveAssign &&_NoExceptDestructor) |
SWC_CAN_INLINE iterator | erase (const_iterator first, const_iterator last) noexcept(_NoExceptMoveAssign &&_NoExceptDestructor) |
SWC_CAN_INLINE void | pop_back () noexcept(_NoExceptDestructor) |
Friends | |
std::ostream & | operator<< (std::ostream &out, const KeyVec &key) |
Additional Inherited Members | |
![]() | |
constexpr static SWC_CAN_INLINE size_type | max_size () noexcept |
Definition at line 21 of file CellKeyVec.h.
Definition at line 24 of file CellKeyVec.h.
|
inlineexplicitnoexcept |
Definition at line 29 of file CellKeyVec.h.
|
inlineexplicitnoexcept |
Definition at line 32 of file CellKeyVec.h.
|
explicit |
Definition at line 171 of file CellKeyVec.h.
|
inlinenoexcept |
Definition at line 38 of file CellKeyVec.h.
|
inline |
Definition at line 67 of file CellKeyVec.h.
References add().
|
inline |
Definition at line 72 of file CellKeyVec.h.
References add().
|
inline |
Definition at line 57 of file CellKeyVec.h.
Referenced by add(), SWC::DB::KeySeq::align(), SWC::client::Query::Update::Handlers::Metric::Reporting::apply_time(), SWC::Common::Query::Update::Metric::Item_Mem::definitions(), SWC::Common::Query::Update::Metric::Item_CPU::definitions(), SWC::Common::Query::Update::Metric::Item_FS::definitions(), SWC::FsBroker::Metric::Item_Fds::definitions(), SWC::client::Query::Update::Handlers::Metric::Level::definitions(), SWC::client::Query::Update::Handlers::Metric::Reporting::report(), SWC::Common::Query::Update::Metric::Item_Net< SWC::Comm::Protocol::FsBroker::Commands >::report(), SWC::Common::Query::Update::Metric::Item_Mem::report(), SWC::Common::Query::Update::Metric::Item_CPU::report(), SWC::client::Query::Update::Handlers::Metric::Level::report(), SWC::client::Query::Update::Handlers::Metric::Item_MinMaxAvgCount::report(), SWC::client::Query::Update::Handlers::Metric::Item_Count::report(), SWC::client::Query::Update::Handlers::Metric::Item_Volume::report(), and SWC::client::Query::Update::Handlers::Metric::Item_CountVolume::report().
|
inline |
Definition at line 62 of file CellKeyVec.h.
References add().
SWC_CAN_INLINE void SWC::DB::Cell::KeyVec::add | ( | const uint8_t * | fraction, |
const uint32_t | len | ||
) |
Definition at line 187 of file CellKeyVec.h.
References SWC::Core::Vector< T, SizeT, GROW_SZ >::emplace_back().
SWC_CAN_INLINE void SWC::DB::Cell::KeyVec::copy | ( | const KeyVec & | other | ) |
Definition at line 176 of file CellKeyVec.h.
References SWC::Core::Vector< T, SizeT, GROW_SZ >::assign(), SWC::Core::Vector< T, SizeT, GROW_SZ >::cbegin(), SWC::Core::Vector< T, SizeT, GROW_SZ >::cend(), and SWC::Core::Vector< T, SizeT, GROW_SZ >::clear().
Referenced by SWC::Common::Query::Update::Metric::Item_Mem::definitions(), SWC::Common::Query::Update::Metric::Item_CPU::definitions(), SWC::Common::Query::Update::Metric::Item_FS::definitions(), SWC::FsBroker::Metric::Item_Fds::definitions(), SWC::client::Query::Update::Handlers::Metric::Level::definitions(), SWC::Ranger::Range::expand_and_align(), SWC::Common::Query::Update::Metric::Item_Net< SWC::Comm::Protocol::FsBroker::Commands >::report(), SWC::Common::Query::Update::Metric::Item_Mem::report(), SWC::Common::Query::Update::Metric::Item_CPU::report(), SWC::client::Query::Update::Handlers::Metric::Level::report(), SWC::client::Query::Update::Handlers::Metric::Item_MinMaxAvgCount::report(), SWC::client::Query::Update::Handlers::Metric::Item_Count::report(), SWC::client::Query::Update::Handlers::Metric::Item_Volume::report(), SWC::client::Query::Update::Handlers::Metric::Item_CountVolume::report(), SWC::DB::Cells::Interval::set_aligned_max(), and SWC::DB::Cells::Interval::set_aligned_min().
SWC_CAN_INLINE void SWC::DB::Cell::KeyVec::decode | ( | const uint8_t ** | bufp, |
size_t * | remainp | ||
) |
Definition at line 229 of file CellKeyVec.h.
References SWC::Core::Vector< T, SizeT, GROW_SZ >::begin(), SWC::Core::Vector< T, SizeT, GROW_SZ >::cend(), SWC::Core::Vector< T, SizeT, GROW_SZ >::clear(), SWC::Serialization::decode_vi32(), and SWC::Core::Vector< T, SizeT, GROW_SZ >::resize().
Referenced by SWC::Ranger::Range::check_meta(), and SWC::DB::Cells::Interval::decode().
SWC_CAN_INLINE void SWC::DB::Cell::KeyVec::encode | ( | uint8_t ** | bufp | ) | const |
Definition at line 218 of file CellKeyVec.h.
References SWC::Core::Vector< T, SizeT, GROW_SZ >::cbegin(), SWC::Core::Vector< T, SizeT, GROW_SZ >::cend(), SWC::Serialization::encode_vi32(), and size().
Referenced by SWC::DB::Cells::Interval::encode().
|
noexcept |
Definition at line 210 of file CellKeyVec.h.
References SWC::Core::Vector< T, SizeT, GROW_SZ >::cbegin(), SWC::Core::Vector< T, SizeT, GROW_SZ >::cend(), SWC::Serialization::encoded_length_vi32(), and size().
Referenced by SWC::DB::Cells::Interval::encoded_length().
|
noexcept |
Definition at line 182 of file CellKeyVec.h.
Referenced by SWC::Ranger::Range::expand_and_align().
|
inline |
Definition at line 125 of file CellKeyVec.h.
|
inline |
Definition at line 130 of file CellKeyVec.h.
|
inline |
Definition at line 135 of file CellKeyVec.h.
References SWC::Core::Vector< T, SizeT, GROW_SZ >::data(), and size().
|
inline |
Definition at line 89 of file CellKeyVec.h.
References insert().
|
inline |
Definition at line 94 of file CellKeyVec.h.
References insert().
|
inline |
Definition at line 79 of file CellKeyVec.h.
Referenced by insert().
|
inline |
Definition at line 84 of file CellKeyVec.h.
References insert().
SWC_CAN_INLINE void SWC::DB::Cell::KeyVec::insert | ( | const uint32_t | idx, |
const uint8_t * | fraction, | ||
const uint32_t | len | ||
) |
Definition at line 192 of file CellKeyVec.h.
References SWC::Core::Vector< T, SizeT, GROW_SZ >::cbegin(), and SWC::Core::Vector< T, SizeT, GROW_SZ >::emplace().
void SWC::DB::Cell::KeyVec::print | ( | std::ostream & | out | ) | const |
Definition at line 13 of file CellKeyVec.cc.
References SWC::Core::Vector< T, SizeT, GROW_SZ >::cbegin(), SWC::Core::Vector< T, SizeT, GROW_SZ >::cend(), and size().
Referenced by to_string().
SWC_CAN_INLINE void SWC::DB::Cell::KeyVec::remove | ( | const uint32_t | idx | ) |
Definition at line 204 of file CellKeyVec.h.
References SWC::Core::Vector< T, SizeT, GROW_SZ >::cbegin(), SWC::Core::Vector< T, SizeT, GROW_SZ >::erase(), and size().
Referenced by SWC::Ranger::Range::check_meta().
|
inline |
Definition at line 111 of file CellKeyVec.h.
References set().
|
inline |
Definition at line 116 of file CellKeyVec.h.
References set().
|
inline |
Definition at line 101 of file CellKeyVec.h.
Referenced by set().
|
inline |
Definition at line 106 of file CellKeyVec.h.
References set().
SWC_CAN_INLINE void SWC::DB::Cell::KeyVec::set | ( | const uint32_t | idx, |
const uint8_t * | fraction, | ||
const uint32_t | len | ||
) |
Definition at line 198 of file CellKeyVec.h.
|
inlineconstexprnoexcept |
Definition at line 189 of file Vector.h.
Referenced by SWC::DB::KeySeq::align(), SWC::DB::KeySeq::compare(), SWC::DB::KeySeq::compare< Types::KeySeq::FC_LEXIC >(), SWC::DB::KeySeq::compare< Types::KeySeq::FC_VOLUME >(), SWC::Common::Query::Update::Metric::Item_Mem::definitions(), SWC::Common::Query::Update::Metric::Item_CPU::definitions(), SWC::Common::Query::Update::Metric::Item_FS::definitions(), SWC::FsBroker::Metric::Item_Fds::definitions(), SWC::client::Query::Update::Handlers::Metric::Level::definitions(), encode(), encoded_length(), get(), print(), remove(), SWC::Common::Query::Update::Metric::Item_Net< SWC::Comm::Protocol::FsBroker::Commands >::report(), SWC::Common::Query::Update::Metric::Item_Mem::report(), SWC::Common::Query::Update::Metric::Item_CPU::report(), SWC::client::Query::Update::Handlers::Metric::Level::report(), SWC::client::Query::Update::Handlers::Metric::Item_MinMaxAvgCount::report(), SWC::client::Query::Update::Handlers::Metric::Item_Count::report(), SWC::client::Query::Update::Handlers::Metric::Item_Volume::report(), and SWC::client::Query::Update::Handlers::Metric::Item_CountVolume::report().
|
inlinenoexcept |
Definition at line 41 of file CellKeyVec.h.
Referenced by SWC::DB::Cells::Interval::size_of_internal().
|
inline |
Definition at line 149 of file CellKeyVec.h.
References print().
|
friend |
Definition at line 161 of file CellKeyVec.h.