Logo Search packages:      
Sourcecode: pan version File versions  Download package

DataImpl::ArticleNode * DataImpl::find_closest_ancestor ( ArticleNode node,
const unique_sorted_quarks_t mid_pool 
) [static, private]

For a given ArticleNode, returns the first ancestor whose mid is in mid_pool. FIXME: these should be member functions of ArticleNode

Definition at line 1156 of file headers.cc.

References pan::DataImpl::ArticleNode::_mid, pan::DataImpl::ArticleNode::_parent, and pan::sorted_vector< K, bNoDuplicates, Pr, A >::count().

  ArticleNode * parent_node (node->_parent);
  while (parent_node && !mid_pool.count(parent_node->_mid))
    parent_node = parent_node->_parent;
  return parent_node;

Generated by  Doxygen 1.6.0   Back to index