comparison data/model/AlignmentModel.cpp @ 843:e802e550a1f2

Drop std:: from cout, cerr, endl -- pull these in through Debug.h
author Chris Cannam
date Tue, 26 Nov 2013 13:35:08 +0000
parents 1424aa29ae95
children 59e7fe1b1003
comparison
equal deleted inserted replaced
842:23d3a6eca5c3 843:e802e550a1f2
165 165
166 void 166 void
167 AlignmentModel::pathChanged() 167 AlignmentModel::pathChanged()
168 { 168 {
169 if (m_pathComplete) { 169 if (m_pathComplete) {
170 std::cerr << "AlignmentModel: deleting raw path model" << std::endl; 170 cerr << "AlignmentModel: deleting raw path model" << endl;
171 if (m_rawPath) m_rawPath->aboutToDelete(); 171 if (m_rawPath) m_rawPath->aboutToDelete();
172 delete m_rawPath; 172 delete m_rawPath;
173 m_rawPath = 0; 173 m_rawPath = 0;
174 } 174 }
175 } 175 }
217 void 217 void
218 AlignmentModel::constructPath() const 218 AlignmentModel::constructPath() const
219 { 219 {
220 if (!m_path) { 220 if (!m_path) {
221 if (!m_rawPath) { 221 if (!m_rawPath) {
222 std::cerr << "ERROR: AlignmentModel::constructPath: " 222 cerr << "ERROR: AlignmentModel::constructPath: "
223 << "No raw path available" << std::endl; 223 << "No raw path available" << endl;
224 return; 224 return;
225 } 225 }
226 m_path = new PathModel 226 m_path = new PathModel
227 (m_rawPath->getSampleRate(), m_rawPath->getResolution(), false); 227 (m_rawPath->getSampleRate(), m_rawPath->getResolution(), false);
228 } else { 228 } else {
249 void 249 void
250 AlignmentModel::constructReversePath() const 250 AlignmentModel::constructReversePath() const
251 { 251 {
252 if (!m_reversePath) { 252 if (!m_reversePath) {
253 if (!m_path) { 253 if (!m_path) {
254 std::cerr << "ERROR: AlignmentModel::constructReversePath: " 254 cerr << "ERROR: AlignmentModel::constructReversePath: "
255 << "No forward path available" << std::endl; 255 << "No forward path available" << endl;
256 return; 256 return;
257 } 257 }
258 m_reversePath = new PathModel 258 m_reversePath = new PathModel
259 (m_path->getSampleRate(), m_path->getResolution(), false); 259 (m_path->getSampleRate(), m_path->getResolution(), false);
260 } else { 260 } else {
302 302
303 PathModel::Point point(frame); 303 PathModel::Point point(frame);
304 PathModel::PointList::const_iterator i = points.lower_bound(point); 304 PathModel::PointList::const_iterator i = points.lower_bound(point);
305 if (i == points.end()) { 305 if (i == points.end()) {
306 #ifdef DEBUG_ALIGNMENT_MODEL 306 #ifdef DEBUG_ALIGNMENT_MODEL
307 std::cerr << "Note: i == points.end()" << std::endl; 307 cerr << "Note: i == points.end()" << endl;
308 #endif 308 #endif
309 --i; 309 --i;
310 } 310 }
311 while (i != points.begin() && i->frame > long(frame)) --i; 311 while (i != points.begin() && i->frame > long(frame)) --i;
312 312
316 long followingFrame = foundFrame; 316 long followingFrame = foundFrame;
317 long followingMapFrame = foundMapFrame; 317 long followingMapFrame = foundMapFrame;
318 318
319 if (++i != points.end()) { 319 if (++i != points.end()) {
320 #ifdef DEBUG_ALIGNMENT_MODEL 320 #ifdef DEBUG_ALIGNMENT_MODEL
321 std::cerr << "another point available" << std::endl; 321 cerr << "another point available" << endl;
322 #endif 322 #endif
323 followingFrame = i->frame; 323 followingFrame = i->frame;
324 followingMapFrame = i->mapframe; 324 followingMapFrame = i->mapframe;
325 } else { 325 } else {
326 #ifdef DEBUG_ALIGNMENT_MODEL 326 #ifdef DEBUG_ALIGNMENT_MODEL
327 std::cerr << "no other point available" << std::endl; 327 cerr << "no other point available" << endl;
328 #endif 328 #endif
329 } 329 }
330 330
331 if (foundMapFrame < 0) return 0; 331 if (foundMapFrame < 0) return 0;
332 332