libzmq
src
metadata.hpp
Go to the documentation of this file.
1
/* SPDX-License-Identifier: MPL-2.0 */
2
3
#ifndef __ZMQ_METADATA_HPP_INCLUDED__
4
#define __ZMQ_METADATA_HPP_INCLUDED__
5
6
#include <map>
7
#include <string>
8
9
#include "
atomic_counter.hpp
"
10
11
namespace
zmq
12
{
13
class
metadata_t
14
{
15
public
:
16
typedef
std::map<std::string, std::string>
dict_t
;
17
18
metadata_t
(
const
dict_t
&dict_);
19
20
// Returns pointer to property value or NULL if
21
// property is not found.
22
const
char
*
get
(
const
std::string
&property_)
const
;
23
24
void
add_ref
();
25
26
// Drop reference. Returns true iff the reference
27
// counter drops to zero.
28
bool
drop_ref
();
29
30
private
:
31
// Reference counter.
32
atomic_counter_t
_ref_cnt
;
33
34
// Dictionary holding metadata.
35
const
dict_t
_dict
;
36
37
ZMQ_NON_COPYABLE_NOR_MOVABLE
(
metadata_t
)
38
};
39
}
40
41
#endif
zmq::metadata_t::metadata_t
metadata_t(const dict_t &dict_)
Definition:
metadata.cpp:6
zmq::metadata_t::_ref_cnt
atomic_counter_t _ref_cnt
Definition:
metadata.hpp:32
atomic_counter.hpp
string
GLsizei const GLchar *const * string
Definition:
glcorearb.h:3083
zmq::metadata_t::dict_t
std::map< std::string, std::string > dict_t
Definition:
metadata.hpp:16
zmq
Definition:
zmq.hpp:229
zmq::metadata_t::add_ref
void add_ref()
Definition:
metadata.cpp:23
zmq::metadata_t::get
const char * get(const std::string &property_) const
Definition:
metadata.cpp:10
zmq::atomic_counter_t
Definition:
atomic_counter.hpp:61
ZMQ_NON_COPYABLE_NOR_MOVABLE
#define ZMQ_NON_COPYABLE_NOR_MOVABLE(classname)
Definition:
macros.hpp:58
zmq::metadata_t::drop_ref
bool drop_ref()
Definition:
metadata.cpp:28
zmq::metadata_t
Definition:
metadata.hpp:13
zmq::metadata_t::_dict
const dict_t _dict
Definition:
metadata.hpp:35
libaditof
Author(s):
autogenerated on Wed May 21 2025 02:06:57