comparison data/fft/FFTCache.h @ 335:02d2ad95ea52 spectrogram-cache-rejig

* Get storage advice for each cache in an FFT data server. Allows us to be more confident about the actual memory situation and cut over from memory to disc part way through an FFT calculation if necessary. StorageAdviser is now a bit too optimistic though (it's too keen to allocate large numbers of small blocks in memory).
author Chris Cannam
date Tue, 13 Nov 2007 13:54:10 +0000
parents e5879045d22b
children 115f60df1e4d
comparison
equal deleted inserted replaced
334:aa8dbac62024 335:02d2ad95ea52
47 // may modify argument arrays 47 // may modify argument arrays
48 virtual void setColumnAt(size_t x, float *reals, float *imags) = 0; 48 virtual void setColumnAt(size_t x, float *reals, float *imags) = 0;
49 49
50 virtual void suspend() { } 50 virtual void suspend() { }
51 51
52 enum Type { MemoryCache, FileCache };
53 virtual Type getType() = 0;
54
52 protected: 55 protected:
53 FFTCache() { } 56 FFTCache() { }
54 }; 57 };
55 58
56 59