libzmq  master
ZeroMQ C++ Core Engine (LIBZMQ)
zmq::dbuffer_t< msg_t > Class Template Reference

#include <dbuffer.hpp>

Collaboration diagram for zmq::dbuffer_t< msg_t >:

Public Member Functions

 dbuffer_t ()
 
 ~dbuffer_t ()
 
bool check_read ()
 
bool probe (bool(*fn)(const msg_t &))
 
bool read (msg_t *value_)
 
void write (const msg_t &value_)
 

Private Member Functions

 dbuffer_t (const dbuffer_t &)
 
const dbuffer_toperator= (const dbuffer_t &)
 

Private Attributes

msg_tback
 
msg_tfront
 
bool has_msg
 
msg_t storage [2]
 
mutex_t sync
 

Detailed Description

template<>
class zmq::dbuffer_t< msg_t >

Definition at line 59 of file dbuffer.hpp.

Constructor & Destructor Documentation

zmq::dbuffer_t< msg_t >::dbuffer_t ( )
inline

Definition at line 63 of file dbuffer.hpp.

zmq::dbuffer_t< msg_t >::~dbuffer_t ( )
inline

Definition at line 72 of file dbuffer.hpp.

zmq::dbuffer_t< msg_t >::dbuffer_t ( const dbuffer_t< msg_t > &  )
private

Member Function Documentation

bool zmq::dbuffer_t< msg_t >::check_read ( )
inline

Definition at line 117 of file dbuffer.hpp.

const dbuffer_t& zmq::dbuffer_t< msg_t >::operator= ( const dbuffer_t< msg_t > &  )
private
bool zmq::dbuffer_t< msg_t >::probe ( bool(*)(const msg_t &)  fn)
inline

Definition at line 124 of file dbuffer.hpp.

bool zmq::dbuffer_t< msg_t >::read ( msg_t value_)
inline

Definition at line 96 of file dbuffer.hpp.

References zmq::msg_t::init(), and zmq_assert.

Here is the call graph for this function:

void zmq::dbuffer_t< msg_t >::write ( const msg_t value_)
inline

Definition at line 78 of file dbuffer.hpp.

References zmq::msg_t::check(), and zmq_assert.

Here is the call graph for this function:

Member Data Documentation

msg_t* zmq::dbuffer_t< msg_t >::back
private

Definition at line 133 of file dbuffer.hpp.

msg_t * zmq::dbuffer_t< msg_t >::front
private

Definition at line 133 of file dbuffer.hpp.

bool zmq::dbuffer_t< msg_t >::has_msg
private

Definition at line 136 of file dbuffer.hpp.

msg_t zmq::dbuffer_t< msg_t >::storage[2]
private

Definition at line 132 of file dbuffer.hpp.

mutex_t zmq::dbuffer_t< msg_t >::sync
private

Definition at line 135 of file dbuffer.hpp.