Frama-C API - Set
A standard OCaml set signature extended with datatype operations.
include Stdlib.Set.S
val mem : elt -> t -> bool
val remove : elt -> t -> t
val disjoint : t -> t -> bool
val subset : t -> t -> bool
val iter : (elt -> unit) -> t -> unit
val fold : (elt -> 'a -> 'a) -> t -> 'a -> 'a
val for_all : (elt -> bool) -> t -> bool
val exists : (elt -> bool) -> t -> bool
val filter : (elt -> bool) -> t -> t
val filter_map : (elt -> elt option) -> t -> t
val partition : (elt -> bool) -> t -> t * t
val elements : t -> elt list
val min_elt_opt : t -> elt option
val max_elt_opt : t -> elt option
val choose_opt : t -> elt option
val split : elt -> t -> t * bool * t
val find_opt : elt -> t -> elt option
val find_first : (elt -> bool) -> t -> elt
val find_first_opt : (elt -> bool) -> t -> elt option
val find_last : (elt -> bool) -> t -> elt
val find_last_opt : (elt -> bool) -> t -> elt option
val of_list : elt list -> t
val to_seq_from : elt -> t -> elt Stdlib.Seq.t
val to_seq : t -> elt Stdlib.Seq.t
val to_rev_seq : t -> elt Stdlib.Seq.t
val add_seq : elt Stdlib.Seq.t -> t -> t
val of_seq : elt Stdlib.Seq.t -> t
val nearest_elt_le : elt -> t -> elt
val nearest_elt_ge : elt -> t -> elt
include S with type t := t
include S_no_copy with type t := t
include Ty with type t := t
Unique name of the datatype.
Packed version of the descriptor.
List of representants of the descriptor.
val equal : t -> t -> bool
Equality: same spec than Stdlib.(=)
.
val compare : t -> t -> int
Comparison: same spec than Stdlib.compare
.
Hash function: same spec than Hashtbl.hash
.
val pretty : Stdlib.Format.formatter -> t -> unit
Pretty print each value in an user-friendly way.
mem_project f x
must return true
iff there is a value p
of type Project.t
in x
such that f p
returns true
.
Deep copy: no possible sharing between x
and copy x
.