GNU Radio Manual and C++ API Reference
3.9.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
* SPDX-License-Identifier: GPL-3.0-or-later
8
*
9
*/
10
11
#ifndef INCLUDED_TRELLIS_INTERLEAVER_H
12
#define INCLUDED_TRELLIS_INTERLEAVER_H
13
14
#include <
gnuradio/trellis/api.h
>
15
#include <string>
16
#include <vector>
17
18
namespace
gr
{
19
namespace
trellis {
20
21
/*!
22
* \brief INTERLEAVER class
23
* \ingroup trellis_coding_blk
24
*/
25
class
TRELLIS_API
interleaver
26
{
27
private
:
28
unsigned
int
d_K;
29
std::vector<int> d_INTER;
30
std::vector<int> d_DEINTER;
31
32
public
:
33
interleaver
();
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 */
gr::trellis::interleaver
INTERLEAVER class.
Definition:
interleaver.h:25
gr::trellis::interleaver::K
unsigned int K() const
Definition:
interleaver.h:38
gr::trellis::interleaver::INTER
const std::vector< int > & INTER() const
Definition:
interleaver.h:39
api.h
TRELLIS_API
#define TRELLIS_API
Definition:
gr-trellis/include/gnuradio/trellis/api.h:18
gr
GNU Radio logging wrapper for log4cpp library (C++ port of log4j)
Definition:
basic_block.h:29
gr::trellis::interleaver::DEINTER
const std::vector< int > & DEINTER() const
Definition:
interleaver.h:40
gr-trellis
include
gnuradio
trellis
interleaver.h
Generated by
1.8.17