Internal fifo buffer. More...
#include <tpie/pipelining/internal_buffer.h>
Public Types | |
| typedef T | item_type |
|
typedef bits::internal_buffer_input_t < T > | input_t |
|
typedef bits::internal_buffer_pull_output_t < T > | output_t |
Public Member Functions | |
| internal_passive_buffer (size_t size, size_t additional_item_size=0) | |
| Construct a factory for the buffer. More... | |
| input_t | raw_input () |
| output_t | raw_output () |
| inputpipe_t | input () |
| Return pipe node where items are pushed into the buffer Pushing items into a full buffer causes undefined behaviour. More... | |
| outputpipe_t | output () |
| Return pipe node where items in the buffer can be pulled from Pulling from the empty buffer causes undefined behaviour. More... | |
Internal fifo buffer.
Represents an internal buffer with limited capacity.
Definition at line 105 of file internal_buffer.h.
|
inline |
Construct a factory for the buffer.
| size | The maximal number of elements the buffer will hold. |
| additional_item_size | if itemas have a size different then sizeof(T), say if the malloc stuff internally, this additional size will be accounted for per element |
Definition at line 129 of file internal_buffer.h.
|
inline |
Return pipe node where items are pushed into the buffer Pushing items into a full buffer causes undefined behaviour.
Definition at line 145 of file internal_buffer.h.
|
inline |
Return pipe node where items in the buffer can be pulled from Pulling from the empty buffer causes undefined behaviour.
Definition at line 153 of file internal_buffer.h.