Module Register.SGState


module SGState: Computation.OptionRef(Project.Datatype.Imperative(sig
include SGraph
val name : string
end))(sig
val name : string
val dependencies : Project.Computation.t list
end)

include Computation.REF_OUTPUT
val memo : ?change:(data -> data) -> (unit -> data) -> data
Memoization. Compute on need the stored value. If the data is already computed (i.e. is not None), it is possible to change with change.
val map : (data -> data) -> data option
val may : (data -> unit) -> unit
val get_option : unit -> data option
Since Beryllium-20090901