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

zmq::encoder_base_t< T > Class Template Reference

#include <encoder.hpp>

Inheritance diagram for zmq::encoder_base_t< T >:

List of all members.

Public Member Functions

 encoder_base_t (size_t bufsize_)
virtual ~encoder_base_t ()
void get_data (unsigned char **data_, size_t *size_, int *offset_=NULL)

Protected Types

typedef bool(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_base_t (const encoder_base_t &)
void operator= (const encoder_base_t &)

Private Attributes

bool beginning
unsigned char * buf
size_t bufsize
step_t next
size_t to_write
unsigned char * write_pos

Detailed Description

template<typename T>
class zmq::encoder_base_t< T >

Definition at line 40 of file encoder.hpp.


Member Typedef Documentation

template<typename T>
typedef bool(T::* zmq::encoder_base_t< T >::step_t)() [protected]

Definition at line 130 of file encoder.hpp.


Constructor & Destructor Documentation

template<typename T>
zmq::encoder_base_t< T >::encoder_base_t ( size_t  bufsize_) [inline]

Definition at line 44 of file encoder.hpp.

template<typename T>
virtual zmq::encoder_base_t< T >::~encoder_base_t ( ) [inline, virtual]

Definition at line 53 of file encoder.hpp.

template<typename T>
zmq::encoder_base_t< T >::encoder_base_t ( const encoder_base_t< T > &  ) [private]

Member Function Documentation

template<typename T>
void zmq::encoder_base_t< T >::get_data ( unsigned char **  data_,
size_t *  size_,
int *  offset_ = NULL 
) [inline]

Definition at line 64 of file encoder.hpp.

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

Definition at line 135 of file encoder.hpp.

template<typename T>
void zmq::encoder_base_t< T >::operator= ( const encoder_base_t< T > &  ) [private]

Member Data Documentation

template<typename T>
bool zmq::encoder_base_t< T >::beginning [private]
template<typename T>
unsigned char* zmq::encoder_base_t< T >::buf [private]
template<typename T>
size_t zmq::encoder_base_t< T >::bufsize [private]

Definition at line 160 of file encoder.hpp.

Referenced by zmq::encoder_base_t< encoder_t >::get_data().

template<typename T>
step_t zmq::encoder_base_t< T >::next [private]
template<typename T>
size_t zmq::encoder_base_t< T >::to_write [private]
template<typename T>
unsigned char* zmq::encoder_base_t< T >::write_pos [private]

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