Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
03031313
Commit
03031313
authored
Jan 27, 2015
by
Pieter Hintjens
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1327 from rodgert/master
Clean up of metadata_t
parents
bccf0bc8
1c72bf4e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
11 deletions
+7
-11
metadata.cpp
src/metadata.cpp
+0
-4
metadata.hpp
src/metadata.hpp
+7
-7
No files found.
src/metadata.cpp
View file @
03031313
...
...
@@ -25,10 +25,6 @@ zmq::metadata_t::metadata_t (const dict_t &dict) :
{
}
zmq
::
metadata_t
::~
metadata_t
()
{
}
const
char
*
zmq
::
metadata_t
::
get
(
const
std
::
string
&
property
)
const
{
dict_t
::
const_iterator
it
=
dict
.
find
(
property
);
...
...
src/metadata.hpp
View file @
03031313
...
...
@@ -30,29 +30,29 @@ namespace zmq
class
metadata_t
{
public
:
typedef
std
::
map
<
std
::
string
,
const
std
::
string
>
dict_t
;
typedef
std
::
map
<
std
::
string
,
std
::
string
>
dict_t
;
metadata_t
(
const
dict_t
&
dict
);
virtual
~
metadata_t
();
// Returns pointer to property value or NULL if
// property is not found.
virtual
const
char
*
get
(
const
std
::
string
&
property
)
const
;
const
char
*
get
(
const
std
::
string
&
property
)
const
;
v
irtual
v
oid
add_ref
();
void
add_ref
();
// Drop reference. Returns true iff the reference
// counter drops to zero.
virtual
bool
drop_ref
();
bool
drop_ref
();
private
:
metadata_t
(
const
metadata_t
&
);
metadata_t
&
operator
=
(
const
metadata_t
&
);
// Reference counter.
atomic_counter_t
ref_cnt
;
// Dictionary holding metadata.
const
dict_t
dict
;
dict_t
dict
;
};
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment