comparison data/model/Model.h @ 1065:0fd3661bcfff tonioni

clone() is never used (therefore presumably never works either)
author Chris Cannam
date Tue, 31 Mar 2015 12:12:31 +0100
parents 57633d605547
children 882d448c8a6d
comparison
equal deleted inserted replaced
1064:c9fdd9921146 1065:0fd3661bcfff
91 * Return the type of the model. For display purposes only. 91 * Return the type of the model. For display purposes only.
92 */ 92 */
93 virtual QString getTypeName() const = 0; 93 virtual QString getTypeName() const = 0;
94 94
95 /** 95 /**
96 * Return a copy of this model.
97 *
98 * If the model is not editable, this may be effectively a shallow
99 * copy. If the model is editable, however, this operation must
100 * properly copy all of the model's editable data.
101 *
102 * In general this operation is not useful for non-editable dense
103 * models such as waveforms, because there may be no efficient
104 * copy operation implemented -- for such models it is better not
105 * to copy at all.
106 *
107 * Caller owns the returned value.
108 */
109 virtual Model *clone() const = 0;
110
111 /**
112 * Mark the model as abandoning. This means that the application 96 * Mark the model as abandoning. This means that the application
113 * no longer needs it, so it can stop doing any background 97 * no longer needs it, so it can stop doing any background
114 * calculations it may be involved in. Note that as far as the 98 * calculations it may be involved in. Note that as far as the
115 * model API is concerned, this does nothing more than tell the 99 * model API is concerned, this does nothing more than tell the
116 * model to return true from isAbandoning(). The actual response 100 * model to return true from isAbandoning(). The actual response