Mercurial > hg > svcore
comparison data/model/Dense3DModelPeakCache.h @ 1752:6d09d68165a4 by-id
Further review of ById: make IDs only available when adding a model to the ById store, not by querying the item directly. This means any id encountered in the wild must have been added to the store at some point (even if later released), which simplifies reasoning about lifecycles
author | Chris Cannam |
---|---|
date | Fri, 05 Jul 2019 15:28:07 +0100 |
parents | 565575463752 |
children | 59d9dcfd67c2 |
comparison
equal
deleted
inserted
replaced
1751:77543124651b | 1752:6d09d68165a4 |
---|---|
114 sv_frame_t, sv_frame_t) const override { | 114 sv_frame_t, sv_frame_t) const override { |
115 return ""; | 115 return ""; |
116 } | 116 } |
117 | 117 |
118 protected slots: | 118 protected slots: |
119 void sourceModelChanged(); | 119 void sourceModelChanged(ModelId); |
120 | 120 |
121 private: | 121 private: |
122 ModelId m_source; | 122 ModelId m_source; |
123 mutable std::unique_ptr<EditableDenseThreeDimensionalModel> m_cache; | 123 mutable std::unique_ptr<EditableDenseThreeDimensionalModel> m_cache; |
124 mutable std::vector<bool> m_coverage; // must be bool, for space efficiency | 124 mutable std::vector<bool> m_coverage; // must be bool, for space efficiency |