Public Member Functions | Private Member Functions | Private Attributes | List of all members
zmq::message_t Class Reference

#include <zmq.hpp>

Public Member Functions

void copy (message_t &msg_)
 
void copy (message_t const *msg_)
 
const voiddata () const ZMQ_NOTHROW
 
template<typename T >
const Tdata () const ZMQ_NOTHROW
 
voiddata () ZMQ_NOTHROW
 
template<typename T >
Tdata () ZMQ_NOTHROW
 
ZMQ_NODISCARD bool empty () const ZMQ_NOTHROW
 
bool equal (const message_t *other) const ZMQ_NOTHROW
 
int get (int property_)
 
const char * gets (const char *property_)
 
const ZMQ_NODISCARD zmq_msg_thandle () const ZMQ_NOTHROW
 
ZMQ_NODISCARD zmq_msg_thandle () ZMQ_NOTHROW
 
 message_t () ZMQ_NOTHROW
 
 message_t (const void *data_, size_t size_)
 
template<class ForwardIter >
 message_t (ForwardIter first, ForwardIter last)
 
 message_t (size_t size_)
 
 message_t (void *data_, size_t size_, free_fn *ffn_, void *hint_=ZMQ_NULLPTR)
 
bool more () const ZMQ_NOTHROW
 
void move (message_t &msg_)
 
void move (message_t const *msg_)
 
bool operator!= (const message_t &other) const ZMQ_NOTHROW
 
bool operator== (const message_t &other) const ZMQ_NOTHROW
 
void rebuild ()
 
void rebuild (const std::string &str)
 
void rebuild (const void *data_, size_t size_)
 
void rebuild (size_t size_)
 
void rebuild (void *data_, size_t size_, free_fn *ffn_, void *hint_=ZMQ_NULLPTR)
 
size_t size () const ZMQ_NOTHROW
 
std::string str () const
 
void swap (message_t &other) ZMQ_NOTHROW
 
std::string to_string () const
 
 ~message_t () ZMQ_NOTHROW
 

Private Member Functions

 message_t (const message_t &) ZMQ_DELETED_FUNCTION
 
void operator= (const message_t &) ZMQ_DELETED_FUNCTION
 

Private Attributes

zmq_msg_t msg
 

Detailed Description

Definition at line 409 of file zmq.hpp.

Constructor & Destructor Documentation

◆ message_t() [1/6]

zmq::message_t::message_t ( )
inline

Definition at line 412 of file zmq.hpp.

◆ message_t() [2/6]

zmq::message_t::message_t ( size_t  size_)
inlineexplicit

Definition at line 418 of file zmq.hpp.

◆ message_t() [3/6]

template<class ForwardIter >
zmq::message_t::message_t ( ForwardIter  first,
ForwardIter  last 
)
inline

Definition at line 425 of file zmq.hpp.

◆ message_t() [4/6]

zmq::message_t::message_t ( const void data_,
size_t  size_ 
)
inline

Definition at line 438 of file zmq.hpp.

◆ message_t() [5/6]

zmq::message_t::message_t ( void data_,
size_t  size_,
free_fn ffn_,
void hint_ = ZMQ_NULLPTR 
)
inline

Definition at line 450 of file zmq.hpp.

◆ ~message_t()

zmq::message_t::~message_t ( )
inline

Definition at line 507 of file zmq.hpp.

◆ message_t() [6/6]

zmq::message_t::message_t ( const message_t )
private

Member Function Documentation

◆ copy() [1/2]

void zmq::message_t::copy ( message_t msg_)
inline

Definition at line 581 of file zmq.hpp.

◆ copy() [2/2]

void zmq::message_t::copy ( message_t const *  msg_)
inline

Definition at line 574 of file zmq.hpp.

◆ data() [1/4]

const void* zmq::message_t::data ( ) const
inline

Definition at line 596 of file zmq.hpp.

◆ data() [2/4]

template<typename T >
const T* zmq::message_t::data ( ) const
inline

Definition at line 610 of file zmq.hpp.

◆ data() [3/4]

void* zmq::message_t::data ( )
inline

Definition at line 594 of file zmq.hpp.

◆ data() [4/4]

template<typename T >
T* zmq::message_t::data ( )
inline

Definition at line 608 of file zmq.hpp.

◆ empty()

ZMQ_NODISCARD bool zmq::message_t::empty ( ) const
inline

Definition at line 606 of file zmq.hpp.

◆ equal()

bool zmq::message_t::equal ( const message_t other) const
inline

Definition at line 616 of file zmq.hpp.

◆ get()

int zmq::message_t::get ( int  property_)
inline

Definition at line 630 of file zmq.hpp.

◆ gets()

const char* zmq::message_t::gets ( const char *  property_)
inline

Definition at line 640 of file zmq.hpp.

◆ handle() [1/2]

const ZMQ_NODISCARD zmq_msg_t* zmq::message_t::handle ( ) const
inline

Definition at line 737 of file zmq.hpp.

◆ handle() [2/2]

ZMQ_NODISCARD zmq_msg_t* zmq::message_t::handle ( )
inline

Definition at line 736 of file zmq.hpp.

◆ more()

bool zmq::message_t::more ( ) const
inline

Definition at line 588 of file zmq.hpp.

◆ move() [1/2]

void zmq::message_t::move ( message_t msg_)
inline

Definition at line 566 of file zmq.hpp.

◆ move() [2/2]

void zmq::message_t::move ( message_t const *  msg_)
inline

Definition at line 559 of file zmq.hpp.

◆ operator!=()

bool zmq::message_t::operator!= ( const message_t other) const
inline

Definition at line 624 of file zmq.hpp.

◆ operator=()

void zmq::message_t::operator= ( const message_t )
private

◆ operator==()

bool zmq::message_t::operator== ( const message_t other) const
inline

Definition at line 618 of file zmq.hpp.

◆ rebuild() [1/5]

void zmq::message_t::rebuild ( )
inline

Definition at line 513 of file zmq.hpp.

◆ rebuild() [2/5]

void zmq::message_t::rebuild ( const std::string str)
inline

Definition at line 543 of file zmq.hpp.

◆ rebuild() [3/5]

void zmq::message_t::rebuild ( const void data_,
size_t  size_ 
)
inline

Definition at line 532 of file zmq.hpp.

◆ rebuild() [4/5]

void zmq::message_t::rebuild ( size_t  size_)
inline

Definition at line 522 of file zmq.hpp.

◆ rebuild() [5/5]

void zmq::message_t::rebuild ( void data_,
size_t  size_,
free_fn ffn_,
void hint_ = ZMQ_NULLPTR 
)
inline

Definition at line 548 of file zmq.hpp.

◆ size()

size_t zmq::message_t::size ( ) const
inline

Definition at line 601 of file zmq.hpp.

◆ str()

std::string zmq::message_t::str ( ) const
inline

Dump content to string for debugging. Ascii chars are readable, the rest is printed as hex. Probably ridiculously slow. Use to_string() or to_string_view() for interpreting the message as a string.

Definition at line 694 of file zmq.hpp.

◆ swap()

void zmq::message_t::swap ( message_t other)
inline

Definition at line 730 of file zmq.hpp.

◆ to_string()

std::string zmq::message_t::to_string ( ) const
inline

Definition at line 676 of file zmq.hpp.

Member Data Documentation

◆ msg

zmq_msg_t zmq::message_t::msg
private

Definition at line 741 of file zmq.hpp.


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


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