Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

#include <governance.h>

Public Member Functions

 CRateCheckBuffer ()
 
void AddTimestamp (int64_t nTimestamp)
 
int64_t GetMinTimestamp ()
 
int64_t GetMaxTimestamp ()
 
int GetCount ()
 
double GetRate ()
 
template<typename Stream , typename Operation >
void SerializationOp (Stream &s, Operation ser_action)
 

Public Attributes

 ADD_SERIALIZE_METHODS
 

Private Attributes

std::vector< int64_t > vecTimestamps
 
int nDataStart
 
int nDataEnd
 
bool fBufferEmpty
 

Detailed Description

Definition at line 43 of file governance.h.

Constructor & Destructor Documentation

◆ CRateCheckBuffer()

CRateCheckBuffer::CRateCheckBuffer ( )
inline

Definition at line 55 of file governance.h.

Member Function Documentation

◆ AddTimestamp()

void CRateCheckBuffer::AddTimestamp ( int64_t  nTimestamp)
inline

◆ GetCount()

int CRateCheckBuffer::GetCount ( )
inline

Definition at line 106 of file governance.h.

References fBufferEmpty, nDataEnd, nDataStart, and RATE_BUFFER_SIZE.

Referenced by GetRate().

◆ GetMaxTimestamp()

int64_t CRateCheckBuffer::GetMaxTimestamp ( )
inline

Definition at line 90 of file governance.h.

References fBufferEmpty, nDataEnd, nDataStart, RATE_BUFFER_SIZE, and vecTimestamps.

Referenced by GetRate().

◆ GetMinTimestamp()

int64_t CRateCheckBuffer::GetMinTimestamp ( )
inline

Definition at line 74 of file governance.h.

References fBufferEmpty, nDataEnd, nDataStart, RATE_BUFFER_SIZE, and vecTimestamps.

Referenced by GetRate().

◆ GetRate()

double CRateCheckBuffer::GetRate ( )
inline

◆ SerializationOp()

template<typename Stream , typename Operation >
void CRateCheckBuffer::SerializationOp ( Stream &  s,
Operation  ser_action 
)
inline

Definition at line 139 of file governance.h.

References fBufferEmpty, nDataEnd, nDataStart, READWRITE, and vecTimestamps.

Member Data Documentation

◆ ADD_SERIALIZE_METHODS

CRateCheckBuffer::ADD_SERIALIZE_METHODS

Definition at line 136 of file governance.h.

◆ fBufferEmpty

bool CRateCheckBuffer::fBufferEmpty
private

◆ nDataEnd

int CRateCheckBuffer::nDataEnd
private

◆ nDataStart

int CRateCheckBuffer::nDataStart
private

◆ vecTimestamps

std::vector<int64_t> CRateCheckBuffer::vecTimestamps
private

Definition at line 46 of file governance.h.

Referenced by AddTimestamp(), GetMaxTimestamp(), GetMinTimestamp(), and SerializationOp().


The documentation for this class was generated from the following file:
Released under the MIT license