Public Member Functions | Protected Types | Protected Member Functions | Private Attributes | List of all members
zmq::encoder_base_t< T > Class Template Reference

#include <encoder.hpp>

Inheritance diagram for zmq::encoder_base_t< T >:
Inheritance graph
[legend]

Public Member Functions

size_t encode (unsigned char **data_, size_t size_) ZMQ_FINAL
 
 encoder_base_t (size_t bufsize_)
 
void load_msg (msg_t *msg_) ZMQ_FINAL
 
 ~encoder_base_t () ZMQ_OVERRIDE
 
- Public Member Functions inherited from zmq::i_encoder
virtual ~i_encoder () ZMQ_DEFAULT
 

Protected Types

typedef void(T::* step_t) ()
 

Protected Member Functions

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

Private Attributes

unsigned char *const _buf
 
const size_t _buf_size
 
msg_t_in_progress
 
bool _new_msg_flag
 
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 27 of file encoder.hpp.

Member Typedef Documentation

◆ step_t

template<typename T >
typedef void(T::* zmq::encoder_base_t< T >::step_t) ()
protected

Definition at line 111 of file encoder.hpp.

Constructor & Destructor Documentation

◆ encoder_base_t()

template<typename T >
zmq::encoder_base_t< T >::encoder_base_t ( size_t  bufsize_)
inlineexplicit

Definition at line 30 of file encoder.hpp.

◆ ~encoder_base_t()

template<typename T >
zmq::encoder_base_t< T >::~encoder_base_t ( )
inline

Definition at line 42 of file encoder.hpp.

Member Function Documentation

◆ encode()

template<typename T >
size_t zmq::encoder_base_t< T >::encode ( unsigned char **  data_,
size_t  size_ 
)
inlinevirtual

Implements zmq::i_encoder.

Definition at line 47 of file encoder.hpp.

◆ in_progress()

template<typename T >
msg_t* zmq::encoder_base_t< T >::in_progress ( )
inlineprotected

Definition at line 126 of file encoder.hpp.

◆ load_msg()

template<typename T >
void zmq::encoder_base_t< T >::load_msg ( msg_t msg_)
inlinevirtual

Implements zmq::i_encoder.

Definition at line 102 of file encoder.hpp.

◆ next_step()

template<typename T >
void zmq::encoder_base_t< T >::next_step ( void write_pos_,
size_t  to_write_,
step_t  next_,
bool  new_msg_flag_ 
)
inlineprotected

Definition at line 115 of file encoder.hpp.

Member Data Documentation

◆ _buf

template<typename T >
unsigned char* const zmq::encoder_base_t< T >::_buf
private

Definition at line 143 of file encoder.hpp.

◆ _buf_size

template<typename T >
const size_t zmq::encoder_base_t< T >::_buf_size
private

Definition at line 142 of file encoder.hpp.

◆ _in_progress

template<typename T >
msg_t* zmq::encoder_base_t< T >::_in_progress
private

Definition at line 145 of file encoder.hpp.

◆ _new_msg_flag

template<typename T >
bool zmq::encoder_base_t< T >::_new_msg_flag
private

Definition at line 139 of file encoder.hpp.

◆ _next

template<typename T >
step_t zmq::encoder_base_t< T >::_next
private

Definition at line 137 of file encoder.hpp.

◆ _to_write

template<typename T >
size_t zmq::encoder_base_t< T >::_to_write
private

Definition at line 133 of file encoder.hpp.

◆ _write_pos

template<typename T >
unsigned char* zmq::encoder_base_t< T >::_write_pos
private

Definition at line 130 of file encoder.hpp.


The documentation for this class was generated from the following file:


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:11