jon.recoil.org

Module Stack_class_utils.Make_tbl

Parameters

Signature

type stack_class = SC.t
type 'a t
val make : 'a -> 'a t

Creates a table with all stack classes set to the passed value.

val init : f:(stack_class -> 'a) -> 'a t

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

val copy : 'a t -> 'a t
val copy_values : from:'a t -> to_:'a t -> unit
val find : 'a t -> stack_class -> 'a
val replace : 'a t -> stack_class -> 'a -> unit
val update : 'a t -> stack_class -> f:('a -> 'a) -> unit
val iter : 'a t -> f:(stack_class -> 'a -> unit) -> unit
val fold : 'a t -> f:(stack_class -> 'a -> 'b -> 'b) -> init:'b -> 'b
val exists : 'a t -> f:(stack_class -> 'a -> bool) -> bool
val total_size_in_bytes_for_class : int t -> stack_class:stack_class -> int
val total_size_in_bytes : int t -> int
val offset_in_bytes : int t -> stack_class:stack_class -> slot:int -> int