32 typedef std::shared_ptr<metrics<T>>
sptr;
37 virtual int O()
const = 0;
38 virtual int D()
const = 0;
40 virtual std::vector<T>
TABLE()
const = 0;
45 virtual void set_TABLE(
const std::vector<T>& table) = 0;
#define D(...)
Definition: basic_block_pydoc_template.h:10
The abstract base class for all 'terminal' processing blocks.
Definition: gnuradio-runtime/include/gnuradio/block.h:63
Evaluate metrics for use by the Viterbi algorithm.
Definition: metrics.h:29
virtual void set_TYPE(digital::trellis_metric_type_t type)=0
virtual std::vector< T > TABLE() const =0
virtual digital::trellis_metric_type_t TYPE() const =0
static sptr make(int O, int D, const std::vector< T > &TABLE, digital::trellis_metric_type_t TYPE)
virtual void set_TABLE(const std::vector< T > &table)=0
std::shared_ptr< metrics< T > > sptr
Definition: metrics.h:32
virtual void set_D(int D)=0
virtual void set_O(int O)=0
#define TRELLIS_API
Definition: gr-trellis/include/gnuradio/trellis/api.h:18
trellis_metric_type_t
Definition: metric_type.h:17
metrics< gr_complex > metrics_c
Definition: metrics.h:52
metrics< std::int16_t > metrics_s
Definition: metrics.h:49
metrics< float > metrics_f
Definition: metrics.h:51
metrics< std::int32_t > metrics_i
Definition: metrics.h:50
GNU Radio logging wrapper.
Definition: basic_block.h:29