1Ephemeron.SeededS(3) OCaml library Ephemeron.SeededS(3)
2
3
4
6 Ephemeron.SeededS - The output signature of the functors
7 Ephemeron.K1.MakeSeeded and Ephemeron.K2.MakeSeeded.
8
10 Module type Ephemeron.SeededS
11
13 Module type SeededS
14 = sig end
15
16
17 The output signature of the functors Ephemeron.K1.MakeSeeded and
18 Ephemeron.K2.MakeSeeded .
19
20
21
22
23
24 type key
25
26
27
28
29 type 'a t
30
31
32
33
34
35 val create : ?random:bool -> int -> 'a t
36
37
38
39
40 val clear : 'a t -> unit
41
42
43
44
45 val reset : 'a t -> unit
46
47
48
49
50 val copy : 'a t -> 'a t
51
52
53
54
55 val add : 'a t -> key -> 'a -> unit
56
57
58
59
60 val remove : 'a t -> key -> unit
61
62
63
64
65 val find : 'a t -> key -> 'a
66
67
68
69
70 val find_opt : 'a t -> key -> 'a option
71
72
73
74
75 val find_all : 'a t -> key -> 'a list
76
77
78
79
80 val replace : 'a t -> key -> 'a -> unit
81
82
83
84
85 val mem : 'a t -> key -> bool
86
87
88
89
90 val length : 'a t -> int
91
92
93
94
95 val stats : 'a t -> Hashtbl.statistics
96
97
98
99
100 val add_seq : 'a t -> (key * 'a) Seq.t -> unit
101
102
103
104
105 val replace_seq : 'a t -> (key * 'a) Seq.t -> unit
106
107
108
109
110 val of_seq : (key * 'a) Seq.t -> 'a t
111
112
113
114
115 val clean : 'a t -> unit
116
117 remove all dead bindings. Done automatically during automatic resizing.
118
119
120
121 val stats_alive : 'a t -> Hashtbl.statistics
122
123 same as Hashtbl.SeededS.stats but only count the alive bindings
124
125
126
127
128
129OCamldoc 2023-07-20 Ephemeron.SeededS(3)