31 typedef std::shared_ptr<vector_sink<T>>
sptr;
42 static sptr make(
const unsigned int vlen = 1,
const int reserve_items = 1024);
46 virtual std::vector<T>
data()
const = 0;
47 virtual std::vector<tag_t>
tags()
const = 0;
T sink that writes to a vector.
Definition: vector_sink.h:28
std::shared_ptr< vector_sink< T > > sptr
Definition: vector_sink.h:31
static sptr make(const unsigned int vlen=1, const int reserve_items=1024)
Make a new instance of the vector source, and return a shared pointer to it.
virtual void reset()=0
Clear the data and tags containers.
virtual std::vector< tag_t > tags() const =0
virtual std::vector< T > data() const =0
synchronous 1:1 input to output with history
Definition: sync_block.h:26
#define BLOCKS_API
Definition: gr-blocks/include/gnuradio/blocks/api.h:18
vector_sink< float > vector_sink_f
Definition: vector_sink.h:53
vector_sink< gr_complex > vector_sink_c
Definition: vector_sink.h:54
vector_sink< std::int16_t > vector_sink_s
Definition: vector_sink.h:51
vector_sink< std::uint8_t > vector_sink_b
Definition: vector_sink.h:50
vector_sink< std::int32_t > vector_sink_i
Definition: vector_sink.h:52
GNU Radio logging wrapper.
Definition: basic_block.h:29