11#ifndef INCLUDED_GR_RUNTIME_SYNC_BLOCK_H
12#define INCLUDED_GR_RUNTIME_SYNC_BLOCK_H
40 virtual int work(
int noutput_items,
The abstract base class for all 'terminal' processing blocks.
Definition: gnuradio-runtime/include/gnuradio/block.h:63
std::shared_ptr< io_signature > sptr
Definition: io_signature.h:47
synchronous 1:1 input to output with history
Definition: sync_block.h:26
sync_block(const std::string &name, gr::io_signature::sptr input_signature, gr::io_signature::sptr output_signature)
int fixed_rate_noutput_to_ninput(int noutput) override
Given noutput samples, return number of input samples required to produce noutput....
sync_block(void)
Definition: sync_block.h:28
virtual int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)=0
just like gr::block::general_work, only this arranges to call consume_each for you
int general_work(int noutput_items, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items) override
compute output items from input items
int fixed_rate_ninput_to_noutput(int ninput) override
Given ninput samples, return number of output samples that will be produced. N.B. this is only define...
void forecast(int noutput_items, gr_vector_int &ninput_items_required) override
Estimate input requirements given output request.
#define GR_RUNTIME_API
Definition: gnuradio-runtime/include/gnuradio/api.h:18
GNU Radio logging wrapper.
Definition: basic_block.h:29
std::vector< const void * > gr_vector_const_void_star
Definition: types.h:28
std::vector< void * > gr_vector_void_star
Definition: types.h:27
std::vector< int > gr_vector_int
Definition: types.h:23