sig
val keys_to_list : ('a, 'b) Hashtbl.t -> 'a list
val dfind : ('a, 'b) Hashtbl.t -> 'a -> 'b -> 'b
type ('a, 'b) t = ('a, 'b) Hashtbl.t
val create : ?random:bool -> int -> ('a, 'b) Ext.Hashtbl.t
val clear : ('a, 'b) Ext.Hashtbl.t -> unit
val reset : ('a, 'b) Ext.Hashtbl.t -> unit
val copy : ('a, 'b) Ext.Hashtbl.t -> ('a, 'b) Ext.Hashtbl.t
val add : ('a, 'b) Ext.Hashtbl.t -> 'a -> 'b -> unit
val find : ('a, 'b) Ext.Hashtbl.t -> 'a -> 'b
val find_all : ('a, 'b) Ext.Hashtbl.t -> 'a -> 'b list
val mem : ('a, 'b) Ext.Hashtbl.t -> 'a -> bool
val remove : ('a, 'b) Ext.Hashtbl.t -> 'a -> unit
val replace : ('a, 'b) Ext.Hashtbl.t -> 'a -> 'b -> unit
val iter : ('a -> 'b -> unit) -> ('a, 'b) Ext.Hashtbl.t -> unit
val fold : ('a -> 'b -> 'c -> 'c) -> ('a, 'b) Ext.Hashtbl.t -> 'c -> 'c
val length : ('a, 'b) Ext.Hashtbl.t -> int
val randomize : unit -> unit
type statistics =
Hashtbl.statistics = {
num_bindings : int;
num_buckets : int;
max_bucket_length : int;
bucket_histogram : int array;
}
val stats : ('a, 'b) Ext.Hashtbl.t -> Ext.Hashtbl.statistics
module type HashedType =
sig
type t
val equal :
Ext.Hashtbl.HashedType.t -> Ext.Hashtbl.HashedType.t -> bool
val hash : Ext.Hashtbl.HashedType.t -> int
end
module type S =
sig
type key
type 'a t
val create : int -> 'a Ext.Hashtbl.S.t
val clear : 'a Ext.Hashtbl.S.t -> unit
val reset : 'a Ext.Hashtbl.S.t -> unit
val copy : 'a Ext.Hashtbl.S.t -> 'a Ext.Hashtbl.S.t
val add : 'a Ext.Hashtbl.S.t -> Ext.Hashtbl.S.key -> 'a -> unit
val remove : 'a Ext.Hashtbl.S.t -> Ext.Hashtbl.S.key -> unit
val find : 'a Ext.Hashtbl.S.t -> Ext.Hashtbl.S.key -> 'a
val find_all : 'a Ext.Hashtbl.S.t -> Ext.Hashtbl.S.key -> 'a list
val replace : 'a Ext.Hashtbl.S.t -> Ext.Hashtbl.S.key -> 'a -> unit
val mem : 'a Ext.Hashtbl.S.t -> Ext.Hashtbl.S.key -> bool
val iter :
(Ext.Hashtbl.S.key -> 'a -> unit) -> 'a Ext.Hashtbl.S.t -> unit
val fold :
(Ext.Hashtbl.S.key -> 'a -> 'b -> 'b) ->
'a Ext.Hashtbl.S.t -> 'b -> 'b
val length : 'a Ext.Hashtbl.S.t -> int
val stats : 'a Ext.Hashtbl.S.t -> Ext.Hashtbl.statistics
end
module Make :
functor (H : HashedType) ->
sig
type key = H.t
type 'a t = 'a Hashtbl.Make(H).t
val create : int -> 'a Ext.Hashtbl.Make.t
val clear : 'a Ext.Hashtbl.Make.t -> unit
val reset : 'a Ext.Hashtbl.Make.t -> unit
val copy : 'a Ext.Hashtbl.Make.t -> 'a Ext.Hashtbl.Make.t
val add : 'a Ext.Hashtbl.Make.t -> Ext.Hashtbl.Make.key -> 'a -> unit
val remove : 'a Ext.Hashtbl.Make.t -> Ext.Hashtbl.Make.key -> unit
val find : 'a Ext.Hashtbl.Make.t -> Ext.Hashtbl.Make.key -> 'a
val find_all :
'a Ext.Hashtbl.Make.t -> Ext.Hashtbl.Make.key -> 'a list
val replace :
'a Ext.Hashtbl.Make.t -> Ext.Hashtbl.Make.key -> 'a -> unit
val mem : 'a Ext.Hashtbl.Make.t -> Ext.Hashtbl.Make.key -> bool
val iter :
(Ext.Hashtbl.Make.key -> 'a -> unit) ->
'a Ext.Hashtbl.Make.t -> unit
val fold :
(Ext.Hashtbl.Make.key -> 'a -> 'b -> 'b) ->
'a Ext.Hashtbl.Make.t -> 'b -> 'b
val length : 'a Ext.Hashtbl.Make.t -> int
val stats : 'a Ext.Hashtbl.Make.t -> Ext.Hashtbl.statistics
end
module type SeededHashedType =
sig
type t
val equal :
Ext.Hashtbl.SeededHashedType.t ->
Ext.Hashtbl.SeededHashedType.t -> bool
val hash : int -> Ext.Hashtbl.SeededHashedType.t -> int
end
module type SeededS =
sig
type key
type 'a t
val create : ?random:bool -> int -> 'a Ext.Hashtbl.SeededS.t
val clear : 'a Ext.Hashtbl.SeededS.t -> unit
val reset : 'a Ext.Hashtbl.SeededS.t -> unit
val copy : 'a Ext.Hashtbl.SeededS.t -> 'a Ext.Hashtbl.SeededS.t
val add :
'a Ext.Hashtbl.SeededS.t -> Ext.Hashtbl.SeededS.key -> 'a -> unit
val remove :
'a Ext.Hashtbl.SeededS.t -> Ext.Hashtbl.SeededS.key -> unit
val find : 'a Ext.Hashtbl.SeededS.t -> Ext.Hashtbl.SeededS.key -> 'a
val find_all :
'a Ext.Hashtbl.SeededS.t -> Ext.Hashtbl.SeededS.key -> 'a list
val replace :
'a Ext.Hashtbl.SeededS.t -> Ext.Hashtbl.SeededS.key -> 'a -> unit
val mem : 'a Ext.Hashtbl.SeededS.t -> Ext.Hashtbl.SeededS.key -> bool
val iter :
(Ext.Hashtbl.SeededS.key -> 'a -> unit) ->
'a Ext.Hashtbl.SeededS.t -> unit
val fold :
(Ext.Hashtbl.SeededS.key -> 'a -> 'b -> 'b) ->
'a Ext.Hashtbl.SeededS.t -> 'b -> 'b
val length : 'a Ext.Hashtbl.SeededS.t -> int
val stats : 'a Ext.Hashtbl.SeededS.t -> Ext.Hashtbl.statistics
end
module MakeSeeded :
functor (H : SeededHashedType) ->
sig
type key = H.t
type 'a t = 'a Hashtbl.MakeSeeded(H).t
val create : ?random:bool -> int -> 'a Ext.Hashtbl.MakeSeeded.t
val clear : 'a Ext.Hashtbl.MakeSeeded.t -> unit
val reset : 'a Ext.Hashtbl.MakeSeeded.t -> unit
val copy : 'a Ext.Hashtbl.MakeSeeded.t -> 'a Ext.Hashtbl.MakeSeeded.t
val add :
'a Ext.Hashtbl.MakeSeeded.t ->
Ext.Hashtbl.MakeSeeded.key -> 'a -> unit
val remove :
'a Ext.Hashtbl.MakeSeeded.t -> Ext.Hashtbl.MakeSeeded.key -> unit
val find :
'a Ext.Hashtbl.MakeSeeded.t -> Ext.Hashtbl.MakeSeeded.key -> 'a
val find_all :
'a Ext.Hashtbl.MakeSeeded.t ->
Ext.Hashtbl.MakeSeeded.key -> 'a list
val replace :
'a Ext.Hashtbl.MakeSeeded.t ->
Ext.Hashtbl.MakeSeeded.key -> 'a -> unit
val mem :
'a Ext.Hashtbl.MakeSeeded.t -> Ext.Hashtbl.MakeSeeded.key -> bool
val iter :
(Ext.Hashtbl.MakeSeeded.key -> 'a -> unit) ->
'a Ext.Hashtbl.MakeSeeded.t -> unit
val fold :
(Ext.Hashtbl.MakeSeeded.key -> 'a -> 'b -> 'b) ->
'a Ext.Hashtbl.MakeSeeded.t -> 'b -> 'b
val length : 'a Ext.Hashtbl.MakeSeeded.t -> int
val stats : 'a Ext.Hashtbl.MakeSeeded.t -> Ext.Hashtbl.statistics
end
val hash : 'a -> int
val seeded_hash : int -> 'a -> int
val hash_param : int -> int -> 'a -> int
val seeded_hash_param : int -> int -> int -> 'a -> int
end