X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=hcons.mli;h=888531e692dc16bf404cbc20d8a7f5bd7c556c81;hb=0c2338bfcdae0df1c68112a10247dc4e68a483ff;hp=dcdcb69c26e26c45690da40285ac6400163235ea;hpb=c5f06d325240c808a9be4d71e20fc01969420bb3;p=SXSI%2Fxpathcomp.git diff --git a/hcons.mli b/hcons.mli index dcdcb69..888531e 100644 --- a/hcons.mli +++ b/hcons.mli @@ -5,21 +5,27 @@ module type SA = val make : data -> t val node : t -> data val hash : t -> int - val uid : t -> int + val uid : t -> Uid.t val equal : t -> t -> bool + + + val with_id : Uid.t -> t end module type S = sig type data - type t = private { id : int; - key : int; + type t = private { id : Uid.t; + key : int; node : data } val make : data -> t val node : t -> data val hash : t -> int - val uid : t -> int + val uid : t -> Uid.t val equal : t -> t -> bool + + + val with_id : Uid.t -> t end module Make (H : Hashtbl.HashedType) : S with type data = H.t