X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=tree.mli;h=43e8ff7bb6e22eb625993b214e2cc86b5b96a203;hb=f84dd2f6de7d5da16da729dc2e91cbdeb3585d75;hp=329d4972667399c1d5aeea8f8145d45c661d6553;hpb=496df5f7d3e6f8271763314f2067719cc2904c71;p=SXSI%2Fxpathcomp.git diff --git a/tree.mli b/tree.mli index 329d497..43e8ff7 100644 --- a/tree.mli +++ b/tree.mli @@ -12,20 +12,39 @@ sig type t val parse_xml_uri : string -> t val parse_xml_string : string -> t + val save : t -> string -> unit + val load : ?sample:int -> string -> t + val tag_pool : t -> Tag.pool val string : t -> string val descr : t -> descr + val is_node : t -> bool val left : t -> t val right : t -> t + val first_child : t -> t + val next_sibling : t -> t + val parent : t -> t val id : t -> int val tag : t -> Tag.t val print_xml_fast : out_channel -> t -> unit val compare : t -> t -> int val equal : t -> t -> bool + module DocIdSet : + sig + include Set.S + end with type elt = string_content + val string_below : t -> string_content -> bool + val contains : t -> string -> DocIdSet.t + val contains_old : t -> string -> bool + val dump : t -> unit + val get_string : t -> string_content -> string end module Binary : BINARY -val dump : Binary.t -> unit -val traversal : Binary.t -> unit -val full_traversal : Binary.t -> unit -val cpp_traversal : Binary.t -> unit +IFDEF DEBUG +THEN +module DEBUGTREE : sig + include BINARY + val print_stats : Format.formatter -> unit +end +ENDIF