diff options
author | Tom Rondeau | 2010-10-26 21:01:22 -0400 |
---|---|---|
committer | Tom Rondeau | 2010-10-26 21:01:22 -0400 |
commit | d07a944f0c327b255285a8fef4604b65fa8fd7c8 (patch) | |
tree | 14b7946ef3e528e1f322f4b6851e1920e2c34b5b /gnuradio-core/src/lib/runtime/gr_block.cc | |
parent | b22efee47c7d891a8c10b1493f20976534fdb751 (diff) | |
download | gnuradio-d07a944f0c327b255285a8fef4604b65fa8fd7c8.tar.gz gnuradio-d07a944f0c327b255285a8fef4604b65fa8fd7c8.tar.bz2 gnuradio-d07a944f0c327b255285a8fef4604b65fa8fd7c8.zip |
First stab at adding get functions for item tags in a given range.
Diffstat (limited to 'gnuradio-core/src/lib/runtime/gr_block.cc')
-rw-r--r-- | gnuradio-core/src/lib/runtime/gr_block.cc | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/gnuradio-core/src/lib/runtime/gr_block.cc b/gnuradio-core/src/lib/runtime/gr_block.cc index ed848e3ed..a2b495867 100644 --- a/gnuradio-core/src/lib/runtime/gr_block.cc +++ b/gnuradio-core/src/lib/runtime/gr_block.cc @@ -129,12 +129,27 @@ gr_block::n_items_written(unsigned int which_output) { void gr_block::add_item_tag(unsigned int which_output, - uint64_t offset, + gr_uint64 offset, const pmt::pmt_t &key, const pmt::pmt_t &value) { d_detail->add_item_tag(which_output, offset, key, value); } +std::list<pmt::pmt_t> +gr_block::get_tags_in_range(unsigned int which_output, + gr_uint64 start, gr_uint64 end) +{ + return d_detail->get_tags_in_range(which_output, start, end); +} + +std::list<pmt::pmt_t> +gr_block::get_tags_in_range(unsigned int which_output, + gr_uint64 start, gr_uint64 end, + const pmt::pmt_t &key) +{ + return d_detail->get_tags_in_range(which_output, start, end, key); +} + std::ostream& operator << (std::ostream& os, const gr_block *m) { |