NCBI C++ ToolKit
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
CTimeSeriesBase Class Referenceabstract

Search Toolkit Book for CTimeSeriesBase

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

+ Inheritance diagram for CTimeSeriesBase:

Public Member Functions

 CTimeSeriesBase ()
virtual void Rotate (void)=0
virtual void Reset (void)=0
void GetLoopAndIndex (bool &loop, size_t &current_index) const

Protected Types

enum  EPSGS_SkipCheckResult { ePSGS_SkipBegin , ePSGS_SkipEnd , ePSGS_DontSkip }

Protected Member Functions

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

atomic_uint_fast64_t m_TotalMinutesCollected
bool m_Loop
atomic_uint_fast64_t m_CurrentIndex

Detailed Description

Definition at line 50 of file time_series_stat.hpp.

Member Enumeration Documentation

◆ EPSGS_SkipCheckResult


Definition at line 69 of file time_series_stat.hpp.

Constructor & Destructor Documentation

◆ CTimeSeriesBase()

CTimeSeriesBase::CTimeSeriesBase ( )

Definition at line 42 of file time_series_stat.cpp.

Member Function Documentation

◆ CheckToSkip()

CTimeSeriesBase::EPSGS_SkipCheckResult CTimeSeriesBase::CheckToSkip ( int  most_ancient_time,
int  most_recent_time,
ssize_t  current_values_start_sec,
ssize_t  current_values_end_sec 
) const

◆ GetLoopAndIndex()

void CTimeSeriesBase::GetLoopAndIndex ( bool loop,
size_t &  current_index 
) const

Definition at line 62 of file time_series_stat.hpp.

References m_CurrentIndex, and m_Loop.

Referenced by COperationTiming::Serialize().

◆ Reset()

virtual void CTimeSeriesBase::Reset ( void  )
pure virtual

◆ Rotate()

virtual void CTimeSeriesBase::Rotate ( void  )
pure virtual

Member Data Documentation

◆ m_CurrentIndex

atomic_uint_fast64_t CTimeSeriesBase::m_CurrentIndex

◆ m_Loop

bool CTimeSeriesBase::m_Loop

◆ m_TotalMinutesCollected

atomic_uint_fast64_t CTimeSeriesBase::m_TotalMinutesCollected

The documentation for this class was generated from the following files:
Modified on Thu May 23 12:27:35 2024 by rev. 669887