libzmq master
The Intelligent Transport Layer
Public Member Functions | Protected Types | Protected Member Functions | Private Member Functions | Private Attributes

zmq::encoder_t Class Reference

#include <encoder.hpp>

Inheritance diagram for zmq::encoder_t:
Collaboration diagram for zmq::encoder_t:

List of all members.

Public Member Functions

 encoder_t (size_t bufsize_)
 ~encoder_t ()
void get_data (unsigned char **data_, size_t *size_, int *offset_=NULL)
void set_session (class session_base_t *session_)

Protected Types

typedef bool(encoder_t::* step_t )()

Protected Member Functions

void next_step (void *write_pos_, size_t to_write_, step_t next_, bool beginning_)

Private Member Functions

 encoder_t (const encoder_t &)
bool message_ready ()
const encoder_toperator= (const encoder_t &)
bool size_ready ()

Private Attributes

msg_t in_progress
class session_base_tsession
unsigned char tmpbuf [10]

Detailed Description

Definition at line 169 of file encoder.hpp.


Member Typedef Documentation

typedef bool(encoder_t ::* zmq::encoder_base_t< encoder_t >::step_t)() [protected, inherited]

Definition at line 130 of file encoder.hpp.


Constructor & Destructor Documentation

zmq::encoder_t::encoder_t ( size_t  bufsize_)

Definition at line 28 of file encoder.cpp.

References errno_assert, in_progress, zmq::msg_t::init(), message_ready(), and zmq::encoder_base_t< encoder_t >::next_step().

Here is the call graph for this function:

zmq::encoder_t::~encoder_t ( )

Definition at line 39 of file encoder.cpp.

References errno_assert.

zmq::encoder_t::encoder_t ( const encoder_t ) [private]

Member Function Documentation

void zmq::encoder_base_t< encoder_t >::get_data ( unsigned char **  data_,
size_t *  size_,
int *  offset_ = NULL 
) [inline, inherited]
bool zmq::encoder_t::message_ready ( ) [private]

Definition at line 58 of file encoder.cpp.

References errno_assert, zmq::msg_t::more, size_ready(), and unlikely.

Referenced by encoder_t(), and size_ready().

Here is the call graph for this function:

Here is the caller graph for this function:

void zmq::encoder_base_t< encoder_t >::next_step ( void *  write_pos_,
size_t  to_write_,
step_t  next_,
bool  beginning_ 
) [inline, protected, inherited]

Definition at line 135 of file encoder.hpp.

References zmq::encoder_base_t< T >::beginning, zmq::encoder_base_t< T >::next, zmq::encoder_base_t< T >::to_write, and zmq::encoder_base_t< T >::write_pos.

Referenced by encoder_t().

Here is the caller graph for this function:

const encoder_t& zmq::encoder_t::operator= ( const encoder_t ) [private]
void zmq::encoder_t::set_session ( class session_base_t session_)

Definition at line 45 of file encoder.cpp.

bool zmq::encoder_t::size_ready ( ) [private]

Definition at line 50 of file encoder.cpp.

References message_ready().

Referenced by message_ready().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 184 of file encoder.hpp.

Referenced by encoder_t().

Definition at line 183 of file encoder.hpp.

unsigned char zmq::encoder_t::tmpbuf[10] [private]

Definition at line 185 of file encoder.hpp.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines