|
PdQmlWidgets
2.0.0
|
Time/Value ring buffer. More...
#include <ValueRing.h>
Public Types | |
| typedef QPair< std::chrono::nanoseconds, T > | TimeValuePair |
Public Member Functions | |
| ValueRing () | |
| Constructor. More... | |
| ~ValueRing () | |
| Destructor. More... | |
| void | setRange (std::chrono::nanoseconds) |
| Sets the #range. More... | |
| std::chrono::nanoseconds | getRange () const |
| void | append (std::chrono::nanoseconds time, const T &value) |
| Appends a value to the ring. More... | |
| void | copyUntil (const ValueRing< T > &, std::chrono::nanoseconds) |
| Copies data from another ring, up to a specific time. More... | |
| void | clear () |
| Clears the ring. More... | |
| unsigned int | getLength () const |
| TimeValuePair & | operator[] (unsigned int index) |
| Index operator. More... | |
| const TimeValuePair & | operator[] (unsigned int index) const |
| Constant index operator. More... | |
| TimeValuePair & | operator[] (int index) |
| Index operator with int argument. More... | |
| const TimeValuePair & | operator[] (int index) const |
| Constant index operator with int argument. More... | |
Time/Value ring buffer.
| typedef QPair<std::chrono::nanoseconds, T> PdQmlWidgets::ValueRing< T >::TimeValuePair |
| PdQmlWidgets::ValueRing< T >::ValueRing | ( | ) |
Constructor.
| PdQmlWidgets::ValueRing< T >::~ValueRing | ( | ) |
Destructor.
| void PdQmlWidgets::ValueRing< T >::append | ( | std::chrono::nanoseconds | time, |
| const T & | value | ||
| ) |
Appends a value to the ring.
Referenced by PdQmlWidgets::ValueRing< T >::copyUntil().
| void PdQmlWidgets::ValueRing< T >::clear | ( | ) |
Clears the ring.
| void PdQmlWidgets::ValueRing< T >::copyUntil | ( | const ValueRing< T > & | other, |
| std::chrono::nanoseconds | time | ||
| ) |
Copies data from another ring, up to a specific time.
References PdQmlWidgets::ValueRing< T >::append().
|
inline |
|
inline |
|
inline |
Index operator.
|
inline |
Constant index operator.
|
inline |
Index operator with int argument.
Allows to specify negative indices (from the end).
|
inline |
Constant index operator with int argument.
Allows to specify negative indices (from the end).
| void PdQmlWidgets::ValueRing< T >::setRange | ( | std::chrono::nanoseconds | r | ) |
Sets the #range.