#include <ConcurrentCircularBuffer.h>
Public Types | |
typedef boost::circular_buffer< T > | container_type |
typedef container_type::size_type | size_type |
typedef container_type::value_type | value_type |
typedef boost::call_traits < value_type >::param_type | param_type |
Public Member Functions | |
ConcurrentCircularBuffer (size_type capacity) | |
void | pushFront (param_type item) |
void | popBack (value_type *pItem) |
bool | tryPushFront (param_type item) |
Attempts to push item to the front of the buffer, but does not wait for an availability. Returns success as true or false. | |
bool | tryPopBack (value_type *pItem) |
Attempts to pop an item from the back of the buffer, but does not wait for an availability. Returns success as true or false. | |
bool | isNotEmpty () |
bool | isNotFull () |
void | cancel () |
size_t | size () const |
Returns the number of items the buffer can hold. |
typedef boost::circular_buffer<T> cinder::ConcurrentCircularBuffer< T >::container_type |
typedef container_type::size_type cinder::ConcurrentCircularBuffer< T >::size_type |
typedef container_type::value_type cinder::ConcurrentCircularBuffer< T >::value_type |
typedef boost::call_traits<value_type>::param_type cinder::ConcurrentCircularBuffer< T >::param_type |
cinder::ConcurrentCircularBuffer< T >::ConcurrentCircularBuffer | ( | size_type | capacity | ) | [explicit] |
void cinder::ConcurrentCircularBuffer< T >::pushFront | ( | param_type | item | ) |
void cinder::ConcurrentCircularBuffer< T >::popBack | ( | value_type * | pItem | ) |
bool cinder::ConcurrentCircularBuffer< T >::tryPushFront | ( | param_type | item | ) |
Attempts to push item to the front of the buffer, but does not wait for an availability. Returns success as true or false.
bool cinder::ConcurrentCircularBuffer< T >::tryPopBack | ( | value_type * | pItem | ) |
Attempts to pop an item from the back of the buffer, but does not wait for an availability. Returns success as true or false.
bool cinder::ConcurrentCircularBuffer< T >::isNotEmpty | ( | ) |
bool cinder::ConcurrentCircularBuffer< T >::isNotFull | ( | ) |
void cinder::ConcurrentCircularBuffer< T >::cancel | ( | ) |
size_t cinder::ConcurrentCircularBuffer< T >::size | ( | ) | const |
Returns the number of items the buffer can hold.