package qcow-types

  1. Overview
  2. Docs

Module Qcow_bitmapSource

Sourcetype elt = int64

The type of the set elements

Sourcetype interval

An interval: a range (x, y) of set values where all the elements from x to y inclusive are in the set

Sourcemodule Interval : sig ... end
Sourcetype t

The type of sets

Sourceval make_empty : initial_size:int -> maximum_size:int -> t

make_empty n creates a set of initial_size which can be resized up to maximum size, initially empty

Sourceval make_full : initial_size:int -> maximum_size:int -> t

make_full n creates a set of initial_size which can be resized up to maximum size, initially full

Sourceval copy : t -> t

copy t returns a duplicate of t

Sourceval fold : (interval -> 'a -> 'a) -> t -> 'a -> 'a

fold f t acc folds f across all the intervals in t

Sourceval fold_s : (interval -> 'a -> 'a Lwt.t) -> t -> 'a -> 'a Lwt.t

fold_s f t acc folds f across all the intervals in t

Sourceval add : interval -> t -> unit

add interval t adds the interval to t in-place

Sourceval remove : interval -> t -> unit

remove interval t removes the interval from t in-place

Sourceval min_elt : t -> elt

min_elt t returns the smallest element, or raises Not_found if the set is empty.

Sourceval to_string : t -> string
Sourcemodule Test : sig ... end