Commit | Line | Data |
---|---|---|
34e49164 C |
1 | (* !!take care!!: this class does side effect, not a pure oassoc *) |
2 | class ['a, 'b] oassocdbm : | |
3 | 'd -> | |
4 | Dbm.t -> | |
5 | ('b -> 'e) -> | |
6 | ('e -> 'b) -> | |
7 | object ('o) | |
8 | inherit ['a,'b] Oassoc.oassoc | |
9 | ||
10 | (* ocollection concrete instantiation of virtual methods *) | |
11 | method empty : 'o | |
12 | method add : 'a * 'b -> 'o | |
13 | ||
14 | method iter : ('a * 'b -> unit) -> unit | |
15 | method view : ('a * 'b, 'o) Ocollection.view | |
16 | ||
17 | method del : 'a * 'b -> 'o | |
18 | method mem : 'a * 'b -> bool | |
19 | method null : bool | |
20 | ||
21 | (* oassoc concrete instantiation of virtual methods *) | |
22 | method assoc : 'a -> 'b | |
23 | method delkey : 'a -> 'o | |
24 | ||
91eba41f C |
25 | method keys: 'a list |
26 | ||
34e49164 C |
27 | end |
28 | ||
29 | val create_dbm : | |
30 | Common.filename -> string -> Dbm.t * ('a, 'b) oassocdbm |