|
Public Types |
typedef indri::utility::greedy_vector<
int >::iterator | child_iterator |
Public Member Functions |
| DocumentStructure (Index &index, const indri::utility::greedy_vector< indri::index::FieldExtent > &fields) |
| DocumentStructure (Index &index) |
| DocumentStructure () |
void | loadStructure (const indri::utility::greedy_vector< indri::index::FieldExtent > &fields) |
void | setIndex (indri::index::Index &index) |
indri::index::Index * | getIndex () |
| ~DocumentStructure () |
int | parent (int node) |
int | length (int node) |
int | begin (int node) |
int | end (int node) |
int | accumulatedLength (int node) |
int | type (int node) |
UINT64 | number (int node) |
child_iterator | childrenBegin (int node) |
child_iterator | childrenEnd (int node) |
int | nodeCount () |
int | findLeaf (int begin, int end, int root=-1) |
std::set< int > * | findLeafs (int begin, int end, bool exact=false) |
void | findLeafs (std::set< int > *leafs, int begin, int end, bool exact=false) |
bool | ancestor (int node, int possibleAncestor) |
std::string | path (int node) |
int | fieldId (const std::string path) |
indri::utility::greedy_vector<
int > & | topDownOrder () |
void | topDownOrder (std::set< int > &roots, indri::utility::greedy_vector< int > &order) |
Protected Member Functions |
void | _constructNodePath (std::stringstream &path, int node) |
void | _computeTopDownOrder () |
bool | _findLeafs (int node, int begin, int end, bool exact, std::set< int > *leafs) |
Protected Attributes |
int | _numNodes |
indri::utility::greedy_vector<
nodeinfo_t > | _nodes |
indri::utility::greedy_vector<
int > | _childrenBuff |
Index * | _index |
indri::utility::greedy_vector<
int > | _topDownOrder |