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 void * data () const ZMQ_NOTHROW
 
template<typename T >
T const * data () const ZMQ_NOTHROW
 
void * data () ZMQ_NOTHROW
 
template<typename T >
T * data () 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_t * handle () const ZMQ_NOTHROW
 
ZMQ_NODISCARD zmq_msg_t * handle () 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 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 389 of file zmq.hpp.

Constructor & Destructor Documentation

◆ message_t() [1/6]

zmq::message_t::message_t ( )
inline

Definition at line 392 of file zmq.hpp.

◆ message_t() [2/6]

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

Definition at line 398 of file zmq.hpp.

◆ message_t() [3/6]

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

Definition at line 406 of file zmq.hpp.

◆ message_t() [4/6]

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

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

◆ ~message_t()

zmq::message_t::~message_t ( )
inline

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

◆ copy() [2/2]

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

Definition at line 552 of file zmq.hpp.

◆ data() [1/4]

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

Definition at line 577 of file zmq.hpp.

◆ data() [2/4]

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

Definition at line 599 of file zmq.hpp.

◆ data() [3/4]

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

Definition at line 572 of file zmq.hpp.

◆ data() [4/4]

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

Definition at line 593 of file zmq.hpp.

◆ empty()

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

Definition at line 587 of file zmq.hpp.

◆ equal()

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

Definition at line 605 of file zmq.hpp.

◆ get()

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

Definition at line 622 of file zmq.hpp.

◆ gets()

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

Definition at line 632 of file zmq.hpp.

◆ handle() [1/2]

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

Definition at line 739 of file zmq.hpp.

◆ handle() [2/2]

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

Definition at line 735 of file zmq.hpp.

◆ more()

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

Definition at line 566 of file zmq.hpp.

◆ move() [1/2]

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

Definition at line 544 of file zmq.hpp.

◆ move() [2/2]

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

Definition at line 537 of file zmq.hpp.

◆ operator!=()

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

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

◆ rebuild() [1/4]

void zmq::message_t::rebuild ( )
inline

Definition at line 496 of file zmq.hpp.

◆ rebuild() [2/4]

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

Definition at line 515 of file zmq.hpp.

◆ rebuild() [3/4]

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

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

◆ size()

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

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

◆ swap()

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

Definition at line 729 of file zmq.hpp.

◆ to_string()

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

Definition at line 668 of file zmq.hpp.

Member Data Documentation

◆ msg

zmq_msg_t zmq::message_t::msg
private

Definition at line 746 of file zmq.hpp.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:54