mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-13 17:48:34 +05:00
output of xbool
This commit is contained in:
parent
34a6777f49
commit
897cf6f848
@ -30,7 +30,15 @@ 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; }
|
||||||
|
friend ostream & operator<< (ostream & ost, xbool xb);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
static char output[] = "0?1";
|
||||||
|
inline ostream & operator<< (ostream & ost, xbool xb)
|
||||||
|
{
|
||||||
|
return ost << output[xb.state];
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace ngcore
|
} // namespace ngcore
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user