This file is indexed.

/usr/lib/ocaml/ocsigenserver/polytables.mli is in libocsigenserver-ocaml-dev 2.7-1+b4.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
(* Ocsigen
 * Copyright (C) 2009
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, with linking exception;
 * either version 2.1 of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*)
(**
   Polymorphic tables (using Map)
   @author Vincent Balat
   @author Jérôme Vouillon
*)



(** Warning: this module is not thread safe! *)

(** The type of key for a piece of data of type 'a *)
type 'a key

(** The type of tables *)
type t

(** creates a new table *)
val create : unit -> t

(** create a new key for each data you want to save *)
val make_key : unit -> 'a key

(** [set t k v] associates [v] to [k] in [t] *)
val set : table:t -> key:'a key -> value:'a -> unit

(** [get t k] returns the current binding of [k] in [t] or raises [Not_found] *)
val get : table:t -> key:'a key -> 'a

(** [remove t k] remove the current binding of [k] in [t] if it exists *)
val remove : table:t -> key:'a key -> unit

(** [clear t] remove all data from t *)
val clear : table:t -> unit