Statistics
| Branch: | Tag: | Revision:

root / gr-trellis / src / lib / trellis_viterbi_combined_X.i.t @ 319caa5a

History | View | Annotate | Download (1.6 kB)

1 e9a82163 eb
/* -*- c++ -*- */
2 e9a82163 eb
/*
3 e9a82163 eb
 * Copyright 2004 Free Software Foundation, Inc.
4 e9a82163 eb
 *
5 e9a82163 eb
 * This file is part of GNU Radio
6 e9a82163 eb
 *
7 e9a82163 eb
 * GNU Radio is free software; you can redistribute it and/or modify
8 e9a82163 eb
 * it under the terms of the GNU General Public License as published by
9 e9a82163 eb
 * the Free Software Foundation; either version 2, or (at your option)
10 e9a82163 eb
 * any later version.
11 e9a82163 eb
 *
12 e9a82163 eb
 * GNU Radio is distributed in the hope that it will be useful,
13 e9a82163 eb
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 e9a82163 eb
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 e9a82163 eb
 * GNU General Public License for more details.
16 e9a82163 eb
 *
17 e9a82163 eb
 * You should have received a copy of the GNU General Public License
18 e9a82163 eb
 * along with GNU Radio; see the file COPYING.  If not, write to
19 e9a82163 eb
 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 e9a82163 eb
 * Boston, MA 02111-1307, USA.
21 e9a82163 eb
 */
22 e9a82163 eb
23 e9a82163 eb
// @WARNING@
24 e9a82163 eb
25 e9a82163 eb
GR_SWIG_BLOCK_MAGIC(trellis,@BASE_NAME@);
26 e9a82163 eb
27 e9a82163 eb
@SPTR_NAME@ trellis_make_@BASE_NAME@ (
28 e9a82163 eb
    const fsm &FSM,
29 d5c192f9 anastas
    int D,
30 e9a82163 eb
    const std::vector<float> &TABLE,
31 d5c192f9 anastas
    int K,
32 d5c192f9 anastas
    int S0,
33 d5c192f9 anastas
    int SK,
34 d5c192f9 anastas
    trellis_metric_type_t TYPE);
35 e9a82163 eb
36 e9a82163 eb
37 e9a82163 eb
class @NAME@ : public gr_block
38 e9a82163 eb
{
39 e9a82163 eb
private:
40 e9a82163 eb
  @NAME@ (
41 e9a82163 eb
    const fsm &FSM,
42 d5c192f9 anastas
    int D,
43 e9a82163 eb
    const std::vector<float> &TABLE,
44 d5c192f9 anastas
    int K,
45 d5c192f9 anastas
    int S0,
46 d5c192f9 anastas
    int SK,
47 d5c192f9 anastas
    trellis_metric_type_t TYPE);
48 e9a82163 eb
49 e9a82163 eb
public:
50 e9a82163 eb
    fsm FSM () const { return d_FSM; }
51 e9a82163 eb
    int D () const { return d_D; }
52 e9a82163 eb
    std::vector<float> TABLE () const { return d_TABLE; }
53 e9a82163 eb
    int K () const { return d_K; }
54 e9a82163 eb
    int S0 () const { return d_S0; }
55 e9a82163 eb
    int SK () const { return d_SK; }
56 e9a82163 eb
    trellis_metric_type_t TYPE () const { return d_TYPE; }
57 e9a82163 eb
    //std::vector<short> trace () const { return d_trace; }
58 e9a82163 eb
};