|
Advanced Chunk Processing Library 0.2.0
A comprehensive C++ library for advanced data chunking strategies and processing operations
|
#include <data_structures.hpp>
Public Member Functions | |
| SlidingWindow (size_t size) | |
| T | average () const |
| bool | empty () const |
| void | push (const T &value) |
| size_t | size () const |
| T | sum () const |
| const std::deque< T > & | window () const |
Private Attributes | |
| size_t | max_size_ |
| T | sum_ = T() |
| std::deque< T > | window_ |
Definition at line 138 of file data_structures.hpp.
|
inlineexplicit |
Definition at line 145 of file data_structures.hpp.
References SlidingWindow< T >::size().
|
inline |
Definition at line 160 of file data_structures.hpp.
References SlidingWindow< T >::sum_, and SlidingWindow< T >::window_.
Referenced by TEST().
|
inline |
Definition at line 172 of file data_structures.hpp.
References SlidingWindow< T >::window_.
|
inline |
Definition at line 150 of file data_structures.hpp.
References SlidingWindow< T >::max_size_, SlidingWindow< T >::sum_, and SlidingWindow< T >::window_.
Referenced by TEST().
|
inline |
Definition at line 169 of file data_structures.hpp.
References SlidingWindow< T >::window_.
Referenced by SlidingWindow< T >::SlidingWindow().
|
inline |
Definition at line 175 of file data_structures.hpp.
References SlidingWindow< T >::sum_.
|
inline |
Definition at line 166 of file data_structures.hpp.
References SlidingWindow< T >::window_.
|
private |
Definition at line 141 of file data_structures.hpp.
Referenced by SlidingWindow< T >::push().
|
private |
Definition at line 142 of file data_structures.hpp.
Referenced by SlidingWindow< T >::average(), SlidingWindow< T >::push(), and SlidingWindow< T >::sum().
|
private |
Definition at line 140 of file data_structures.hpp.
Referenced by SlidingWindow< T >::average(), SlidingWindow< T >::empty(), SlidingWindow< T >::push(), SlidingWindow< T >::size(), and SlidingWindow< T >::window().