mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 21:10:33 +05:00
MaybeTrue/False for xbool
This commit is contained in:
parent
e680f23bfa
commit
5863136285
@ -30,6 +30,8 @@ namespace ngcore
|
|||||||
bool IsTrue () const { return state == 2; }
|
bool IsTrue () const { return state == 2; }
|
||||||
bool IsMaybe () const { return state == 1; }
|
bool IsMaybe () const { return state == 1; }
|
||||||
bool IsFalse () const { return state == 0; }
|
bool IsFalse () const { return state == 0; }
|
||||||
|
bool IsMaybeTrue() const { return state >= 1; }
|
||||||
|
bool IsMaybeFalse() const { return state <= 1; }
|
||||||
friend ostream & operator<< (ostream & ost, xbool xb);
|
friend ostream & operator<< (ostream & ost, xbool xb);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user