GNU Radio Manual and C++ API Reference  3.10.9.1
The Free & Open Software Radio Ecosystem
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  * SPDX-License-Identifier: GPL-3.0-or-later
8  *
9  */
10 
11 #ifndef INCLUDED_TRELLIS_PERMUTATION_H
12 #define INCLUDED_TRELLIS_PERMUTATION_H
13 
14 #include <gnuradio/sync_block.h>
15 #include <gnuradio/trellis/api.h>
16 #include <vector>
17 
18 namespace gr {
19 namespace trellis {
20 
21 /*!
22  * \brief Permutation.
23  * \ingroup trellis_coding_blk
24  */
25 class TRELLIS_API permutation : virtual public sync_block
26 {
27 public:
28  // gr::trellis::permutation::sptr
29  typedef std::shared_ptr<permutation> sptr;
30 
31  static sptr
32  make(int K, const std::vector<int>& TABLE, int SYMS_PER_BLOCK, size_t NBYTES);
33 
34  virtual int K() const = 0;
35  virtual std::vector<int> TABLE() const = 0;
36  virtual int SYMS_PER_BLOCK() const = 0;
37  virtual size_t BYTES_PER_SYMBOL() const = 0;
38 
39  virtual void set_K(int K) = 0;
40  virtual void set_TABLE(const std::vector<int>& table) = 0;
41  virtual void set_SYMS_PER_BLOCK(int spb) = 0;
42 };
43 
44 } /* namespace trellis */
45 } /* namespace gr */
46 
47 #endif /* INCLUDED_TRELLIS_PERMUTATION_H */
synchronous 1:1 input to output with history
Definition: sync_block.h:26
Permutation.
Definition: permutation.h:26
virtual void set_SYMS_PER_BLOCK(int spb)=0
virtual int K() const =0
std::shared_ptr< permutation > sptr
Definition: permutation.h:29
virtual void set_K(int K)=0
virtual void set_TABLE(const std::vector< int > &table)=0
virtual std::vector< int > TABLE() const =0
virtual size_t BYTES_PER_SYMBOL() const =0
virtual int SYMS_PER_BLOCK() const =0
static sptr make(int K, const std::vector< int > &TABLE, int SYMS_PER_BLOCK, size_t NBYTES)
#define TRELLIS_API
Definition: gr-trellis/include/gnuradio/trellis/api.h:18
GNU Radio logging wrapper.
Definition: basic_block.h:29