X-Git-Url: http://git.nguyen.vg/gitweb/?p=tatoo.git;a=blobdiff_plain;f=src%2Futils%2Fuid.mli;fp=src%2Futils%2Fuid.mli;h=0000000000000000000000000000000000000000;hp=286caccbd9ebe747a7ac6174ab68f6145f6cb8d7;hb=b00bff88c7902e828804c06b7f9dc55222fdc84e;hpb=03b6a364e7240ca827585e7baff225a0aaa33bc6 diff --git a/src/utils/uid.mli b/src/utils/uid.mli deleted file mode 100644 index 286cacc..0000000 --- a/src/utils/uid.mli +++ /dev/null @@ -1,45 +0,0 @@ -(***********************************************************************) -(* *) -(* TAToo *) -(* *) -(* Kim Nguyen, LRI UMR8623 *) -(* Université Paris-Sud & CNRS *) -(* *) -(* Copyright 2010-2012 Université Paris-Sud and Centre National de la *) -(* Recherche Scientifique. All rights reserved. This file is *) -(* distributed under the terms of the GNU Lesser General Public *) -(* License, with the special exception on linking described in file *) -(* ../LICENSE. *) -(* *) -(***********************************************************************) - -(* - Time-stamp: -*) - -(** This modules implements unique identifiers represented by integers *) - -type t = private int -(** The type of unique identifiers. *) - -exception Overflow -(** Raised when the internal counters for IDs overflows. *) - -val make_maker : unit -> (unit -> t) -(** Returns an uid generator. - [make_maker ()] returns a function that generates unique ids. Raises - [Overflow] if the internal counter overflows. -*) - -val dummy : t -(** A dummy identifier, guaranteed to be distinct from any value - returned by a generator. -*) - -external to_int : t -> int = "%identity" -(** Convert a unique id to an integer *) - -(**/**) - -external of_int : int -> t = "%identity" -(** May break the invariant, use with caution *)