1856bb87fa88e90d377aa6e3e5713ee4d9f8adeb
[tatoo.git] / src / node_list.ml
1 (***********************************************************************)
2 (*                                                                     *)
3 (*                               TAToo                                 *)
4 (*                                                                     *)
5 (*                     Kim Nguyen, LRI UMR8623                         *)
6 (*                   Université Paris-Sud & CNRS                       *)
7 (*                                                                     *)
8 (*  Copyright 2010-2013 Université Paris-Sud and Centre National de la *)
9 (*  Recherche Scientifique. All rights reserved.  This file is         *)
10 (*  distributed under the terms of the GNU Lesser General Public       *)
11 (*  License, with the special exception on linking described in file   *)
12 (*  ../LICENSE.                                                        *)
13 (*                                                                     *)
14 (***********************************************************************)
15
16 module type S =
17   sig
18     type node
19     type t
20     type iterator
21
22     val create : unit -> t
23     val add : node -> t -> unit
24     val push_front : node -> t -> unit
25     val push_back : node -> t -> unit
26     val pop : t -> node
27     val append : t -> t -> t
28     val iter : (node -> unit) -> t -> unit
29     val length : t -> int
30     val is_empty : t -> bool
31     val head : t -> iterator
32     val last : t -> iterator
33     val next : iterator -> iterator
34     val value : iterator -> node
35     val finished : iterator -> bool
36     val copy : t -> t
37   end