sig
type ('a, 'b) t
val create : int -> ('a, 'b) BatInnerWeaktbl.t
val clear : ('a, 'b) BatInnerWeaktbl.t -> unit
val add : ('a, 'b) BatInnerWeaktbl.t -> 'a -> 'b -> unit
val copy : ('a, 'b) BatInnerWeaktbl.t -> ('a, 'b) BatInnerWeaktbl.t
val find : ('a, 'b) BatInnerWeaktbl.t -> 'a -> 'b
val find_all : ('a, 'b) BatInnerWeaktbl.t -> 'a -> 'b list
val mem : ('a, 'b) BatInnerWeaktbl.t -> 'a -> bool
val remove : ('a, 'b) BatInnerWeaktbl.t -> 'a -> unit
val replace : ('a, 'b) BatInnerWeaktbl.t -> 'a -> 'b -> unit
val iter : ('a -> 'b -> unit) -> ('a, 'b) BatInnerWeaktbl.t -> unit
val fold : ('a -> 'b -> 'c -> 'c) -> ('a, 'b) BatInnerWeaktbl.t -> 'c -> 'c
val length : ('a, 'b) BatInnerWeaktbl.t -> int
module type HashedType =
sig
type t
val equal :
BatInnerWeaktbl.HashedType.t -> BatInnerWeaktbl.HashedType.t -> bool
val hash : BatInnerWeaktbl.HashedType.t -> int
end
module type S =
sig
type key
type 'a t
val create : int -> 'a BatInnerWeaktbl.S.t
val clear : 'a BatInnerWeaktbl.S.t -> unit
val reset : 'a BatInnerWeaktbl.S.t -> unit
val copy : 'a BatInnerWeaktbl.S.t -> 'a BatInnerWeaktbl.S.t
val add : 'a BatInnerWeaktbl.S.t -> BatInnerWeaktbl.S.key -> 'a -> unit
val remove : 'a BatInnerWeaktbl.S.t -> BatInnerWeaktbl.S.key -> unit
val find : 'a BatInnerWeaktbl.S.t -> BatInnerWeaktbl.S.key -> 'a
val find_opt :
'a BatInnerWeaktbl.S.t -> BatInnerWeaktbl.S.key -> 'a option
val find_all :
'a BatInnerWeaktbl.S.t -> BatInnerWeaktbl.S.key -> 'a list
val replace :
'a BatInnerWeaktbl.S.t -> BatInnerWeaktbl.S.key -> 'a -> unit
val mem : 'a BatInnerWeaktbl.S.t -> BatInnerWeaktbl.S.key -> bool
val iter :
(BatInnerWeaktbl.S.key -> 'a -> unit) ->
'a BatInnerWeaktbl.S.t -> unit
val filter_map_inplace :
(BatInnerWeaktbl.S.key -> 'a -> 'a option) ->
'a BatInnerWeaktbl.S.t -> unit
val fold :
(BatInnerWeaktbl.S.key -> 'a -> 'b -> 'b) ->
'a BatInnerWeaktbl.S.t -> 'b -> 'b
val length : 'a BatInnerWeaktbl.S.t -> int
val stats : 'a BatInnerWeaktbl.S.t -> Stdlib.Hashtbl.statistics
end
module Make :
functor (H : HashedType) ->
sig
type key = H.t
type 'a t
val create : int -> 'a t
val clear : 'a t -> unit
val reset : '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_opt : 'a t -> key -> 'a option
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 filter_map_inplace : (key -> 'a -> 'a option) -> 'a t -> unit
val fold : (key -> 'a -> 'b -> 'b) -> 'a t -> 'b -> 'b
val length : 'a t -> int
val stats : 'a t -> Hashtbl.statistics
end
end