comparison transform/Transform.cpp @ 583:ecbd99d5d2c4

* fix to rounding problems in plugin parameter box
author Chris Cannam
date Mon, 30 Mar 2009 13:47:00 +0000
parents 1b8c748fd7ea
children b4a8d8221eaf
comparison
equal deleted inserted replaced
582:442e2ff876aa 583:ecbd99d5d2c4
109 } 109 }
110 110
111 bool 111 bool
112 Transform::operator==(const Transform &t) const 112 Transform::operator==(const Transform &t) const
113 { 113 {
114 return 114 bool identical =
115 m_id == t.m_id && 115 m_id == t.m_id &&
116 m_parameters == t.m_parameters && 116 m_parameters == t.m_parameters &&
117 m_configuration == t.m_configuration && 117 m_configuration == t.m_configuration &&
118 m_program == t.m_program && 118 m_program == t.m_program &&
119 m_summaryType == t.m_summaryType && 119 m_summaryType == t.m_summaryType &&
121 m_blockSize == t.m_blockSize && 121 m_blockSize == t.m_blockSize &&
122 m_windowType == t.m_windowType && 122 m_windowType == t.m_windowType &&
123 m_startTime == t.m_startTime && 123 m_startTime == t.m_startTime &&
124 m_duration == t.m_duration && 124 m_duration == t.m_duration &&
125 m_sampleRate == t.m_sampleRate; 125 m_sampleRate == t.m_sampleRate;
126 /*
127 std::cerr << "Transform::operator==: identical = " << identical << std::endl;
128 std::cerr << "A = " << std::endl;
129 std::cerr << toXmlString().toStdString() << std::endl;
130 std::cerr << "B = " << std::endl;
131 std::cerr << t.toXmlString().toStdString() << std::endl;
132 */
133 return identical;
126 } 134 }
127 135
128 bool 136 bool
129 Transform::operator<(const Transform &t) const 137 Transform::operator<(const Transform &t) const
130 { 138 {