1Ephemeron.GenHashTable.MakeSeeded(O3C)aml librEaprhyemeron.GenHashTable.MakeSeeded(3)
2
3
4
6 Ephemeron.GenHashTable.MakeSeeded - Functor building an implementation
7 of an hash table that use the container for keeping the information
8 given
9
11 Module Ephemeron.GenHashTable.MakeSeeded
12
14 Module MakeSeeded
15 : functor (H : sig end) -> sig end
16
17
18 Functor building an implementation of an hash table that use the con‐
19 tainer for keeping the information given
20
21
22 Parameters:
23
24 "H"
25
26 sig end
27
28
29
30
31
32
33
34 type key
35
36
37
38
39 type 'a t
40
41
42
43
44
45 val create : ?random:bool -> int -> 'a t
46
47
48
49
50 val clear : 'a t -> unit
51
52
53
54
55 val reset : 'a t -> unit
56
57
58
59
60 val copy : 'a t -> 'a t
61
62
63
64
65 val add : 'a t -> key -> 'a -> unit
66
67
68
69
70 val remove : 'a t -> key -> unit
71
72
73
74
75 val find : 'a t -> key -> 'a
76
77
78
79
80 val find_opt : 'a t -> key -> 'a option
81
82
83
84
85 val find_all : 'a t -> key -> 'a list
86
87
88
89
90 val replace : 'a t -> key -> 'a -> unit
91
92
93
94
95 val mem : 'a t -> key -> bool
96
97
98
99
100 val iter : (key -> 'a -> unit) -> 'a t -> unit
101
102
103
104
105 val filter_map_inplace : (key -> 'a -> 'a option) -> 'a t -> unit
106
107
108
109
110 val fold : (key -> 'a -> 'b -> 'b) -> 'a t -> 'b -> 'b
111
112
113
114
115 val length : 'a t -> int
116
117
118
119
120 val stats : 'a t -> Hashtbl.statistics
121
122
123
124
125 val to_seq : 'a t -> (key * 'a) Seq.t
126
127
128
129
130 val to_seq_keys : 'a t -> key Seq.t
131
132
133
134
135 val to_seq_values : 'a t -> 'a Seq.t
136
137
138
139
140 val add_seq : 'a t -> (key * 'a) Seq.t -> unit
141
142
143
144
145 val replace_seq : 'a t -> (key * 'a) Seq.t -> unit
146
147
148
149
150 val of_seq : (key * 'a) Seq.t -> 'a t
151
152
153
154
155 val clean : 'a t -> unit
156
157 remove all dead bindings. Done automatically during automatic resizing.
158
159
160
161 val stats_alive : 'a t -> Hashtbl.statistics
162
163 same as Hashtbl.SeededS.stats but only count the alive bindings
164
165
166
167
168
169OCamldoc 2023-01-2E3phemeron.GenHashTable.MakeSeeded(3)