An iterable circular buffer. More...
#include <circular_buffer.h>
Classes | |
class | const_iterator |
Constant iterator class. More... | |
Public Member Functions | |
CircularBuffer () | |
CircularBuffer (const CircularBuffer &src) | |
~CircularBuffer () | |
void | resize (size_t new_size, T v) |
T & | operator[] (size_t at) |
const_iterator | get (size_t at) const |
size_t | size () const |
An iterable circular buffer.
This class provides the buffer that is used by TracingNode to hold traces.
|
inline |
Default constructor.
|
inline |
Copy constructor.
|
inline |
Destructor.
|
inline |
Returns a constant iterator to read from the buffer at the given location. Location index wraps around at the limits of the buffer.
|
inline |
Returns the value of the buffer at the given location. Location index wraps around at the limits of the buffer.
|
inline |
Change the size of the buffer to new value. All its content gets overwritten with v.
|
inline |
Returns the current size of the buffer.