GNU Radio Manual and C++ API Reference  3.7.13.4
The Free & Open Software Radio Ecosystem
filterbank_vcvcf.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2009,2010,2012,2014 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 
24 #ifndef INCLUDED_FILTER_FILTERBANK_CHANNELIZER_VCVCF_H
25 #define INCLUDED_FILTER_FILTERBANK_CHANNELIZER_VCVCF_H
26 
27 #include <gnuradio/filter/api.h>
28 #include <gnuradio/block.h>
29 
30 namespace gr {
31  namespace filter {
32 
33  /*!
34  * \brief Filterbank with vector of gr_complex input,
35  * vector of gr_complex output and float taps
36  * \ingroup filter_blk
37  *
38  * \details
39  * This block takes in complex vectors and outputs complex vectors of the same
40  * size. Vectors of length N, rather than N normal streams are used to reduce
41  * overhead.
42  */
43  class FILTER_API filterbank_vcvcf : virtual public block
44  {
45  public:
46  typedef boost::shared_ptr<filterbank_vcvcf> sptr;
47 
48  /*!
49  * Build the filterbank.
50  * \param taps (vector of vector of floats/list of list of floats)
51  * Used to populate the filters.
52  */
53  static sptr make(const std::vector< std::vector<float> > &taps);
54 
55  /*!
56  * Resets the filterbank's filter taps with the new prototype filter
57  * \param taps (vector/list of floats) The prototype filter to populate the filterbank.
58  */
59  virtual void set_taps(const std::vector< std::vector<float> > &taps) = 0;
60 
61  /*!
62  * Print all of the filterbank taps to screen.
63  */
64  virtual void print_taps() = 0;
65 
66  /*!
67  * Return a vector<vector<>> of the filterbank taps
68  */
69  virtual std::vector<std::vector<float> > taps() const = 0;
70 
71  };
72 
73  } /* namespace filter */
74 } /* namespace gr */
75 
76 #endif /* INCLUDED_FILTER_PFB_CHANNELIZER_VCVCF_H */
boost::shared_ptr< filterbank_vcvcf > sptr
Definition: filterbank_vcvcf.h:46
Include this header to use the message passing features.
Definition: logger.h:695
static const float taps[NSTEPS+1][NTAPS]
Definition: interpolator_taps.h:9
Filterbank with vector of gr_complex input, vector of gr_complex output and float taps...
Definition: filterbank_vcvcf.h:43
#define FILTER_API
Definition: gr-filter/include/gnuradio/filter/api.h:30
The abstract base class for all &#39;terminal&#39; processing blocks.A signal processing flow is constructed ...
Definition: block.h:65