GNU Radio Manual and C++ API Reference  3.8.1.0
The Free & Open Software Radio Ecosystem
interleaver.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2002,2012 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 #ifndef INCLUDED_TRELLIS_INTERLEAVER_H
24 #define INCLUDED_TRELLIS_INTERLEAVER_H
25 
26 #include <gnuradio/trellis/api.h>
27 #include <string>
28 #include <vector>
29 
30 namespace gr {
31 namespace trellis {
32 
33 /*!
34  * \brief INTERLEAVER class
35  * \ingroup trellis_coding_blk
36  */
38 {
39 private:
40  unsigned int d_K;
41  std::vector<int> d_INTER;
42  std::vector<int> d_DEINTER;
43 
44 public:
45  interleaver();
46  interleaver(const interleaver& INTERLEAVER);
47  interleaver(unsigned int K, const std::vector<int>& INTER);
48  interleaver(const char* name);
49  interleaver(unsigned int K, int seed);
50  unsigned int K() const { return d_K; }
51  const std::vector<int>& INTER() const { return d_INTER; }
52  const std::vector<int>& DEINTER() const { return d_DEINTER; }
53  void write_interleaver_txt(std::string filename);
54 };
55 
56 } /* namespace trellis */
57 } /* namespace gr */
58 
59 #endif /* INCLUDED_TRELLIS_INTERLEAVER_H */
INTERLEAVER class.
Definition: interleaver.h:37
const std::vector< int > & DEINTER() const
Definition: interleaver.h:52
GNU Radio logging wrapper for log4cpp library (C++ port of log4j)
Definition: basic_block.h:43
unsigned int K() const
Definition: interleaver.h:50
#define TRELLIS_API
Definition: gr-trellis/include/gnuradio/trellis/api.h:30
const std::vector< int > & INTER() const
Definition: interleaver.h:51