refs #247 Removed methods which were missed in refs #345.

This commit is contained in:
Mathew Sutcliffe
2014-11-15 20:49:40 +00:00
parent 8206b1f8f7
commit 57b2a6b588
2 changed files with 0 additions and 39 deletions

View File

@@ -47,9 +47,6 @@ namespace BlackMisc
*/
explicit CCoordinateEcef(const BlackMisc::Math::CVector3D vector) : CValueObjectStdTuple(vector.i(), vector.j(), vector.k()) {}
//! \copydoc CValueObject::toQVariant
virtual QVariant toQVariant() const override { return QVariant::fromValue(*this); }
//! \brief x
double x() const
{

View File

@@ -114,42 +114,6 @@ namespace BlackMisc
//! Operator != with value map
friend bool operator!=(const CValueObject &valueObject, const CPropertyIndexVariantMap &valueMap);
//! Comparison operator to allow valueobjects be used as keys in QMap and std::set.
template <class T> friend typename std::enable_if < std::is_base_of<CValueObject, T>::value &&! PhysicalQuantities::IsQuantity<T>::value, bool >::type
operator<(const T &lhs, const T &rhs)
{
const auto &lhsBase = static_cast<const CValueObject &>(lhs);
const auto &rhsBase = static_cast<const CValueObject &>(rhs);
return lhsBase.compareImpl(rhsBase) < 0;
}
//! Comparison for symmetry with operator<.
template <class T> friend typename std::enable_if < std::is_base_of<CValueObject, T>::value &&! PhysicalQuantities::IsQuantity<T>::value, bool >::type
operator>(const T &lhs, const T &rhs)
{
const auto &lhsBase = static_cast<const CValueObject &>(lhs);
const auto &rhsBase = static_cast<const CValueObject &>(rhs);
return lhsBase.compareImpl(rhsBase) > 0;
}
//! Comparison for symmetry with operator<.
template <class T> friend typename std::enable_if < std::is_base_of<CValueObject, T>::value &&! PhysicalQuantities::IsQuantity<T>::value, bool >::type
operator<=(const T &lhs, const T &rhs)
{
const auto &lhsBase = static_cast<const CValueObject &>(lhs);
const auto &rhsBase = static_cast<const CValueObject &>(rhs);
return lhsBase.compareImpl(rhsBase) <= 0;
}
//! Comparison for symmetry with operator<.
template <class T> friend typename std::enable_if < std::is_base_of<CValueObject, T>::value &&! PhysicalQuantities::IsQuantity<T>::value, bool >::type
operator>=(const T &lhs, const T &rhs)
{
const auto &lhsBase = static_cast<const CValueObject &>(lhs);
const auto &rhsBase = static_cast<const CValueObject &>(rhs);
return lhsBase.compareImpl(rhsBase) >= 0;
}
/*!
* Compares two instances of related classes
* and returns an integer less than, equal to, or greater than zero