GNU Radio C++ API
trellis_viterbi_b.h
Go to the documentation of this file.
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
// WARNING: this file is machine generated. Edits will be over written
24
25
#ifndef INCLUDED_TRELLIS_VITERBI_B_H
26
#define INCLUDED_TRELLIS_VITERBI_B_H
27
28
#include <
trellis_api.h
>
29
#include "
fsm.h
"
30
#include <
gr_block.h
>
31
#include "
core_algorithms.h
"
32
33
class
trellis_viterbi_b
;
34
typedef
boost::shared_ptr<trellis_viterbi_b>
trellis_viterbi_b_sptr
;
35
36
TRELLIS_API
trellis_viterbi_b_sptr
trellis_make_viterbi_b
(
37
const
fsm
&
FSM
,
38
int
K
,
39
int
S0
,
40
int
SK
);
41
42
43
44
/*!
45
* \ingroup coding_blk
46
*/
47
class
TRELLIS_API
trellis_viterbi_b
:
public
gr_block
48
{
49
fsm
d_FSM;
50
int
d_K;
51
int
d_S0;
52
int
d_SK;
53
//std::vector<int> d_trace;
54
55
friend
TRELLIS_API
trellis_viterbi_b_sptr
trellis_make_viterbi_b
(
56
const
fsm
&FSM,
57
int
K,
58
int
S0,
59
int
SK);
60
61
62
trellis_viterbi_b
(
63
const
fsm
&FSM,
64
int
K,
65
int
S0,
66
int
SK);
67
68
69
public
:
70
fsm
FSM
()
const
{
return
d_FSM; }
71
int
K
()
const
{
return
d_K; }
72
int
S0
()
const
{
return
d_S0; }
73
int
SK
()
const
{
return
d_SK; }
74
//std::vector<int> trace () const { return d_trace; }
75
void
forecast
(
int
noutput_items,
76
gr_vector_int
&ninput_items_required);
77
int
general_work
(
int
noutput_items,
78
gr_vector_int
&ninput_items,
79
gr_vector_const_void_star
&input_items,
80
gr_vector_void_star
&output_items);
81
};
82
83
84
85
86
87
88
89
90
91
#endif
gr-trellis
src
lib
trellis_viterbi_b.h
Generated on Wed Jul 11 2012 23:41:34 for GNU Radio C++ API by
1.8.1.1