ZIO
Python and C++ interface to ZeroMQ and Zyre
Public Member Functions | List of all members
zmq::message_t Class Reference

#include <zmq.hpp>

Public Member Functions

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

Detailed Description

Definition at line 329 of file zmq.hpp.

Constructor & Destructor Documentation

◆ message_t() [1/5]

zmq::message_t::message_t ( )
inline

Definition at line 332 of file zmq.hpp.

◆ message_t() [2/5]

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

Definition at line 338 of file zmq.hpp.

◆ message_t() [3/5]

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

Definition at line 345 of file zmq.hpp.

◆ message_t() [4/5]

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

Definition at line 358 of file zmq.hpp.

◆ message_t() [5/5]

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

Definition at line 366 of file zmq.hpp.

◆ ~message_t()

zmq::message_t::~message_t ( )
inline

Definition at line 399 of file zmq.hpp.

Member Function Documentation

◆ copy() [1/2]

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

Definition at line 461 of file zmq.hpp.

◆ copy() [2/2]

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

Definition at line 468 of file zmq.hpp.

◆ data() [1/4]

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

Definition at line 481 of file zmq.hpp.

◆ data() [2/4]

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

Definition at line 483 of file zmq.hpp.

◆ data() [3/4]

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

Definition at line 495 of file zmq.hpp.

◆ data() [4/4]

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

Definition at line 497 of file zmq.hpp.

◆ empty()

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

Definition at line 493 of file zmq.hpp.

◆ equal()

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

Definition at line 503 of file zmq.hpp.

◆ get()

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

Definition at line 517 of file zmq.hpp.

◆ gets()

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

Definition at line 527 of file zmq.hpp.

◆ handle() [1/2]

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

Definition at line 623 of file zmq.hpp.

◆ handle() [2/2]

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

Definition at line 624 of file zmq.hpp.

◆ more()

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

Definition at line 475 of file zmq.hpp.

◆ move() [1/2]

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

Definition at line 446 of file zmq.hpp.

◆ move() [2/2]

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

Definition at line 453 of file zmq.hpp.

◆ operator!=()

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

Definition at line 511 of file zmq.hpp.

◆ operator==()

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

Definition at line 505 of file zmq.hpp.

◆ rebuild() [1/4]

void zmq::message_t::rebuild ( )
inline

Definition at line 405 of file zmq.hpp.

◆ rebuild() [2/4]

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

Definition at line 414 of file zmq.hpp.

◆ rebuild() [3/4]

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

Definition at line 424 of file zmq.hpp.

◆ rebuild() [4/4]

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

Definition at line 435 of file zmq.hpp.

◆ size()

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

Definition at line 488 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 581 of file zmq.hpp.

◆ swap()

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

Definition at line 617 of file zmq.hpp.

◆ to_string()

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

Definition at line 563 of file zmq.hpp.


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