jon.recoil.org

Module type Reg_class_utils.Tbl

Definition of tables with register classes as keys. All register classes are always bound.

type reg_class
type 'a t
val init : f:(reg_class -> 'a) -> 'a t

Creates a table by calling f on each and every register class to get the initial value for that class.

val map : 'a t -> f:('a -> 'b) -> 'b t
val iter : 'a t -> f:(reg_class -> 'a -> unit) -> unit
val find : 'a t -> reg_class -> 'a