diff base/FFTCache.h @ 108:0c19e50bad7c

* add a column bitmap to the matrix file object to record which columns are available (optimisation for refreshing during fft creation)
author Chris Cannam
date Mon, 08 May 2006 13:51:16 +0000
parents c4e163f911dd
children 534373d65f39
line wrap: on
line diff
--- a/base/FFTCache.h	Fri May 05 16:38:18 2006 +0000
+++ b/base/FFTCache.h	Mon May 08 13:51:16 2006 +0000
@@ -36,11 +36,7 @@
     virtual float getNormalizedMagnitudeAt(size_t x, size_t y) const = 0;
     virtual float getPhaseAt(size_t x, size_t y) const = 0;
 
-    virtual void setNormalizationFactor(size_t x, float factor) = 0;
-    virtual void setMagnitudeAt(size_t x, size_t y, float mag) = 0;
-    virtual void setNormalizedMagnitudeAt(size_t x, size_t y, float norm) = 0;
-    virtual void setPhaseAt(size_t x, size_t y, float phase) = 0;
-
+    virtual bool haveColumnAt(size_t x) const = 0;
     virtual void setColumnAt(size_t x, float *mags, float *phases, float factor) = 0;
 
     bool isLocalPeak(size_t x, size_t y) const {
@@ -124,6 +120,10 @@
         }
     }
     
+    virtual bool haveColumnAt(size_t x) const {
+        return true;
+    }
+
     virtual void setColumnAt(size_t x, float *mags, float *phases, float factor) {
         setNormalizationFactor(x, factor);
         for (size_t y = 0; y < m_height; ++y) {