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 const *msg_)
 
void copy (message_t &msg_)
 
void * data () ZMQ_NOTHROW
 
const void * data () const ZMQ_NOTHROW
 
template<typename T >
T * data () ZMQ_NOTHROW
 
template<typename T >
T const * data () const 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_)
 
ZMQ_NODISCARD zmq_msg_t * handle () ZMQ_NOTHROW
 
ZMQ_NODISCARD const zmq_msg_t * handle () const ZMQ_NOTHROW
 
 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)
 
bool more () const ZMQ_NOTHROW
 
void move (message_t const *msg_)
 
void move (message_t &msg_)
 
bool operator!= (const message_t &other) const ZMQ_NOTHROW
 
bool operator== (const message_t &other) const 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)
 
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 381 of file zmq.hpp.

Constructor & Destructor Documentation

zmq::message_t::message_t ( )
inline

Definition at line 384 of file zmq.hpp.

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

Definition at line 390 of file zmq.hpp.

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

Definition at line 397 of file zmq.hpp.

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

Definition at line 410 of file zmq.hpp.

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

Definition at line 422 of file zmq.hpp.

zmq::message_t::~message_t ( )
inline

Definition at line 479 of file zmq.hpp.

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

Member Function Documentation

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

Definition at line 541 of file zmq.hpp.

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

Definition at line 548 of file zmq.hpp.

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

Definition at line 561 of file zmq.hpp.

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

Definition at line 563 of file zmq.hpp.

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

Definition at line 575 of file zmq.hpp.

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

Definition at line 577 of file zmq.hpp.

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

Definition at line 573 of file zmq.hpp.

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

Definition at line 583 of file zmq.hpp.

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

Definition at line 597 of file zmq.hpp.

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

Definition at line 607 of file zmq.hpp.

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

Definition at line 703 of file zmq.hpp.

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

Definition at line 704 of file zmq.hpp.

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

Definition at line 555 of file zmq.hpp.

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

Definition at line 526 of file zmq.hpp.

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

Definition at line 533 of file zmq.hpp.

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

Definition at line 591 of file zmq.hpp.

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

Definition at line 585 of file zmq.hpp.

void zmq::message_t::rebuild ( )
inline

Definition at line 485 of file zmq.hpp.

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

Definition at line 494 of file zmq.hpp.

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

Definition at line 504 of file zmq.hpp.

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

Definition at line 515 of file zmq.hpp.

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

Definition at line 568 of file zmq.hpp.

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 661 of file zmq.hpp.

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

Definition at line 697 of file zmq.hpp.

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

Definition at line 643 of file zmq.hpp.

Member Data Documentation

zmq_msg_t zmq::message_t::msg
private

Definition at line 708 of file zmq.hpp.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Dec 6 2020 04:02:53