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< ValueT > Struct Template Reference

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

Public Member Functions

SWC_CAN_INLINE MinMaxAvgCount () noexcept
 
SWC_CAN_INLINE void add (ValueT v) noexcept
 
SWC_CAN_INLINE ValueT avg () const noexcept
 
SWC_CAN_INLINE void gather (MinMaxAvgCount< ValueT > &to) noexcept
 
SWC_CAN_INLINE void reset () noexcept
 

Public Attributes

ValueT count
 
ValueT total
 
ValueT min
 
ValueT max
 

Detailed Description

template<typename ValueT>
struct SWC::Common::Stats::MinMaxAvgCount< ValueT >

Definition at line 18 of file Stat.h.

Constructor & Destructor Documentation

◆ MinMaxAvgCount()

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

Definition at line 25 of file Stat.h.

Member Function Documentation

◆ add()

template<typename ValueT >
SWC_CAN_INLINE void SWC::Common::Stats::MinMaxAvgCount< ValueT >::add ( ValueT  v)
inlinenoexcept

Definition at line 28 of file Stat.h.

◆ avg()

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

Definition at line 40 of file Stat.h.

Referenced by SWC::client::Query::Update::Handlers::Metric::Item_MinMaxAvgCount::report().

+ Here is the caller graph for this function:

◆ gather()

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

Definition at line 45 of file Stat.h.

◆ reset()

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

Definition at line 54 of file Stat.h.

Referenced by SWC::Common::Stats::MinMaxAvgCount< uint64_t >::gather().

+ Here is the caller graph for this function:

Member Data Documentation

◆ count

◆ max

◆ min

◆ total


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