![]() |
ApraPipes 1.0
|
#include <BoundBuffer.h>
Public Types | |
typedef boost::container::deque< 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 | |
bounded_buffer (size_type capacity) | |
void | push (typename boost::call_traits< value_type >::param_type item) |
void | push_back (typename boost::call_traits< value_type >::param_type item) |
void | push_drop_oldest (typename boost::call_traits< value_type >::param_type item) |
bool | try_push (typename boost::call_traits< value_type >::param_type item) |
bool | isFull () |
value_type | pop () |
value_type | peek () |
value_type | try_pop () |
void | clear () |
void | flush () |
void | accept () |
size_t | size () |
Private Member Functions | |
bounded_buffer (const bounded_buffer &) | |
bounded_buffer & | operator= (const bounded_buffer &) |
bool | is_not_empty () const |
bool | is_not_full () const |
bool | is_ready_to_accept () const |
void | acquireLock () |
void | releaseLock () |
void | pushUnsafeForQuePushStrategy (typename boost::call_traits< value_type >::param_type item) |
Private Attributes | |
bool | m_accept |
size_type | m_unread |
size_type | m_capacity |
container_type | m_container |
boost::mutex | m_mutex |
boost::condition | m_not_empty |
boost::condition | m_not_full |
Friends | |
class | NonBlockingAllOrNonePushStrategy |
typedef boost::container::deque<T> bounded_buffer< T >::container_type |
typedef boost::call_traits<value_type>::param_type bounded_buffer< T >::param_type |
typedef container_type::size_type bounded_buffer< T >::size_type |
typedef container_type::value_type bounded_buffer< T >::value_type |
|
inlineexplicit |
|
private |
|
inline |
|
inlineprivate |
|
inline |
|
inline |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inline |
|
private |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
|
inlineprivate |
|
inline |
|
inline |
|
inline |
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |