#include <_item_buffer.h>
Inheritance diagram for item_buffer< T >:
Public Types | |
typedef T | input_type |
typedef T | output_type |
Public Member Functions | |
item_buffer () | |
Constructor. | |
Protected Types | |
typedef size_t | size_type |
typedef std::pair< T, bool > | item_type |
Protected Member Functions | |
bool | buffer_empty () |
item_type & | item (size_type i) |
bool | item_valid (size_type i) |
void | fetch_front (T &v) |
void | fetch_back (T &v) |
void | invalidate (size_type i) |
void | validate (size_type i) |
void | invalidate_front () |
void | validate_front () |
void | invalidate_back () |
size_type | size () |
size_type | capacity () |
bool | buffer_full () |
void | grow_my_array (size_t minimum_size) |
Grows the internal array. | |
bool | push_back (T &v) |
bool | pop_back (T &v) |
bool | pop_front (T &v) |
Protected Attributes | |
item_type * | my_array |
size_type | my_array_size |
size_type | my_head |
size_type | my_tail |
Static Protected Attributes | |
static const size_type | initial_buffer_size = 4 |