NCBI C++ ToolKit
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
CMonotonicCounterSeries Class Reference

Search Toolkit Book for CMonotonicCounterSeries

#include "time_series_stat.hpp"
(Private to src/app/pubseq_gateway/server.)

+ Inheritance diagram for CMonotonicCounterSeries:
+ Collaboration diagram for CMonotonicCounterSeries:

Public Member Functions

 CMonotonicCounterSeries ()
 
void Add (void)
 
void Rotate (void)
 
void Reset (void)
 
CJsonNode Serialize (const vector< pair< int, int >> &time_series, int most_ancient_time, int most_recent_time, bool loop, size_t current_index) const
 
- Public Member Functions inherited from CTimeSeriesBase
 CTimeSeriesBase ()
 
void GetLoopAndIndex (bool &loop, size_t &current_index) const
 

Protected Member Functions

CJsonNode x_SerializeOneSeries (const uint64_t *values, uint64_t grand_total, const vector< pair< int, int >> &time_series, int most_ancient_time, int most_recent_time, bool loop, size_t current_index) const
 
- Protected Member Functions inherited from CTimeSeriesBase
EPSGS_SkipCheckResult CheckToSkip (int most_ancient_time, int most_recent_time, ssize_t current_values_start_sec, ssize_t current_values_end_sec) const
 

Protected Attributes

uint64_t m_Values [kSeriesIntervals]
 
uint64_t m_TotalValues
 
uint64_t m_MaxValue
 
- Protected Attributes inherited from CTimeSeriesBase
atomic_uint_fast64_t m_TotalMinutesCollected
 
bool m_Loop
 
atomic_uint_fast64_t m_CurrentIndex
 

Additional Inherited Members

- Protected Types inherited from CTimeSeriesBase
enum  EPSGS_SkipCheckResult { ePSGS_SkipBegin , ePSGS_SkipEnd , ePSGS_DontSkip }
 

Detailed Description

Definition at line 138 of file time_series_stat.hpp.

Constructor & Destructor Documentation

◆ CMonotonicCounterSeries()

CMonotonicCounterSeries::CMonotonicCounterSeries ( )

Definition at line 344 of file time_series_stat.cpp.

References Reset().

Member Function Documentation

◆ Add()

void CMonotonicCounterSeries::Add ( void  )

◆ Reset()

void CMonotonicCounterSeries::Reset ( void  )
virtual

◆ Rotate()

void CMonotonicCounterSeries::Rotate ( void  )
virtual

◆ Serialize()

CJsonNode CMonotonicCounterSeries::Serialize ( const vector< pair< int, int >> &  time_series,
int  most_ancient_time,
int  most_recent_time,
bool  loop,
size_t  current_index 
) const

◆ x_SerializeOneSeries()

CJsonNode CMonotonicCounterSeries::x_SerializeOneSeries ( const uint64_t values,
uint64_t  grand_total,
const vector< pair< int, int >> &  time_series,
int  most_ancient_time,
int  most_recent_time,
bool  loop,
size_t  current_index 
) const
protected

Member Data Documentation

◆ m_MaxValue

uint64_t CMonotonicCounterSeries::m_MaxValue
protected

Definition at line 162 of file time_series_stat.hpp.

Referenced by Add(), Reset(), and x_SerializeOneSeries().

◆ m_TotalValues

uint64_t CMonotonicCounterSeries::m_TotalValues
protected

Definition at line 161 of file time_series_stat.hpp.

Referenced by Add(), Reset(), and Serialize().

◆ m_Values

uint64_t CMonotonicCounterSeries::m_Values[kSeriesIntervals]
protected

Definition at line 160 of file time_series_stat.hpp.

Referenced by Add(), Reset(), Rotate(), and Serialize().


The documentation for this class was generated from the following files:
Modified on Wed May 22 11:30:41 2024 by modify_doxy.py rev. 669887