Imported Upstream version 3.0.4
[debian/gnuradio] / gr-trellis / src / lib / trellis_siso_combined_f.i
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2004 Free Software Foundation, Inc.
4  *
5  * This file is part of GNU Radio
6  *
7  * GNU Radio is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 3, or (at your option)
10  * any later version.
11  *
12  * GNU Radio is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with GNU Radio; see the file COPYING.  If not, write to
19  * the Free Software Foundation, Inc., 51 Franklin Street,
20  * Boston, MA 02110-1301, USA.
21  */
22
23 GR_SWIG_BLOCK_MAGIC(trellis,siso_combined_f);
24
25 trellis_siso_combined_f_sptr trellis_make_siso_combined_f (
26     const fsm &FSM,
27     int K,
28     int S0,
29     int SK,
30     bool POSTI,
31     bool POSTO,
32     trellis_siso_type_t SISO_TYPE,
33     int D,
34     const std::vector<float> &TABLE,
35     trellis_metric_type_t TYPE);
36
37
38 class trellis_siso_combined_f : public gr_block
39 {
40 private:
41   trellis_siso_combined_f (
42     const fsm &FSM,
43     int K,
44     int S0,
45     int SK,
46     bool POSTI,
47     bool POSTO,
48     trellis_siso_type_t SISO_TYPE,
49     int D,
50     const std::vector<float> &TABLE,
51     trellis_metric_type_t TYPE);
52
53 public:
54     fsm FSM () const { return d_FSM; }
55     int K () const { return d_K; }
56     int S0 () const { return d_S0; }
57     int SK () const { return d_SK; }
58     bool POSTI () const { return d_POSTI; }
59     bool POSTO () const { return d_POSTO; }
60     trellis_siso_type_t SISO_TYPE () const { return d_SISO_TYPE; }
61     int D () const { return d_D; }
62     std::vector<float> TABLE () const { return d_TABLE; }
63     trellis_metric_type_t TYPE () const { return d_TYPE; }
64 };