X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=xml-tree-inc.hpp;h=d5a921f3c9494d98783b0e337c8e96490008ea63;hb=6eb6b7bc5f5284f9ee647046b822e47cae62bccc;hp=f8ee8b09fc70edd5f7c727b4d19e5c1d68e137d1;hpb=a69b38028aa38dd50b3e5db1acf0ff51faa9b511;p=SXSI%2FXMLTree.git diff --git a/xml-tree-inc.hpp b/xml-tree-inc.hpp index f8ee8b0..d5a921f 100644 --- 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 {