comparison data/model/Model.h @ 1754:8529763e2258 by-id

Tidy
author Chris Cannam
date Fri, 05 Jul 2019 16:55:27 +0100
parents 6d09d68165a4
children ee7fd2c01d87
comparison
equal deleted inserted replaced
1753:d954dfccd922 1754:8529763e2258
131 * Return true if this is a sparse model. 131 * Return true if this is a sparse model.
132 */ 132 */
133 virtual bool isSparse() const { return false; } 133 virtual bool isSparse() const { return false; }
134 134
135 /** 135 /**
136 * Mark the model as abandoning. This means that the application
137 * no longer needs it, so it can stop doing any background
138 * calculations it may be involved in. Note that as far as the
139 * model API is concerned, this does nothing more than tell the
140 * model to return true from isAbandoning(). The actual response
141 * to this will depend on the model's context -- it's possible
142 * nothing at all will change.
143 */
144 //!!! aim to lose this (???)
145 /*!!!
146 virtual void abandon() {
147 m_abandoning = true;
148 }
149 */
150
151 /**
152 * Query whether the model has been marked as abandoning.
153 */
154 //!!! aim to lose this
155 /*!!!
156 virtual bool isAbandoning() const {
157 return m_abandoning;
158 }
159 */
160 /**
161 * Return true if the model has finished loading or calculating 136 * Return true if the model has finished loading or calculating
162 * all its data, for a model that is capable of calculating in a 137 * all its data, for a model that is capable of calculating in a
163 * background thread. 138 * background thread.
164 * 139 *
165 * If "completion" is non-NULL, return through it an estimated 140 * If "completion" is non-NULL, return through it an estimated
327 */ 302 */
328 void alignmentCompletionChanged(ModelId myId); 303 void alignmentCompletionChanged(ModelId myId);
329 304
330 protected: 305 protected:
331 Model() : 306 Model() :
332 //!!! m_abandoning(false),
333 m_extendTo(0) { } 307 m_extendTo(0) { }
334 308
335 // Not provided. 309 // Not provided.
336 Model(const Model &) =delete; 310 Model(const Model &) =delete;
337 Model &operator=(const Model &) =delete; 311 Model &operator=(const Model &) =delete;
338 312
339 ModelId m_sourceModel; 313 ModelId m_sourceModel;
340 ModelId m_alignmentModel; 314 ModelId m_alignmentModel;
341 QString m_typeUri; 315 QString m_typeUri;
342 //!!! bool m_abandoning;
343 sv_frame_t m_extendTo; 316 sv_frame_t m_extendTo;
344 }; 317 };
345 318
346 typedef Model::Id ModelId; 319 typedef Model::Id ModelId;
347 typedef TypedById<Model, Model::Id> ModelById; 320 typedef TypedById<Model, Model::Id> ModelById;