X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Flambda-delta%2Fbasic_rg%2FbrgEnvironment.ml;fp=helm%2Fsoftware%2Flambda-delta%2Fbasic_rg%2FbrgEnvironment.ml;h=0000000000000000000000000000000000000000;hb=f12f1b61a608140a65990d36045d978575b2dcb0;hp=121da88da4d54e955fa480e68aa88ea31048704c;hpb=2b1375e4b44e2ef351a6341a5bb0a4823e8daae5;p=helm.git diff --git a/helm/software/lambda-delta/basic_rg/brgEnvironment.ml b/helm/software/lambda-delta/basic_rg/brgEnvironment.ml deleted file mode 100644 index 121da88da..000000000 --- a/helm/software/lambda-delta/basic_rg/brgEnvironment.ml +++ /dev/null @@ -1,35 +0,0 @@ -(* - ||M|| This file is part of HELM, an Hypertextual, Electronic - ||A|| Library of Mathematics, developed at the Computer Science - ||T|| Department, University of Bologna, Italy. - ||I|| - ||T|| HELM is free software; you can redistribute it and/or - ||A|| modify it under the terms of the GNU General Public License - \ / version 2 or (at your option) any later version. - \ / This software is distributed as is, NO WARRANTY. - V_______________________________________________________________ *) - -module U = NUri -module H = U.UriHash -module Y = Entity -module B = Brg - -let hsize = 7000 -let env = H.create hsize - -(* Internal functions *******************************************************) - -let get_age = - let age = ref 0 in - fun () -> incr age; !age - -(* Interface functions ******************************************************) - -(* decps *) -let set_entity (a, uri, b) = - let age = get_age () in - let entity = (Y.Apix age :: a), uri, b in - H.add env uri entity; entity - -let get_entity uri = - try H.find env uri with Not_found -> [], uri, Y.Void