Public Member Functions | |
CyclicBuffer (int maxSize) | |
void | add (const spi::LoggingEventPtr &event) |
spi::LoggingEventPtr | get (int i) |
spi::LoggingEventPtr | get () |
int | length () const |
void | resize (int newSize) |
This buffer gives read access to any element in the buffer not just the first or last element.
|
Instantiate a new CyclicBuffer of at most
|
|
Add an |
|
Get the oldest (first) element in the buffer. The oldest element is removed from the buffer. |
|
Get the ith oldest event currently in the buffer. If i is outside the range 0 to the number of elements currently in the buffer, then |
|
Get the number of elements in the buffer. This number is guaranteed to be in the range 0 to |
|
Resize the cyclic buffer to
|