GNU Radio 3.5.1 C++ API
|
All-to-all stream annotator testing block. FOR TESTING PURPOSES ONLY. More...
#include <gr_annotator_alltoall.h>
Public Member Functions | |
~gr_annotator_alltoall () | |
int | work (int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items) |
just like gr_block::general_work, only this arranges to call consume_each for you | |
std::vector< gr_tag_t > | data () const |
Protected Member Functions | |
gr_annotator_alltoall (int when, size_t sizeof_stream_item) | |
Friends | |
GR_CORE_API gr_annotator_alltoall_sptr | gr_make_annotator_alltoall (int when, size_t sizeof_stream_item) |
All-to-all stream annotator testing block. FOR TESTING PURPOSES ONLY.
This block creates tags to be sent downstream every 10,000 items it sees. The tags contain the name and ID of the instantiated block, use "seq" as a key, and have a counter that increments by 1 for every tag produced that is used as the tag's value. The tags are propagated using the all-to-all policy.
It also stores a copy of all tags it sees flow past it. These tags can be recalled externally with the data() member.
This block is only meant for testing and showing how to use the tags.
gr_annotator_alltoall::~gr_annotator_alltoall | ( | ) |
gr_annotator_alltoall::gr_annotator_alltoall | ( | int | when, |
size_t | sizeof_stream_item | ||
) | [protected] |
std::vector<gr_tag_t> gr_annotator_alltoall::data | ( | ) | const [inline] |
int gr_annotator_alltoall::work | ( | int | noutput_items, |
gr_vector_const_void_star & | input_items, | ||
gr_vector_void_star & | output_items | ||
) | [virtual] |
just like gr_block::general_work, only this arranges to call consume_each for you
The user must override work to define the signal processing code
Implements gr_sync_block.
GR_CORE_API gr_annotator_alltoall_sptr gr_make_annotator_alltoall | ( | int | when, |
size_t | sizeof_stream_item | ||
) | [friend] |