#include <gr_buffer.h>
Collaboration diagram for gr_buffer_reader:
Public Member Functions | |
~gr_buffer_reader () | |
int | items_available () const |
Return number of items available for reading. | |
int | max_possible_items_available () const |
Return maximum number of items that could ever be available for reading. This is used as a sanity check in the scheduler to avoid looping forever. | |
const void * | read_pointer () |
return pointer to read buffer. | |
void | update_read_pointer (int nitems) |
void | set_done (bool done) |
bool | done () const |
Friends | |
class | gr_buffer |
gr_buffer_reader_sptr | gr_buffer_add_reader (gr_buffer_sptr buf, int history) |
create a new gr_buffer_reader and attach it to buffer buf |
|
|
|
|
|
Return number of items available for reading.
|
|
Return maximum number of items that could ever be available for reading. This is used as a sanity check in the scheduler to avoid looping forever.
|
|
return pointer to read buffer. The return value points to items_available() number of items |
|
|
|
|
|
|
|
create a new gr_buffer_reader and attach it to buffer
|