Release coccinelle-0.1.4
[bpt/coccinelle.git] / commons / oassoc.mli
1
2 class virtual ['a, 'b] oassoc :
3 object ('o)
4 inherit ['a * 'b] Ocollection.ocollection
5
6 method virtual assoc : 'a -> 'b
7 method virtual delkey : 'a -> 'o
8
9 method find : 'a -> 'b
10
11 method haskey : 'a -> bool
12 method replkey : 'a * 'b -> 'o
13
14 (* better to implement it yourself *)
15 method virtual keys: 'a list
16
17 method apply : 'a -> ('b -> 'b) -> 'o
18 method apply_with_default : 'a -> ('b -> 'b) -> (unit -> 'b) -> 'o
19
20 (* effect version *)
21 method apply_with_default2 : 'a -> ('b -> 'b) -> (unit -> 'b) -> unit
22
23 end