Debian Codegraph @

clib/writeOnceArray.mli

raw symbols SCIP
1 (************************************************************************)
2 (* * The Rocq Prover / The Rocq Development Team *)
3 (* v * Copyright INRIA, CNRS and contributors *)
4 (* <O___,, * (see version control and CREDITS file for authors & dates) *)
5 (* \VV/ **************************************************************)
6 (* // * This file is distributed under the terms of the *)
7 (* * GNU Lesser General Public License Version 2.1 *)
8 (* * (see LICENSE file for the text of the license) *)
9 (************************************************************************)
10
11 (** Like a Parray, but the old pointers are invalidated instead of updated *)
12 type 'a t
13 val make : int -> 'a t
14
15 val get : int -> 'a t -> 'a option
16
17 val is_filled : int -> 'a t -> bool
18
19 val add : int -> 'a -> 'a t -> 'a t
20
21 val fill_remaining : 'a -> 'a t -> 'a t
22
23 val to_array : 'a t -> 'a array
24
25 val to_array_opt : 'a t -> 'a array option
26 (** The NoDupArray is still invalidated if the result is None *)
27
28 module Internal : sig
29 val unsafe_to_array : 'a t -> 'a option array
30 end