Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

gr_fir_scc.h

Go to the documentation of this file.
00001 /* -*- c++ -*- */
00002 /*
00003  * Copyright 2002,2003 Free Software Foundation, Inc.
00004  * 
00005  * This file is part of GNU Radio
00006  * 
00007  * GNU Radio is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU General Public License as published by
00009  * the Free Software Foundation; either version 2, or (at your option)
00010  * any later version.
00011  * 
00012  * GNU Radio is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  * 
00017  * You should have received a copy of the GNU General Public License
00018  * along with GNU Radio; see the file COPYING.  If not, write to
00019  * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00020  * Boston, MA 02111-1307, USA.
00021  */
00022 
00023 /*
00024  * WARNING: This file is automatically generated by generate_gr_fir_XXX.py
00025  * Any changes made to this file will be overwritten.
00026  */
00027 
00028 
00029 #ifndef INCLUDED_GR_FIR_SCC_H
00030 #define INCLUDED_GR_FIR_SCC_H
00031 
00032 #include <vector>
00033 #include <gr_types.h>
00034 
00046 class gr_fir_scc {
00047 
00048 protected:
00049   std::vector<gr_complex>       d_taps;
00050 
00051 public:
00052 
00053   // CONSTRUCTORS
00054 
00062   gr_fir_scc () {}
00063   gr_fir_scc (const std::vector<gr_complex> &taps) : d_taps (taps) {}
00064 
00065   virtual ~gr_fir_scc ();
00066 
00067   // MANIPULATORS
00068 
00077   virtual gr_complex filter (const short input[]) = 0;
00078 
00085   virtual void filterN (gr_complex output[], const short input[],
00086                         unsigned long n) = 0;
00087 
00095   virtual void filterNdec (gr_complex output[], const short input[],
00096                            unsigned long n, unsigned decimate) = 0;
00097 
00101   virtual void set_taps (const std::vector<gr_complex> &taps)
00102   {
00103     d_taps = taps;
00104   }
00105 
00106   // ACCESSORS
00107 
00111   unsigned ntaps () const { return d_taps.size (); }
00112 
00116   virtual const std::vector<gr_complex> &get_taps () const { return d_taps; }
00117 };
00118 
00119 #endif /* INCLUDED_GR_FIR_SCC_H */

Generated on Tue Mar 29 20:56:17 2005 for GNU Radio 2.x by  doxygen 1.4.2