2017-02-24 20:17:53 +04:00
|
|
|
(**************************************************************************)
|
|
|
|
(* *)
|
2018-02-06 00:17:03 +04:00
|
|
|
(* Copyright (c) 2014 - 2018. *)
|
2017-02-24 20:17:53 +04:00
|
|
|
(* Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
|
|
|
|
(* *)
|
|
|
|
(* All rights reserved. No warranty, explicit or implicit, provided. *)
|
|
|
|
(* *)
|
|
|
|
(**************************************************************************)
|
|
|
|
|
|
|
|
open Store_sigs
|
|
|
|
|
|
|
|
module Make_value (V : ENCODED_VALUE) : VALUE with type t = V.t
|
|
|
|
|
2017-04-19 23:46:10 +04:00
|
|
|
module Raw_value : VALUE with type t = MBytes.t
|
|
|
|
|
2017-02-24 20:17:53 +04:00
|
|
|
module Make_single_store (S : STORE) (N : NAME) (V : VALUE)
|
|
|
|
: SINGLE_STORE with type t = S.t
|
|
|
|
and type value = V.t
|
|
|
|
|
|
|
|
module Make_substore (S : STORE) (N : NAME)
|
|
|
|
: STORE with type t = S.t
|
|
|
|
|
|
|
|
module Make_set (S : STORE) (I : INDEX)
|
|
|
|
: SET_STORE with type t = S.t and type elt = I.t
|
|
|
|
|
|
|
|
module Make_buffered_set
|
|
|
|
(S : STORE) (I : INDEX) (Set : Set.S with type elt = I.t)
|
|
|
|
: BUFFERED_SET_STORE with type t = S.t
|
2017-11-13 19:34:00 +04:00
|
|
|
and type elt = I.t
|
|
|
|
and module Set = Set
|
2017-02-24 20:17:53 +04:00
|
|
|
|
|
|
|
module Make_map
|
|
|
|
(S : STORE) (I : INDEX) (V : VALUE)
|
|
|
|
: MAP_STORE with type t = S.t
|
|
|
|
and type key = I.t
|
|
|
|
and type value = V.t
|
|
|
|
|
|
|
|
module Make_buffered_map
|
|
|
|
(S : STORE) (I : INDEX) (V : VALUE) (Map : Map.S with type key = I.t)
|
|
|
|
: BUFFERED_MAP_STORE with type t = S.t
|
|
|
|
and type key = I.t
|
|
|
|
and type value = V.t
|
|
|
|
and module Map = Map
|
|
|
|
|
|
|
|
module Make_indexed_substore (S : STORE) (I : INDEX)
|
|
|
|
: INDEXED_STORE with type t = S.t
|
|
|
|
and type key = I.t
|
2017-03-30 15:16:21 +04:00
|
|
|
|
|
|
|
module Integer_index : INDEX with type t = int
|