X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FnodeSet.mli;h=d9215aca750e6dd2bbe9da440a4c493bd1225657;hb=798507d52a5c11a6d852740056464241538fe76a;hp=a25189a2c420a69c2c1fd4666a6b8eb4f57597f3;hpb=4b52da1a20a4fe031930bb96d2ca46bec06dc529;p=SXSI%2Fxpathcomp.git diff --git a/src/nodeSet.mli b/src/nodeSet.mli index a25189a..d9215ac 100644 --- a/src/nodeSet.mli +++ b/src/nodeSet.mli @@ -1,8 +1,12 @@ + module type S = sig type t type elt = Tree.node val empty : t + val var : (int*State.t) -> t + val close : ((int*State.t), t) Hashtbl.t -> t -> t + val is_open : t -> bool val singleton : elt -> t val cons : elt -> t -> t val snoc : t -> elt -> t @@ -17,7 +21,10 @@ module type S = val iter : ( elt -> unit) -> t -> unit val fold : ( elt -> 'a -> 'a) -> t -> 'a -> 'a val length : t -> int - val serialize : string -> Tree.t -> t -> unit + val serialize : string -> bool -> Tree.t -> t -> unit + + + end module Count : S with type t = int @@ -37,3 +44,5 @@ type 'a mat = { mutable clist : clist; module Mat : S with type t = Tree.node mat val debug : Tree.node mat -> unit + +module Partial(N : S) : S