X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=xml-tree.hpp;fp=xml-tree.hpp;h=436e2f9ed542553b166fc65483165a2bb8dcb681;hb=9775b1833487a525901cf968d91a9e7f193395c5;hp=bfeff5f572a99e04f672f982fbe5cf9b0a30bb1e;hpb=a03dd7328575623b07aee80362b4214f0cf76b31;p=SXSI%2FXMLTree.git diff --git a/xml-tree.hpp b/xml-tree.hpp index bfeff5f..436e2f9 100644 --- a/xml-tree.hpp +++ b/xml-tree.hpp @@ -3,6 +3,7 @@ #include +#include #include #include #include @@ -50,7 +51,7 @@ public: inline uint32_t num_tags() const; inline uint32_t subtree_size(node_t) const; inline uint32_t subtree_tags(node_t, tag_t) const; - inline uint32_t subtree_elements(node_t, tag_t*) const; + inline uint32_t subtree_elements(node_t) const; uint32_t num_children(node_t) const; uint32_t child_pos(node_t) const; @@ -138,6 +139,8 @@ private: //Mapping from tag_t identifiers to/from tagnames std::vector *tag_names; std::unordered_map *tag_ids; + //Set of tag ids that map to attribute nodes + std::unordered_set *attribute_ids; //Text index SXSI::TextCollection *text_collection; static_bitsequence *text_positions;