D++ (DPP)  10.0.30
C++ Discord API Bot Library
dpp::moving_averager Struct Reference

#include "discordvoiceclient.h"

Collaboration diagram for dpp::moving_averager:

Public Member Functions

 moving_averager ()=default
 
 moving_averager (uint64_t collection_count_new)
 
 operator float ()
 
moving_averager operator+= (int64_t value)
 

Protected Attributes

uint64_t collectionCount {}
 
std::deque< int64_t > values {}
 

Constructor & Destructor Documentation

◆ moving_averager() [1/2]

dpp::moving_averager::moving_averager ( )
default

◆ moving_averager() [2/2]

dpp::moving_averager::moving_averager ( uint64_t  collection_count_new)

References collectionCount.

Member Function Documentation

◆ operator float()

dpp::moving_averager::operator float ( )

◆ operator+=()

moving_averager dpp::moving_averager::operator+= ( int64_t  value)

References collectionCount, and values.

Member Data Documentation

◆ collectionCount

uint64_t dpp::moving_averager::collectionCount {}
protected

Referenced by moving_averager(), and operator+=().

◆ values

std::deque<int64_t> dpp::moving_averager::values {}
protected

Referenced by operator+=().


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