mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 21:05:31 +08:00
refs #126 null unit infrastructure, a sentinel to mark an uninitialized or unused physical quantity
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user