Mercurial > hg > svcore
comparison data/model/Dense3DModelPeakCache.h @ 1153:ece369c5bb68 3.0-integration
Don't need ResizeableBitset, vector<bool> is already a compact format
author | Chris Cannam |
---|---|
date | Fri, 22 Jan 2016 12:46:42 +0000 |
parents | 0fd3661bcfff |
children | 546d4e417346 |
comparison
equal
deleted
inserted
replaced
1152:d73b4bac2dc4 | 1153:ece369c5bb68 |
---|---|
16 #ifndef _DENSE_3D_MODEL_PEAK_CACHE_H_ | 16 #ifndef _DENSE_3D_MODEL_PEAK_CACHE_H_ |
17 #define _DENSE_3D_MODEL_PEAK_CACHE_H_ | 17 #define _DENSE_3D_MODEL_PEAK_CACHE_H_ |
18 | 18 |
19 #include "DenseThreeDimensionalModel.h" | 19 #include "DenseThreeDimensionalModel.h" |
20 #include "EditableDenseThreeDimensionalModel.h" | 20 #include "EditableDenseThreeDimensionalModel.h" |
21 #include "base/ResizeableBitset.h" | |
22 | 21 |
23 class Dense3DModelPeakCache : public DenseThreeDimensionalModel | 22 class Dense3DModelPeakCache : public DenseThreeDimensionalModel |
24 { | 23 { |
25 Q_OBJECT | 24 Q_OBJECT |
26 | 25 |
90 void sourceModelAboutToBeDeleted(); | 89 void sourceModelAboutToBeDeleted(); |
91 | 90 |
92 private: | 91 private: |
93 DenseThreeDimensionalModel *m_source; | 92 DenseThreeDimensionalModel *m_source; |
94 mutable EditableDenseThreeDimensionalModel *m_cache; | 93 mutable EditableDenseThreeDimensionalModel *m_cache; |
95 mutable ResizeableBitset m_coverage; | 94 mutable std::vector<bool> m_coverage; // must be bool, for space efficiency |
95 // (vector of bool uses 1-bit elements) | |
96 int m_resolution; | 96 int m_resolution; |
97 | 97 |
98 bool haveColumn(int column) const; | 98 bool haveColumn(int column) const; |
99 void fillColumn(int column) const; | 99 void fillColumn(int column) const; |
100 }; | 100 }; |