1) Utiliser bitvector pour preserver l'ordre pendant l'evaluation
[tatoo.git] / src / query_tree.mli
1 val compteur : int ref
2 (**the counter of nodes*)
3
4 val element_by_tag : Naive_tree.t -> QNameSet.t -> Tree.NodeKind.t -> Bitvector.t
5 (** [element_by_tag t tag] returns all the nodes whose tag equal to [tag] in the tree [t]. *)
6
7 val compile_single_path : Xpath.Ast.single_path -> Table.query_tree 
8 (** il y a un cycle si on met la definition de query_tree dans le fichier [Query_tree.ml]
9     [compile_single_path spath] returns un query_tree built with [spath]
10 *)
11
12 val compile_xpath : Xpath.Ast.path -> Table.query_tree 
13 (** [compile_xpath path] returns un query_tree built with [xpath]
14 *)
15
16 val minimize_qtree : Table.query_tree -> Table.query_tree
17 (** [minimize_qtree q] returns the minimum query_tree of [q]
18     [q] query_tree
19 *)
20
21 val eval_qtree : Naive_tree.t -> Bitvector.t ->Table.query_tree -> Bitvector.t
22 (** [eval_qtree tree start q] returns the set of nodes that evaluate by the query_tree [q].
23     [start] the set of nodes departing.
24     [q] query_tree
25 *)