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_Volume Class Reference

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

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

Public Types

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

Public Member Functions

 Item_Volume (const char *a_name)
virtual ~Item_Volume () noexcept
SWC_CAN_INLINE void increment () noexcept
SWC_CAN_INLINE void decrement () 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_volume

Detailed Description

Definition at line 159 of file Metrics.h.

Member Typedef Documentation

◆ Ptr

Definition at line 161 of file Metrics.h.

Constructor & Destructor Documentation

◆ Item_Volume()

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

Definition at line 165 of file Metrics.h.

◆ ~Item_Volume()

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

Definition at line 167 of file Metrics.h.

Member Function Documentation

◆ decrement()

SWC_CAN_INLINE void SWC::client::Query::Update::Handlers::Metric::Item_Volume::decrement ( )

Definition at line 175 of file Metrics.h.

References SWC::Core::Atomic< T, OrderT >::fetch_sub(), and m_volume.

+ Here is the call graph for this function:

◆ increment()

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

Definition at line 170 of file Metrics.h.

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

+ Here is the call graph for this function:

◆ report()

◆ reset()

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

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

Definition at line 182 of file Metrics.h.

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

+ Here is the call graph for this function:

Member Data Documentation

◆ m_volume

Core::Atomic<uint64_t> SWC::client::Query::Update::Handlers::Metric::Item_Volume::m_volume

Definition at line 187 of file Metrics.h.

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

◆ name

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

Definition at line 163 of file Metrics.h.

Referenced by report().

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