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

#include <decoder.hpp>

Inheritance diagram for zmq::decoder_base_t< T, A >:
Inheritance graph
[legend]

Public Member Functions

int decode (const unsigned char *data_, std::size_t size_, std::size_t &bytes_used_) ZMQ_FINAL
 
 decoder_base_t (const size_t buf_size_)
 
void get_buffer (unsigned char **data_, std::size_t *size_) ZMQ_FINAL
 
void resize_buffer (std::size_t new_size_) ZMQ_FINAL
 
 ~decoder_base_t () ZMQ_OVERRIDE
 
- Public Member Functions inherited from zmq::i_decoder
virtual int decode (const unsigned char *data_, size_t size_, size_t &processed_)=0
 
virtual void get_buffer (unsigned char **data_, size_t *size_)=0
 
virtual msg_tmsg ()=0
 
virtual void resize_buffer (size_t)=0
 
virtual ~i_decoder () ZMQ_DEFAULT
 

Protected Types

typedef int(T::* step_t) (unsigned char const *)
 

Protected Member Functions

Aget_allocator ()
 
void next_step (void *read_pos_, std::size_t to_read_, step_t next_)
 

Private Attributes

A _allocator
 
unsigned char * _buf
 
step_t _next
 
unsigned char * _read_pos
 
std::size_t _to_read
 

Detailed Description

template<typename T, typename A = c_single_allocator>
class zmq::decoder_base_t< T, A >

Definition at line 30 of file decoder.hpp.

Member Typedef Documentation

◆ step_t

template<typename T , typename A = c_single_allocator>
typedef int(T::* zmq::decoder_base_t< T, A >::step_t) (unsigned char const *)
protected

Definition at line 128 of file decoder.hpp.

Constructor & Destructor Documentation

◆ decoder_base_t()

template<typename T , typename A = c_single_allocator>
zmq::decoder_base_t< T, A >::decoder_base_t ( const size_t  buf_size_)
inlineexplicit

Definition at line 33 of file decoder.hpp.

◆ ~decoder_base_t()

template<typename T , typename A = c_single_allocator>
zmq::decoder_base_t< T, A >::~decoder_base_t ( )
inline

Definition at line 39 of file decoder.hpp.

Member Function Documentation

◆ decode()

template<typename T , typename A = c_single_allocator>
int zmq::decoder_base_t< T, A >::decode ( const unsigned char *  data_,
std::size_t  size_,
std::size_t &  bytes_used_ 
)
inline

Definition at line 70 of file decoder.hpp.

◆ get_allocator()

template<typename T , typename A = c_single_allocator>
A& zmq::decoder_base_t< T, A >::get_allocator ( )
inlineprotected

Definition at line 139 of file decoder.hpp.

◆ get_buffer()

template<typename T , typename A = c_single_allocator>
void zmq::decoder_base_t< T, A >::get_buffer ( unsigned char **  data_,
std::size_t *  size_ 
)
inline

Definition at line 42 of file decoder.hpp.

◆ next_step()

template<typename T , typename A = c_single_allocator>
void zmq::decoder_base_t< T, A >::next_step ( void read_pos_,
std::size_t  to_read_,
step_t  next_ 
)
inlineprotected

Definition at line 132 of file decoder.hpp.

◆ resize_buffer()

template<typename T , typename A = c_single_allocator>
void zmq::decoder_base_t< T, A >::resize_buffer ( std::size_t  new_size_)
inline

Definition at line 120 of file decoder.hpp.

Member Data Documentation

◆ _allocator

template<typename T , typename A = c_single_allocator>
A zmq::decoder_base_t< T, A >::_allocator
private

Definition at line 154 of file decoder.hpp.

◆ _buf

template<typename T , typename A = c_single_allocator>
unsigned char* zmq::decoder_base_t< T, A >::_buf
private

Definition at line 155 of file decoder.hpp.

◆ _next

template<typename T , typename A = c_single_allocator>
step_t zmq::decoder_base_t< T, A >::_next
private

Definition at line 145 of file decoder.hpp.

◆ _read_pos

template<typename T , typename A = c_single_allocator>
unsigned char* zmq::decoder_base_t< T, A >::_read_pos
private

Definition at line 148 of file decoder.hpp.

◆ _to_read

template<typename T , typename A = c_single_allocator>
std::size_t zmq::decoder_base_t< T, A >::_to_read
private

Definition at line 151 of file decoder.hpp.


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


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