CHROMA
|
Circular buffer of arrays. More...
#include <circular_buffer.h>
Classes | |
struct | OutOfBoundsException |
struct | SizeMismatchException |
Public Member Functions | |
CircularBufferArray (unsigned int n_max, unsigned int n5) | |
Constructor. More... | |
~CircularBufferArray () | |
Destructor is automatic. More... | |
CircularBufferArray (const CircularBufferArray< T > &c) | |
Copy constructor. More... | |
void | reset (void) |
Nuke it: More... | |
int | sizeMax (void) const |
Get the maximum number of data items one can store. More... | |
int | size (void) const |
Get the current number of items stored. More... | |
void | get (const unsigned int i, multi1d< T > &x) const |
get the ith most recent item More... | |
bool | isEmpty (void) const |
Is empty check. More... | |
void | push (const multi1d< T > &e) |
push in an item as most recent. More... | |
Private Attributes | |
unsigned int | size_max |
unsigned int | size_internal |
multi2d< T > | q |
unsigned int | start |
unsigned int | end |
unsigned int | N5 |
Circular buffer of arrays.
Definition at line 225 of file circular_buffer.h.
|
inline |
|
inline |
Destructor is automatic.
Definition at line 252 of file circular_buffer.h.
|
inline |
Copy constructor.
Definition at line 255 of file circular_buffer.h.
|
inline |
get the ith most recent item
Definition at line 283 of file circular_buffer.h.
|
inline |
Is empty check.
Definition at line 304 of file circular_buffer.h.
|
inline |
push in an item as most recent.
Definition at line 310 of file circular_buffer.h.
References END_CODE, N5, q, s, and START_CODE.
|
inline |
Nuke it:
Definition at line 262 of file circular_buffer.h.
|
inline |
Get the current number of items stored.
Definition at line 278 of file circular_buffer.h.
|
inline |
Get the maximum number of data items one can store.
Definition at line 273 of file circular_buffer.h.
|
private |
Definition at line 402 of file circular_buffer.h.
|
private |
Definition at line 403 of file circular_buffer.h.
|
private |
Definition at line 400 of file circular_buffer.h.
|
private |
Definition at line 399 of file circular_buffer.h.
|
private |
Definition at line 398 of file circular_buffer.h.
|
private |
Definition at line 401 of file circular_buffer.h.