Abstract result sets beind a Node_list interface.
[tatoo.git] / src / node_list.ml
diff --git a/src/node_list.ml b/src/node_list.ml
new file mode 100644 (file)
index 0000000..2219d5b
--- /dev/null
@@ -0,0 +1,25 @@
+(***********************************************************************)
+(*                                                                     *)
+(*                               TAToo                                 *)
+(*                                                                     *)
+(*                     Kim Nguyen, LRI UMR8623                         *)
+(*                   Université Paris-Sud & CNRS                       *)
+(*                                                                     *)
+(*  Copyright 2010-2013 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.                                                        *)
+(*                                                                     *)
+(***********************************************************************)
+
+module type S =
+  sig
+    type node
+    type t
+
+    val create : unit -> t
+    val add : node -> t -> t
+    val iter : (node -> unit) -> t -> unit
+    val length : t -> int
+  end