X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=sidebyside;f=helm%2Fsoftware%2Fcomponents%2Fcic%2Fdiscrimination_tree.mli;h=a311293068247737d0c0232e7c5dae0722e6ce8b;hb=b378b7f4f2a3a897c4b69f44d4d1d54cc4d0aa56;hp=ae6fe0347ccf9068f37003534d599e1edcaaf9dd;hpb=cab8b6ddde6291eb2bccad550bbd4634c00986ae;p=helm.git diff --git a/helm/software/components/cic/discrimination_tree.mli b/helm/software/components/cic/discrimination_tree.mli index ae6fe0347..a31129306 100644 --- a/helm/software/components/cic/discrimination_tree.mli +++ b/helm/software/components/cic/discrimination_tree.mli @@ -48,20 +48,27 @@ end module CicIndexable : Indexable with type input = Cic.term and type constant_name = UriManager.uri -module DiscriminationTreeIndexing : - functor (I: Indexable) -> - functor (A : Set.S) -> +module type DiscriminationTree = sig - type t - val iter : t -> (I.constant_name path -> A.t -> unit) -> unit + type input + type data + type dataset + type constant_name + type t + + val iter : t -> (constant_name path -> dataset -> unit) -> unit val empty : t - val index : t -> I.input -> A.elt -> t - val remove_index : t -> I.input -> A.elt -> t - val in_index : t -> I.input -> (A.elt -> bool) -> bool - val retrieve_generalizations : t -> I.input -> A.t - val retrieve_unifiables : t -> I.input -> A.t + val index : t -> input -> data -> t + val remove_index : t -> input -> data -> t + val in_index : t -> input -> (data -> bool) -> bool + val retrieve_generalizations : t -> input -> dataset + val retrieve_unifiables : t -> input -> dataset end +module Make (I : Indexable) (A : Set.S) : DiscriminationTree +with type constant_name = I.constant_name and type input = I.input +and type data = A.elt and type dataset = A.t +