add Value::ifMarked()

This commit is contained in:
Michael Davidsaver
2020-04-13 08:00:46 -07:00
parent 5d7de7254f
commit bc30f4c840
2 changed files with 10 additions and 0 deletions
+8
View File
@@ -209,6 +209,14 @@ bool Value::isMarked(bool parents, bool children) const
return false;
}
Value Value::ifMarked(bool parents, bool children) const
{
Value ret;
if(isMarked(parents, children))
ret = *this;
return ret;
}
void Value::mark(bool v)
{
if(!desc)