diff options
author | Johnathan Corgan | 2012-04-29 10:28:01 -0700 |
---|---|---|
committer | Johnathan Corgan | 2012-04-29 10:28:01 -0700 |
commit | 8613b52b42585f1f0f1ca73b778cd47ec2548292 (patch) | |
tree | f41852b81bcc61612c1b732aa3e7d9d931ff519f | |
parent | d79054551fee36eda99a142aff2856f20b4787fa (diff) | |
download | gnuradio-8613b52b42585f1f0f1ca73b778cd47ec2548292.tar.gz gnuradio-8613b52b42585f1f0f1ca73b778cd47ec2548292.tar.bz2 gnuradio-8613b52b42585f1f0f1ca73b778cd47ec2548292.zip |
fft: make interface functions pure virtual
-rw-r--r-- | gr-fft/include/fft/fft_vcc.h | 9 | ||||
-rw-r--r-- | gr-fft/include/fft/fft_vfc.h | 9 | ||||
-rw-r--r-- | gr-fft/include/fft/goertzel_fc.h | 16 |
3 files changed, 11 insertions, 23 deletions
diff --git a/gr-fft/include/fft/fft_vcc.h b/gr-fft/include/fft/fft_vcc.h index 932fa6f50..561ae858d 100644 --- a/gr-fft/include/fft/fft_vcc.h +++ b/gr-fft/include/fft/fft_vcc.h @@ -44,14 +44,11 @@ namespace gr { const std::vector<float> &window, bool shift=false, int nthreads=1); - virtual void set_nthreads(int n) - { throw std::runtime_error("fft_vcc::set_nthreads not implemented.\n"); } + virtual void set_nthreads(int n) = 0; - virtual int nthreads() const - { throw std::runtime_error("fft_vcc::nthreads not implemented.\n"); } + virtual int nthreads() const = 0; - virtual bool set_window(const std::vector<float> &window) - { throw std::runtime_error("fft_vcc::set_window not implemented.\n"); } + virtual bool set_window(const std::vector<float> &window) = 0; }; } /* namespace fft */ diff --git a/gr-fft/include/fft/fft_vfc.h b/gr-fft/include/fft/fft_vfc.h index 01a5decdf..fc48ceefe 100644 --- a/gr-fft/include/fft/fft_vfc.h +++ b/gr-fft/include/fft/fft_vfc.h @@ -44,14 +44,11 @@ namespace gr { const std::vector<float> &window, int nthreads=1); - virtual void set_nthreads(int n) - { throw std::runtime_error("fft_vfc::set_nthreads not implemented.\n"); } + virtual void set_nthreads(int n) = 0; - virtual int nthreads() const - { throw std::runtime_error("fft_vfc::nthreads not implemented.\n"); } + virtual int nthreads() const = 0; - virtual bool set_window(const std::vector<float> &window) - { throw std::runtime_error("fft_vfc::set_window not implemented.\n"); } + virtual bool set_window(const std::vector<float> &window) = 0; }; } /* namespace fft */ diff --git a/gr-fft/include/fft/goertzel_fc.h b/gr-fft/include/fft/goertzel_fc.h index 0bc5384b9..4d3fa8dcf 100644 --- a/gr-fft/include/fft/goertzel_fc.h +++ b/gr-fft/include/fft/goertzel_fc.h @@ -42,22 +42,16 @@ namespace gr { */ static FFT_API sptr make(int rate, int len, float freq); - virtual void set_freq (float freq) - { throw std::runtime_error("goertzel_fc::set_freq not implemented.\n"); } - - virtual void set_rate (int rate) - { throw std::runtime_error("goertzel_fc::set_rate not implemented.\n"); } + virtual void set_freq (float freq) = 0; - float freq() - { throw std::runtime_error("goertzel_fc::freq not implemented.\n"); } - - int rate() - { throw std::runtime_error("goertzel_fc::rate not implemented.\n"); } + virtual void set_rate (int rate) = 0; + + virtual float freq() = 0; + virtual int rate() = 0; }; } /* namespace fft */ } /* namespace gr */ #endif /* INCLUDED_FFT_GOERTZEL_FC_H */ - |