Backed out changeset efde83eec45f
This commit is contained in:
@@ -649,94 +649,6 @@ SpectrumValue:: operator= (double rhs)
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
SpectrumValue::operator== (const SpectrumValue& rhs) const
|
||||
{
|
||||
Values::const_iterator it1 = this->m_values.begin ();
|
||||
Values::const_iterator it2 = rhs.m_values.begin ();
|
||||
|
||||
while ( it1 != this->m_values.end () && it2 != rhs.m_values.end () )
|
||||
{
|
||||
if ( *it1 != *it2 )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
++it1;
|
||||
++it2;
|
||||
}
|
||||
}
|
||||
|
||||
if ( it1 == this->m_values.end () && it2 == rhs.m_values.end () )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
bool
|
||||
SpectrumValue::operator< (const SpectrumValue &rhs) const
|
||||
{
|
||||
Values::const_iterator it1 = this->m_values.begin ();
|
||||
Values::const_iterator it2 = rhs.m_values.begin ();
|
||||
|
||||
while ( it1 != this->m_values.end () && it2 != rhs.m_values.end () )
|
||||
{
|
||||
if ( *it1 >= *it2 )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
++it1;
|
||||
++it2;
|
||||
}
|
||||
}
|
||||
|
||||
if ( it1 == this->m_values.end () && it2 == rhs.m_values.end () )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
bool
|
||||
SpectrumValue::operator> (const SpectrumValue &rhs) const
|
||||
{
|
||||
Values::const_iterator it1 = this->m_values.begin ();
|
||||
Values::const_iterator it2 = rhs.m_values.begin ();
|
||||
|
||||
while ( it1 != this->m_values.end () && it2 != rhs.m_values.end () )
|
||||
{
|
||||
if ( *it1 <= *it2 )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
++it1;
|
||||
++it2;
|
||||
}
|
||||
}
|
||||
|
||||
if ( it1 == this->m_values.end () && it2 == rhs.m_values.end () )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
SpectrumValue
|
||||
SpectrumValue:: operator<< (int n) const
|
||||
|
||||
@@ -400,36 +400,6 @@ public:
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Compare each component, one by one
|
||||
*
|
||||
* @param rhs Right Hand Side of the operator
|
||||
*
|
||||
* @return True if this == rhs
|
||||
* False if this != rhs
|
||||
*/
|
||||
bool operator== (const SpectrumValue& rhs) const;
|
||||
|
||||
/**
|
||||
* Compare each component, one by one
|
||||
*
|
||||
* @param rhs Right Hand Side of the operator
|
||||
*
|
||||
* @return True if this < rhs
|
||||
* False if this >= rhs
|
||||
*/
|
||||
bool operator< (const SpectrumValue &rhs) const;
|
||||
|
||||
/**
|
||||
* Compare each component, one by one
|
||||
*
|
||||
* @param rhs Right Hand Side of the operator
|
||||
*
|
||||
* @return True if this > rhs
|
||||
* False if this <= rhs
|
||||
*/
|
||||
bool operator> (const SpectrumValue &rhs) const;
|
||||
|
||||
/**
|
||||
*
|
||||
* @param x the operand
|
||||
|
||||
Reference in New Issue
Block a user