[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 03/09: runtime: added default xtor & dtor t
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 03/09: runtime: added default xtor & dtor to tag_t; srcid default is now PMT_F |
Date: |
Sun, 26 Apr 2015 22:37:13 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch maint
in repository gnuradio.
commit 3c2571a78c52b77bfb7b39aae8d3e13011262393
Author: Sean Nowlan <address@hidden>
Date: Sun Apr 26 17:04:36 2015 -0400
runtime: added default xtor & dtor to tag_t; srcid default is now PMT_F
---
gnuradio-runtime/include/gnuradio/tags.h | 12 ++++++++++++
gnuradio-runtime/python/gnuradio/gr/tag_utils.py | 2 +-
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/gnuradio-runtime/include/gnuradio/tags.h
b/gnuradio-runtime/include/gnuradio/tags.h
index 4e63d77..0551e46 100644
--- a/gnuradio-runtime/include/gnuradio/tags.h
+++ b/gnuradio-runtime/include/gnuradio/tags.h
@@ -60,6 +60,18 @@ namespace gr {
return (t.key == key) && (t.value == value) && \
(t.srcid == srcid) && (t.offset == offset);
}
+
+ tag_t()
+ : offset(0),
+ key(pmt::PMT_NIL),
+ value(pmt::PMT_NIL),
+ srcid(pmt::PMT_F) // consistent with default srcid value in
block::add_item_tag
+ {
+ }
+
+ ~tag_t()
+ {
+ }
};
} /* namespace gr */
diff --git a/gnuradio-runtime/python/gnuradio/gr/tag_utils.py
b/gnuradio-runtime/python/gnuradio/gr/tag_utils.py
index ba46e3f..ab03958 100644
--- a/gnuradio-runtime/python/gnuradio/gr/tag_utils.py
+++ b/gnuradio-runtime/python/gnuradio/gr/tag_utils.py
@@ -8,7 +8,7 @@ class PythonTag(object):
self.offset = None
self.key = None
self.value = None
- self.srcid = None
+ self.srcid = pmt.PMT_F
def tag_to_python(tag):
""" Convert a stream tag to a Python-readable object """
- [Commit-gnuradio] [gnuradio] branch maint updated (e61a5c8 -> 6020965), git, 2015/04/26
- [Commit-gnuradio] [gnuradio] 05/09: runtime: fixed default srcid value for PythonTag class, git, 2015/04/26
- [Commit-gnuradio] [gnuradio] 04/09: blocks: added tag tests to vector source QA code, git, 2015/04/26
- [Commit-gnuradio] [gnuradio] 02/09: blocks: vector_source: fixed tag srcid propagation when not using repeat mode, git, 2015/04/26
- [Commit-gnuradio] [gnuradio] 03/09: runtime: added default xtor & dtor to tag_t; srcid default is now PMT_F,
git <=
- [Commit-gnuradio] [gnuradio] 07/09: Fixed garbled Doxygen formatting of channel map, git, 2015/04/26
- [Commit-gnuradio] [gnuradio] 08/09: Merge remote-tracking branch 'mmueller/docs_typo_sinusiod' into maint, git, 2015/04/26
- [Commit-gnuradio] [gnuradio] 06/09: qtgui: Fixes problem with half spectrum when set to 2048., git, 2015/04/26
- [Commit-gnuradio] [gnuradio] 09/09: Merge remote-tracking branch 'nowls/vec_src_fix_tag_srcid' into maint, git, 2015/04/26
- [Commit-gnuradio] [gnuradio] 01/09: Typos: Sinusiods in channel model docs, git, 2015/04/26