diff options
author | Tom Rondeau | 2010-11-07 16:05:08 -0500 |
---|---|---|
committer | Tom Rondeau | 2010-11-07 16:05:08 -0500 |
commit | 95eaad323daecbd2c4c0a7aaf5176f9a1b33eec0 (patch) | |
tree | 7f21b697155bfc2b61b44d66a4f9317fad0c899b /gnuradio-core/src/lib/runtime/gr_block.cc | |
parent | cafe83aa6bd47f8e05bd347cc4495d3662b5440f (diff) | |
download | gnuradio-95eaad323daecbd2c4c0a7aaf5176f9a1b33eec0.tar.gz gnuradio-95eaad323daecbd2c4c0a7aaf5176f9a1b33eec0.tar.bz2 gnuradio-95eaad323daecbd2c4c0a7aaf5176f9a1b33eec0.zip |
Cleaning up. Better use of PMTs; comment mods; returning vectors when getting tags.
Diffstat (limited to 'gnuradio-core/src/lib/runtime/gr_block.cc')
-rw-r--r-- | gnuradio-core/src/lib/runtime/gr_block.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gnuradio-core/src/lib/runtime/gr_block.cc b/gnuradio-core/src/lib/runtime/gr_block.cc index 51eb5b498..73a86e38b 100644 --- a/gnuradio-core/src/lib/runtime/gr_block.cc +++ b/gnuradio-core/src/lib/runtime/gr_block.cc @@ -117,7 +117,7 @@ gr_block::fixed_rate_noutput_to_ninput(int noutput) throw std::runtime_error("Unimplemented"); } -gr_uint64 +uint64_t gr_block::nitems_read(unsigned int which_input) { if(d_detail) { @@ -129,7 +129,7 @@ gr_block::nitems_read(unsigned int which_input) } } -gr_uint64 +uint64_t gr_block::nitems_written(unsigned int which_output) { if(d_detail) { @@ -143,7 +143,7 @@ gr_block::nitems_written(unsigned int which_output) void gr_block::add_item_tag(unsigned int which_output, - gr_uint64 offset, + uint64_t offset, const pmt::pmt_t &key, const pmt::pmt_t &value, const pmt::pmt_t &srcid) @@ -151,16 +151,16 @@ gr_block::add_item_tag(unsigned int which_output, d_detail->add_item_tag(which_output, offset, key, value, srcid); } -std::deque<pmt::pmt_t> +std::vector<pmt::pmt_t> gr_block::get_tags_in_range(unsigned int which_output, - gr_uint64 start, gr_uint64 end) + uint64_t start, uint64_t end) { return d_detail->get_tags_in_range(which_output, start, end); } -std::deque<pmt::pmt_t> +std::vector<pmt::pmt_t> gr_block::get_tags_in_range(unsigned int which_output, - gr_uint64 start, gr_uint64 end, + uint64_t start, uint64_t end, const pmt::pmt_t &key) { return d_detail->get_tags_in_range(which_output, start, end, key); |