[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 01/04: blocks: vector_sink.reset() now also
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 01/04: blocks: vector_sink.reset() now also clears tags |
Date: |
Sun, 17 Jan 2016 18:30:52 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch master
in repository gnuradio.
commit 179989806b712f450e18821975cd999a68c9aa04
Author: Martin Braun <address@hidden>
Date: Wed Jan 13 13:23:57 2016 +0100
blocks: vector_sink.reset() now also clears tags
Fixes bug #878.
---
gr-blocks/include/gnuradio/blocks/vector_sink_X.h.t | 1 +
gr-blocks/lib/vector_sink_X_impl.h.t | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/gr-blocks/include/gnuradio/blocks/vector_sink_X.h.t
b/gr-blocks/include/gnuradio/blocks/vector_sink_X.h.t
index 527ebf7..a4ef38f 100644
--- a/gr-blocks/include/gnuradio/blocks/vector_sink_X.h.t
+++ b/gr-blocks/include/gnuradio/blocks/vector_sink_X.h.t
@@ -43,6 +43,7 @@ namespace gr {
static sptr make(int vlen = 1);
+ //! Clear the data and tags containers.
virtual void reset() = 0;
virtual std::vector<@TYPE@> data() const = 0;
virtual std::vector<tag_t> tags() const = 0;
diff --git a/gr-blocks/lib/vector_sink_X_impl.h.t
b/gr-blocks/lib/vector_sink_X_impl.h.t
index b5d3bd6..86f0e87 100644
--- a/gr-blocks/lib/vector_sink_X_impl.h.t
+++ b/gr-blocks/lib/vector_sink_X_impl.h.t
@@ -41,7 +41,7 @@ namespace gr {
@NAME_IMPL@(int vlen);
address@hidden@();
- void reset() { d_data.clear(); }
+ void reset() { d_data.clear(); d_tags.clear(); }
std::vector<@TYPE@> data() const;
std::vector<tag_t> tags() const;