Module Tree_adv.Overlays
Tools for overlay aware trees
type interval=|Bet of int * int[|a,b|]
|Bef of int]|-oo,a|]
|Aft of int[|a,+oo|[
|Nevemptyset
|AlwN
This type describes an interval of discrete points of time
val in_interval : int -> interval -> booltest if an integer is in an interval
val min_interval : int -> interval -> intThe minimum between the integer argument and the beginning of the interval; returns the integer argument in the cases
NevandAlw
val max_interval : int -> interval -> intThe dual of
min_interval
val min_tree : ('a -> interval) -> 'a t -> intThe first moment of the tree to appear, not considering
NevandAlw
val max_tree : ('a -> interval) -> 'a t -> intThe last moment of the tree to appear, not considering
NevandAlw
type 'a spec= (interval * 'a) listA spec is a list of objects associated with a visibility interval
val assoq : int -> 'a spec -> 'areturns the first element which is visible in the specification; raises
Not_foundif no element is visible