X-Git-Url: http://git.nguyen.vg/gitweb/?p=tatoo.git;a=blobdiff_plain;f=src%2Fquery_tree.mli;h=7335e5258aad4f2ffd3df35a0f4dab51ec2c1a39;hp=6a8678fdf263e454611fbc53e8d16a782007753e;hb=72818d02fb469c39a3d8043300152beae3e7e162;hpb=c7229e6e3c000938a74abeb52749f62a65c3bbfd diff --git a/src/query_tree.mli b/src/query_tree.mli index 6a8678f..7335e52 100644 --- a/src/query_tree.mli +++ b/src/query_tree.mli @@ -1,12 +1,7 @@ val compteur : int ref (**the counter of nodes*) -val all_nodes : Naive_tree.t -> Naive_tree.node list -(** [all_nodes t] returns all the nodes in the tree [t]. - Returns an empty list if there are no nodes in the tree. - *) - -val element_by_tag : Naive_tree.t -> QNameSet.t -> Tree.NodeKind.t -> Naive_tree.node list +val element_by_tag : Naive_tree.t -> QNameSet.t -> Tree.NodeKind.t -> Bitvector.t (** [element_by_tag t tag] returns all the nodes whose tag equal to [tag] in the tree [t]. *) val compile_single_path : Xpath.Ast.single_path -> Table.query_tree @@ -23,7 +18,7 @@ val minimize_qtree : Table.query_tree -> Table.query_tree [q] query_tree *) -val eval_qtree : Naive_tree.t -> Naive_tree.node list ->Table.query_tree -> Naive_tree.node list +val eval_qtree : Naive_tree.t -> Bitvector.t ->Table.query_tree -> Bitvector.t (** [eval_qtree tree start q] returns the set of nodes that evaluate by the query_tree [q]. [start] the set of nodes departing. [q] query_tree