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::client::Query::Update::Handlers::Metric::Item_Count Class Reference

#include <swcdb/db/client/Query/Update/Handlers/Metrics.h>

+ Inheritance diagram for SWC::client::Query::Update::Handlers::Metric::Item_Count:
+ Collaboration diagram for SWC::client::Query::Update::Handlers::Metric::Item_Count:

Public Types

typedef std::unique_ptr< Item_CountPtr
- Public Types inherited from SWC::client::Query::Update::Handlers::Metric::Base
typedef std::unique_ptr< BasePtr

Public Member Functions

 Item_Count (const char *a_name)
virtual ~Item_Count () noexcept
SWC_CAN_INLINE void increment () noexcept
virtual void report (uint64_t for_ns, Handlers::Base::Column *colp, const DB::Cell::KeyVec &parent_key) override
virtual void reset () override
- Public Member Functions inherited from SWC::client::Query::Update::Handlers::Metric::Base
virtual ~Base () noexcept
virtual void definitions (Handlers::Base::Column *colp, const DB::Cell::KeyVec &parent_key)=0
virtual Levelget_level (const char *, bool)

Public Attributes

const std::string name

Protected Attributes

Core::Atomic< uint64_t > m_count

Detailed Description

Definition at line 130 of file Metrics.h.

Member Typedef Documentation

◆ Ptr

Definition at line 132 of file Metrics.h.

Constructor & Destructor Documentation

◆ Item_Count()

SWC::client::Query::Update::Handlers::Metric::Item_Count::Item_Count ( const char *  a_name)

Definition at line 136 of file Metrics.h.

◆ ~Item_Count()

virtual SWC::client::Query::Update::Handlers::Metric::Item_Count::~Item_Count ( )

Definition at line 138 of file Metrics.h.

Member Function Documentation

◆ increment()

SWC_CAN_INLINE void SWC::client::Query::Update::Handlers::Metric::Item_Count::increment ( )

Definition at line 141 of file Metrics.h.

References SWC::Core::Atomic< T, OrderT >::fetch_add(), and m_count.

+ Here is the call graph for this function:

◆ report()

◆ reset()

virtual void SWC::client::Query::Update::Handlers::Metric::Item_Count::reset ( )

Implements SWC::client::Query::Update::Handlers::Metric::Base.

Definition at line 148 of file Metrics.h.

References m_count, and SWC::Core::AtomicBase< T, OrderT >::store().

+ Here is the call graph for this function:

Member Data Documentation

◆ m_count

Core::Atomic<uint64_t> SWC::client::Query::Update::Handlers::Metric::Item_Count::m_count

Definition at line 153 of file Metrics.h.

Referenced by increment(), report(), and reset().

◆ name

const std::string SWC::client::Query::Update::Handlers::Metric::Item_Count::name

Definition at line 134 of file Metrics.h.

Referenced by report().

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