This block does not do any usefull actual data processing. It just exposes setting all standard block parameters using the contructor or public methods.
This block can be usefull when testing the runtime system. You can force this block to have a large history, decimation factor and/or large output_multiple. The runtime system should detect this and create large enough buffers all through the signal chain.
|
Public Member Functions |
| ~gr_test () |
int | general_work (int noutput_items, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items) |
| compute output items from input items
|
void | forecast (int noutput_items, gr_vector_int &ninput_items_required) |
| Estimate input requirements given output request.
|
void | set_check_topology (bool check_topology) |
| Force check topology to return true or false.
|
bool | check_topology (int ninputs, int noutputs) |
| Confirm that ninputs and noutputs is an acceptable combination.
|
int | fixed_rate_ninput_to_noutput (int ninput) |
| Given ninput samples, return number of output samples that will be produced. N.B. this is only defined if fixed_rate returns true. Generally speaking, you don't need to override this.
|
int | fixed_rate_noutput_to_ninput (int noutput) |
| Given noutput samples, return number of input samples required to produce noutput. N.B. this is only defined if fixed_rate returns true.
|
void | set_fixed_rate_public (bool fixed_rate) |
| Set if fixed rate should return true. N.B. This is normally a private method but we make it available here as public.
|
void | set_consume_type (gr_consume_type_t cons_type) |
| Set the consume pattern.
|
void | set_consume_limit (unsigned int limit) |
| Set the consume limit.
|
void | set_produce_type (gr_produce_type_t prod_type) |
| Set the produce pattern.
|
void | set_produce_limit (unsigned int limit) |
| Set the produce limit.
|
Protected Member Functions |
| gr_test (const std::string &name, int min_inputs, int max_inputs, unsigned int sizeof_input_item, int min_outputs, int max_outputs, unsigned int sizeof_output_item, unsigned int history, unsigned int output_multiple, double relative_rate, bool fixed_rate, gr_consume_type_t cons_type, gr_produce_type_t prod_type) |
Protected Attributes |
unsigned int | d_sizeof_input_item |
unsigned int | d_sizeof_output_item |
bool | d_check_topology |
char | d_temp |
gr_consume_type_t | d_consume_type |
int | d_min_consume |
int | d_max_consume |
gr_produce_type_t | d_produce_type |
int | d_min_produce |
int | d_max_produce |
Friends |
gr_test_sptr | gr_make_test (const std::string &name, int min_inputs, int max_inputs, unsigned int sizeof_input_item, int min_outputs, int max_outputs, unsigned int sizeof_output_item, unsigned int history, unsigned int output_multiple, double relative_rate, bool fixed_rate, gr_consume_type_t cons_type, gr_produce_type_t prod_type) |