libzmq  master
ZeroMQ C++ Core Engine (LIBZMQ)
zmq::metadata_t Class Reference

#include <metadata.hpp>

Collaboration diagram for zmq::metadata_t:

Public Types

typedef std::map< std::string, std::string > dict_t
 

Public Member Functions

 metadata_t (const dict_t &dict)
 
void add_ref ()
 
bool drop_ref ()
 
const char * get (const std::string &property) const
 

Private Member Functions

 metadata_t (const metadata_t &)
 
metadata_toperator= (const metadata_t &)
 

Private Attributes

dict_t dict
 
atomic_counter_t ref_cnt
 

Detailed Description

Definition at line 40 of file metadata.hpp.

Member Typedef Documentation

typedef std::map<std::string, std::string> zmq::metadata_t::dict_t

Definition at line 43 of file metadata.hpp.

Constructor & Destructor Documentation

zmq::metadata_t::metadata_t ( const dict_t dict)

Definition at line 33 of file metadata.cpp.

zmq::metadata_t::metadata_t ( const metadata_t )
private

Member Function Documentation

void zmq::metadata_t::add_ref ( )

Definition at line 48 of file metadata.cpp.

References zmq::atomic_counter_t::add(), and ref_cnt.

Referenced by zmq::msg_t::set_metadata().

Here is the call graph for this function:

Here is the caller graph for this function:

bool zmq::metadata_t::drop_ref ( )

Definition at line 53 of file metadata.cpp.

References ref_cnt, and zmq::atomic_counter_t::sub().

Referenced by zmq::stream_engine_t::~stream_engine_t().

Here is the call graph for this function:

Here is the caller graph for this function:

const char * zmq::metadata_t::get ( const std::string &  property) const

Definition at line 39 of file metadata.cpp.

References dict.

Referenced by zmq_msg_gets().

Here is the caller graph for this function:

metadata_t& zmq::metadata_t::operator= ( const metadata_t )
private

Member Data Documentation

dict_t zmq::metadata_t::dict
private

Definition at line 65 of file metadata.hpp.

Referenced by get().

atomic_counter_t zmq::metadata_t::ref_cnt
private

Definition at line 62 of file metadata.hpp.

Referenced by add_ref(), and drop_ref().