From 58631362857d9127d958c62e050ad9110a5986b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Sch=C3=B6berl?= Date: Sun, 23 Aug 2020 18:47:49 +0200 Subject: [PATCH] MaybeTrue/False for xbool --- libsrc/core/xbool.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libsrc/core/xbool.hpp b/libsrc/core/xbool.hpp index 8feb3fef..2063ebf7 100644 --- a/libsrc/core/xbool.hpp +++ b/libsrc/core/xbool.hpp @@ -30,6 +30,8 @@ namespace ngcore bool IsTrue () const { return state == 2; } bool IsMaybe () const { return state == 1; } 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); };