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::Common::Stats::MinMaxAvgCount_Safe< ValueT > Class Template Reference

#include <swcdb/common/Stats/Stat.h>

+ Collaboration diagram for SWC::Common::Stats::MinMaxAvgCount_Safe< ValueT >:

Public Member Functions

SWC_CAN_INLINE MinMaxAvgCount_Safe () noexcept
 
virtual SWC_CAN_INLINE ~MinMaxAvgCount_Safe () noexcept
 
SWC_CAN_INLINE void add (ValueT v) noexcept
 
SWC_CAN_INLINE ValueT count () const noexcept
 
SWC_CAN_INLINE ValueT total () const noexcept
 
SWC_CAN_INLINE ValueT avg () const noexcept
 
SWC_CAN_INLINE ValueT max () const noexcept
 
SWC_CAN_INLINE ValueT min () const noexcept
 
SWC_CAN_INLINE void gather (MinMaxAvgCount< ValueT > &to) noexcept
 
SWC_CAN_INLINE void reset () noexcept
 
void print (std::ostream &out) const
 

Private Attributes

Core::MutexAtomic m_mutex
 
MinMaxAvgCount< ValueT > m_value
 

Detailed Description

template<typename ValueT>
class SWC::Common::Stats::MinMaxAvgCount_Safe< ValueT >

Definition at line 62 of file Stat.h.

Constructor & Destructor Documentation

◆ MinMaxAvgCount_Safe()

template<typename ValueT >
SWC_CAN_INLINE SWC::Common::Stats::MinMaxAvgCount_Safe< ValueT >::MinMaxAvgCount_Safe ( )
inlinenoexcept

Definition at line 66 of file Stat.h.

◆ ~MinMaxAvgCount_Safe()

template<typename ValueT >
virtual SWC_CAN_INLINE SWC::Common::Stats::MinMaxAvgCount_Safe< ValueT >::~MinMaxAvgCount_Safe ( )
inlinevirtualnoexcept

Definition at line 69 of file Stat.h.

Member Function Documentation

◆ add()

◆ avg()

template<typename ValueT >
SWC_CAN_INLINE ValueT SWC::Common::Stats::MinMaxAvgCount_Safe< ValueT >::avg ( ) const
inlinenoexcept

Definition at line 90 of file Stat.h.

Referenced by SWC::Common::Stats::MinMaxAvgCount_Safe< uint64_t >::print().

+ Here is the caller graph for this function:

◆ count()

template<typename ValueT >
SWC_CAN_INLINE ValueT SWC::Common::Stats::MinMaxAvgCount_Safe< ValueT >::count ( ) const
inlinenoexcept

Definition at line 78 of file Stat.h.

◆ gather()

template<typename ValueT >
SWC_CAN_INLINE void SWC::Common::Stats::MinMaxAvgCount_Safe< ValueT >::gather ( MinMaxAvgCount< ValueT > &  to)
inlinenoexcept

Definition at line 108 of file Stat.h.

Referenced by SWC::Common::Query::Update::Metric::Item_Mem::report(), and SWC::Common::Query::Update::Metric::Item_CPU::report().

+ Here is the caller graph for this function:

◆ max()

template<typename ValueT >
SWC_CAN_INLINE ValueT SWC::Common::Stats::MinMaxAvgCount_Safe< ValueT >::max ( ) const
inlinenoexcept

Definition at line 96 of file Stat.h.

Referenced by SWC::Common::Stats::MinMaxAvgCount_Safe< uint64_t >::print().

+ Here is the caller graph for this function:

◆ min()

template<typename ValueT >
SWC_CAN_INLINE ValueT SWC::Common::Stats::MinMaxAvgCount_Safe< ValueT >::min ( ) const
inlinenoexcept

Definition at line 102 of file Stat.h.

Referenced by SWC::Common::Stats::MinMaxAvgCount_Safe< uint64_t >::print().

+ Here is the caller graph for this function:

◆ print()

template<typename ValueT >
void SWC::Common::Stats::MinMaxAvgCount_Safe< ValueT >::print ( std::ostream &  out) const
inline

Definition at line 119 of file Stat.h.

◆ reset()

template<typename ValueT >
SWC_CAN_INLINE void SWC::Common::Stats::MinMaxAvgCount_Safe< ValueT >::reset ( )
inlinenoexcept

Definition at line 114 of file Stat.h.

Referenced by SWC::Common::Query::Update::Metric::Item_Mem::reset(), SWC::Common::Query::Update::Metric::Item_CPU::reset(), and SWC::client::Query::Update::Handlers::Metric::Item_MinMaxAvgCount::reset().

+ Here is the caller graph for this function:

◆ total()

template<typename ValueT >
SWC_CAN_INLINE ValueT SWC::Common::Stats::MinMaxAvgCount_Safe< ValueT >::total ( ) const
inlinenoexcept

Definition at line 84 of file Stat.h.

Member Data Documentation

◆ m_mutex

◆ m_value


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