refs #126 null unit infrastructure, a sentinel to mark an uninitialized or unused physical quantity

This commit is contained in:
Mathew Sutcliffe
2014-02-18 18:36:49 +00:00
parent afc494ee5e
commit 8b1ef4345d
4 changed files with 151 additions and 2 deletions

View File

@@ -125,6 +125,14 @@ namespace BlackMisc
*/
PQ &switchUnit(const MU &newUnit);
/*!
* Is quantity null?
*/
bool isNull() const
{
return this->m_unit.isNull();
}
/*!
* \brief Value in given unit
*/