GNU Radio Manual and C++ API Reference 3.10.5.1
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 * SPDX-License-Identifier: GPL-3.0-or-later
8 *
9 */
10
11#ifndef INCLUDED_TRELLIS_INTERLEAVER_H
12#define INCLUDED_TRELLIS_INTERLEAVER_H
13
15#include <string>
16#include <vector>
17
18namespace gr {
19namespace trellis {
20
21/*!
22 * \brief INTERLEAVER class
23 * \ingroup trellis_coding_blk
24 */
26{
27private:
28 unsigned int d_K;
29 std::vector<int> d_INTER;
30 std::vector<int> d_DEINTER;
31
32public:
34 interleaver(const interleaver& INTERLEAVER);
35 interleaver(unsigned int K, const std::vector<int>& INTER);
36 interleaver(const char* name);
37 interleaver(unsigned int K, int seed);
38 unsigned int K() const { return d_K; }
39 const std::vector<int>& INTER() const { return d_INTER; }
40 const std::vector<int>& DEINTER() const { return d_DEINTER; }
41 void write_interleaver_txt(std::string filename);
42};
43
44} /* namespace trellis */
45} /* namespace gr */
46
47#endif /* INCLUDED_TRELLIS_INTERLEAVER_H */
INTERLEAVER class.
Definition: interleaver.h:26
void write_interleaver_txt(std::string filename)
unsigned int K() const
Definition: interleaver.h:38
const std::vector< int > & INTER() const
Definition: interleaver.h:39
interleaver(const interleaver &INTERLEAVER)
const std::vector< int > & DEINTER() const
Definition: interleaver.h:40
interleaver(const char *name)
interleaver(unsigned int K, const std::vector< int > &INTER)
interleaver(unsigned int K, int seed)
#define TRELLIS_API
Definition: gr-trellis/include/gnuradio/trellis/api.h:18
GNU Radio logging wrapper.
Definition: basic_block.h:29