GNU Radio's DAB Package
prune_impl.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2017 Moritz Luca Schmid, Communications Engineering Lab (CEL) / Karlsruhe Institute of Technology (KIT).
4 *
5 * This is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 3, or (at your option)
8 * any later version.
9 *
10 * This software is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this software; see the file COPYING. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street,
18 * Boston, MA 02110-1301, USA.
19 */
20
21#ifndef INCLUDED_DAB_PRUNE_IMPL_H
22#define INCLUDED_DAB_PRUNE_IMPL_H
23
24#include <dab/prune.h>
25
26namespace gr {
27 namespace dab {
28/*! \brief cuts bits of start and end of a stream sequence
29 *
30 * cuts bits of start and end of a stream sequence like a vector prune, but in stream mode
31 *
32 * @param d_length length of stream sequence
33 * @param d_prune_start number of items to cut from the beginning of sequence
34 * @param d_prune_end number of items to cut from the end of the sequence
35 */
36 class prune_impl : public prune {
37 private:
38 size_t d_itemsize;
39 unsigned int d_length;
40 unsigned int d_prune_start;
41 unsigned int d_prune_end;
42
43 public:
44 prune_impl(size_t itemsize, unsigned int length, unsigned int prune_start, unsigned int prune_end);
45
47
48 // Where all the action really happens
49 void forecast(int noutput_items, gr_vector_int &ninput_items_required);
50
51 int general_work(int noutput_items,
52 gr_vector_int &ninput_items,
53 gr_vector_const_void_star &input_items,
54 gr_vector_void_star &output_items);
55 };
56
57 } // namespace dab
58} // namespace gr
59
60#endif /* INCLUDED_DAB_PRUNE_IMPL_H */
61
cuts bits of start and end of a stream sequence
Definition prune_impl.h:36
void forecast(int noutput_items, gr_vector_int &ninput_items_required)
int general_work(int noutput_items, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
prune_impl(size_t itemsize, unsigned int length, unsigned int prune_start, unsigned int prune_end)
Definition prune.h:36
Definition complex_to_interleaved_float_vcf.h:28