sig
type ('a, 'b) hashtbl
type 'a compare = { hash : 'a -> int; equal : 'a -> 'a -> bool; }
type ('a, 'b) t = ('a, 'b) Hashhe.hashtbl
val create : int -> ('a, 'b) Hashhe.t
val clear : ('a, 'b) Hashhe.t -> unit
val add : ('a, 'b) Hashhe.t -> 'a -> 'b -> unit
val copy : ('a, 'b) Hashhe.t -> ('a, 'b) Hashhe.t
val find : ('a, 'b) Hashhe.t -> 'a -> 'b
val find_all : ('a, 'b) Hashhe.t -> 'a -> 'b list
val mem : ('a, 'b) Hashhe.t -> 'a -> bool
val remove : ('a, 'b) Hashhe.t -> 'a -> unit
val replace : ('a, 'b) Hashhe.t -> 'a -> 'b -> unit
val iter : ('a -> 'b -> unit) -> ('a, 'b) Hashhe.t -> unit
val fold : ('a -> 'b -> 'c -> 'c) -> ('a, 'b) Hashhe.t -> 'c -> 'c
val map : ('a -> 'b -> 'c) -> ('a, 'b) Hashhe.t -> ('a, 'c) Hashhe.t
val length : ('a, 'b) Hashhe.t -> int
val print :
?first:(unit, Format.formatter, unit) Pervasives.format ->
?sep:(unit, Format.formatter, unit) Pervasives.format ->
?last:(unit, Format.formatter, unit) Pervasives.format ->
?firstbind:(unit, Format.formatter, unit) Pervasives.format ->
?sepbind:(unit, Format.formatter, unit) Pervasives.format ->
?lastbind:(unit, Format.formatter, unit) Pervasives.format ->
(Format.formatter -> 'a -> unit) ->
(Format.formatter -> 'b -> unit) ->
Format.formatter -> ('a, 'b) Hashhe.t -> unit
module type HashedType =
sig
type t
val equal : Hashhe.HashedType.t -> Hashhe.HashedType.t -> bool
val hash : Hashhe.HashedType.t -> int
end
module type S =
sig
type key
type 'a t = (Hashhe.S.key, 'a) Hashhe.hashtbl
module Hash :
sig type t = key val equal : t -> t -> bool val hash : t -> int end
val create : int -> 'a Hashhe.S.t
val clear : 'a Hashhe.S.t -> unit
val copy : 'a Hashhe.S.t -> 'a Hashhe.S.t
val add : 'a Hashhe.S.t -> Hashhe.S.key -> 'a -> unit
val remove : 'a Hashhe.S.t -> Hashhe.S.key -> unit
val find : 'a Hashhe.S.t -> Hashhe.S.key -> 'a
val find_all : 'a Hashhe.S.t -> Hashhe.S.key -> 'a list
val replace : 'a Hashhe.S.t -> Hashhe.S.key -> 'a -> unit
val mem : 'a Hashhe.S.t -> Hashhe.S.key -> bool
val iter : (Hashhe.S.key -> 'a -> unit) -> 'a Hashhe.S.t -> unit
val fold :
(Hashhe.S.key -> 'a -> 'b -> 'b) -> 'a Hashhe.S.t -> 'b -> 'b
val map : (Hashhe.S.key -> 'a -> 'b) -> 'a Hashhe.S.t -> 'b Hashhe.S.t
val length : 'a Hashhe.S.t -> int
val print :
?first:(unit, Format.formatter, unit) Pervasives.format ->
?sep:(unit, Format.formatter, unit) Pervasives.format ->
?last:(unit, Format.formatter, unit) Pervasives.format ->
?firstbind:(unit, Format.formatter, unit) Pervasives.format ->
?sepbind:(unit, Format.formatter, unit) Pervasives.format ->
?lastbind:(unit, Format.formatter, unit) Pervasives.format ->
(Format.formatter -> Hashhe.S.key -> unit) ->
(Format.formatter -> 'a -> unit) ->
Format.formatter -> 'a Hashhe.S.t -> unit
end
module Make :
functor (H : HashedType) ->
sig
type key = H.t
type 'a t = (key, 'a) hashtbl
module Hash :
sig type t = key val equal : t -> t -> bool val hash : t -> int end
val create : int -> 'a t
val clear : 'a t -> unit
val copy : 'a t -> 'a t
val add : 'a t -> key -> 'a -> unit
val remove : 'a t -> key -> unit
val find : 'a t -> key -> 'a
val find_all : 'a t -> key -> 'a list
val replace : 'a t -> key -> 'a -> unit
val mem : 'a t -> key -> bool
val iter : (key -> 'a -> unit) -> 'a t -> unit
val fold : (key -> 'a -> 'b -> 'b) -> 'a t -> 'b -> 'b
val map : (key -> 'a -> 'b) -> 'a t -> 'b t
val length : 'a t -> int
val print :
?first:(unit, Format.formatter, unit) format ->
?sep:(unit, Format.formatter, unit) format ->
?last:(unit, Format.formatter, unit) format ->
?firstbind:(unit, Format.formatter, unit) format ->
?sepbind:(unit, Format.formatter, unit) format ->
?lastbind:(unit, Format.formatter, unit) format ->
(Format.formatter -> key -> unit) ->
(Format.formatter -> 'a -> unit) ->
Format.formatter -> 'a t -> unit
end
val hash : 'a -> int
external hash_param : int -> int -> 'a -> int = "caml_hash_univ_param"
"noalloc"
val stdcompare : 'a Hashhe.compare
module Compare :
sig
val resize : 'a Hashhe.compare -> ('a, 'b) Hashhe.hashtbl -> unit
val add :
'a Hashhe.compare -> ('a, 'b) Hashhe.hashtbl -> 'a -> 'b -> unit
val remove : 'a Hashhe.compare -> ('a, 'b) Hashhe.hashtbl -> 'a -> unit
val find : 'a Hashhe.compare -> ('a, 'b) Hashhe.hashtbl -> 'a -> 'b
val find_all :
'a Hashhe.compare -> ('a, 'b) Hashhe.hashtbl -> 'a -> 'b list
val replace :
'a Hashhe.compare -> ('a, 'b) Hashhe.hashtbl -> 'a -> 'b -> unit
val mem : 'a Hashhe.compare -> ('a, 'b) Hashhe.hashtbl -> 'a -> bool
end
end