Frama-C API - External
External view of the tree, with accessors. Automatically built by the functor Open from an Internal datatype. When a generic datatype is a combination of several other datatypes, these functions allow interacting with its subparts. Note that their behavior is undefined if the overall datatype contains several times the same datatype.
val mem : 'a key -> boolTests whether a key belongs to the module.
For a key of type k key:
- if the values of type
tcontain a subpart of typekfrom a module identified by the key, thenget keyreturns an accessor for it. - otherwise,
get keyreturns None.
For a key of type k key:
- if the values of type
tcontain a subpart of typekfrom a module identified by the key, thenset key v treturns the valuetin which this subpart has been replaced byv. - otherwise,
set key _is the identity function.
Iterators on the components of a structure.
val iter : polymorphic_iter_fun -> t -> unitval fold : 'b polymorphic_fold_fun -> t -> 'b -> 'bval map : polymorphic_map_fun -> t -> t