6 #ifndef NODE_BLANK_HPP_
7 #define NODE_BLANK_HPP_
8 #include "boost/functional/hash.hpp"
24 unsigned index()
const {
return n_;}
25 Doc_id document()
const {
return doc_;}
33 Ns_id ns_id_impl()
const {
return terms::blank::id(); }
35 bool equal_impl(
const Node& n)
const {
37 if(
Node_blank const*
const p = dynamic_cast<Node_blank const*>(&n) ) {
38 return n_ == p->n_ && doc_ == p->doc_;
43 std::size_t hash_impl()
const {
45 boost::hash_combine(h, n_);
46 boost::hash_combine(h, doc_);