From ce800b0b7acf3940cad3afc5b1d2296155affb1c Mon Sep 17 00:00:00 2001 From: Stefano Zacchiroli Date: Wed, 19 Jul 2006 10:43:43 +0000 Subject: [PATCH] added sets of uri pairs (useful for edges between uris) currently commented since not used ... --- components/urimanager/uriManager.ml | 13 +++++++++++++ components/urimanager/uriManager.mli | 1 + 2 files changed, 14 insertions(+) diff --git a/components/urimanager/uriManager.ml b/components/urimanager/uriManager.ml index eb0388cc2..c0da8eb4b 100644 --- a/components/urimanager/uriManager.ml +++ b/components/urimanager/uriManager.ml @@ -220,6 +220,19 @@ end module UriSet = Set.Make (OrderedUri) +(* +module OrderedUriPair = +struct + type t = uri * uri + let compare (u11, u12) (u21, u22) = + match compare u11 u21 with + | 0 -> compare u12 u22 + | x -> x +end + +module UriPairSet = Set.Make (OrderedUriPair) +*) + module HashedUri = struct type t = uri diff --git a/components/urimanager/uriManager.mli b/components/urimanager/uriManager.mli index 1b8317816..0d4fcb419 100644 --- a/components/urimanager/uriManager.mli +++ b/components/urimanager/uriManager.mli @@ -67,6 +67,7 @@ val univgraphuri_of_uri : uri -> uri val uri_of_uriref : uri -> int -> int option -> uri module UriSet: Set.S with type elt = uri +(*module UriPairSet: Set.S with type elt = uri * uri*) module UriHashtbl : Hashtbl.S with type key = uri -- 2.39.2