refs #345 Third and final wave of value classes using the CValueObjectStdTuple CRTP class template, with policy classes.

This commit is contained in:
Mathew Sutcliffe
2014-11-08 00:17:13 +00:00
parent 2b9d4098d4
commit f219d290f1
48 changed files with 326 additions and 1389 deletions

View File

@@ -122,19 +122,6 @@ namespace BlackMisc
argument >> this->m_unit;
}
/*
* Register metatype
*/
template <class MU, class PQ>void CPhysicalQuantity<MU, PQ>::registerMetadata()
{
qRegisterMetaType<MU>();
qDBusRegisterMetaType<MU>();
qDBusRegisterMetaType<QList<MU> >();
qRegisterMetaType<PQ>();
qDBusRegisterMetaType<PQ>();
qDBusRegisterMetaType<QList<PQ> >();
}
/*
* Multiply operator
*/
@@ -360,23 +347,6 @@ namespace BlackMisc
}
}
/*
* metaTypeId
*/
template <class MU, class PQ> int CPhysicalQuantity<MU, PQ>::getMetaTypeId() const
{
return qMetaTypeId<PQ>();
}
/*
* is a
*/
template <class MU, class PQ> bool CPhysicalQuantity<MU, PQ>::isA(int metaTypeId) const
{
if (metaTypeId == qMetaTypeId<PQ>()) { return true; }
return this->CValueObject::isA(metaTypeId);
}
/*
* Compare
*/