|
Ctrl-Z
一个多线程机器人运动控制强化学习部署框架
|
ring buffer class, this buffer does NOT garantee thread safety 更多...
#include <ZenBuffer.hpp>


Public 成员函数 | |
| RingBuffer (int _Size) | |
| Construct a new Ring Buffer object with size | |
| RingBuffer (int _Size, T &object) | |
| Construct a new Ring Buffer object with size and initial value | |
| void | push (const T &_Data) |
| push data to the buffer | |
| T & | operator() (int _Index) |
| get data from the buffer | |
| T & | operator[] (int _Index) |
| get data from the buffer | |
| T & | front () |
| get the oldest data from the buffer | |
| T & | back () |
| get the newest data from the buffer | |
| int | size () |
| get the size of the buffer | |
| void | flush () |
| flush the buffer with default value | |
Public 成员函数 继承自 z::ZObject | |
| void | PrintSplitLine (size_t length=60, char c='-') |
| print a split line, default length is 60 and character is '-' | |
ring buffer class, this buffer does NOT garantee thread safety
| T | type of data |
|
inline |
Construct a new Ring Buffer object with size
| _Size | size of the buffer |
|
inline |
Construct a new Ring Buffer object with size and initial value
| _Size | size of the buffer |
| object | initial value |
|
inline |
get the newest data from the buffer
|
inline |
get the oldest data from the buffer
|
inline |
get data from the buffer
| _Index | index of the data |
|
inline |
get data from the buffer
| _Index | index of the data |
|
inline |
push data to the buffer
| _Data | data to push |
|
inline |
get the size of the buffer