GNU Radio Manual and C++ API Reference  3.7.9.2
The Free & Open Software Radio Ecosystem
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
permutation.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2004,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_PERMUTATION_H
24 #define INCLUDED_TRELLIS_PERMUTATION_H
25 
26 #include <gnuradio/trellis/api.h>
27 #include <vector>
28 #include <gnuradio/sync_block.h>
29 
30 namespace gr {
31  namespace trellis {
32 
33  /*!
34  * \brief Permutation.
35  * \ingroup trellis_coding_blk
36  */
37  class TRELLIS_API permutation : virtual public sync_block
38  {
39  public:
40  // gr::trellis::permutation::sptr
41  typedef boost::shared_ptr<permutation> sptr;
42 
43  static sptr make(int K, const std::vector<int> &TABLE,
44  int SYMS_PER_BLOCK, size_t NBYTES);
45 
46  virtual int K() const = 0;
47  virtual std::vector<int> TABLE() const = 0;
48  virtual int SYMS_PER_BLOCK() const = 0;
49  virtual size_t BYTES_PER_SYMBOL() const = 0;
50 
51  virtual void set_K(int K) =0;
52  virtual void set_TABLE (const std::vector<int> &table) = 0;
53  virtual void set_SYMS_PER_BLOCK(int spb) =0;
54 
55  };
56 
57  } /* namespace trellis */
58 } /* namespace gr */
59 
60 #endif /* INCLUDED_TRELLIS_PERMUTATION_H */
boost::shared_ptr< permutation > sptr
Definition: permutation.h:41
Include this header to use the message passing features.
Definition: logger.h:131
synchronous 1:1 input to output with historyOverride work to provide the signal processing implementa...
Definition: sync_block.h:37
#define TRELLIS_API
Definition: gr-trellis/include/gnuradio/trellis/api.h:30
Permutation.
Definition: permutation.h:37