projects
/
SXSI
/
XMLTree.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add is_open function to test whether an index correspond to an
[SXSI/XMLTree.git]
/
xml-tree-inc.hpp
diff --git
a/xml-tree-inc.hpp
b/xml-tree-inc.hpp
index
f8ee8b0
..
d5a921f
100644
(file)
--- a/
xml-tree-inc.hpp
+++ b/
xml-tree-inc.hpp
@@
-41,6
+41,11
@@
inline bool xml_tree::is_leaf(xml_tree::node_t x) const
return !bp_inspect(this->par, x+1);
}
+inline bool xml_tree::is_open(xml_tree::node_t x) const
+{
+ return bp_inspect(this->par, x);
+}
+
inline bool xml_tree::is_ancestor(xml_tree::node_t x,
xml_tree::node_t y) const
{