Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
include module type of struct include Robot_state end
type t = Robot_state.t
val sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.t
val empty : t
empty
is a t
with no data
mem t sd
returns whether or not t
has data stored for sd
. O(log(n)) time complexity in size of t
.
val memp : t -> Sd.Packed.t -> bool
memp t packed
returns whether or not t
has data stored for packed
. O(log(n)) time complexity in size of t
.
find t sd
returns Some
(the current binding) of sd
in t
, or None
if no such binding exists. O(log(n)) time complexity in size of t
.
set t sd v
sets the given sd
to v
. O(log(n)) time complexity in size of t
.
remove t sd
removes the current binding for sd
if such binding exists. O(log(n)) time complexity in size of t
.
val removep : t -> Sd.Packed.t -> t
remove t packed
removes the current binding for packed
if such binding exists. O(log(n)) time complexity in size of t
.
use t1 ?to_use t2
calls set t1 (get t2 sd)
for each sd
where (a) there exists a binding in t2
and (b) it is in ?to_use
or ?to_use
is None
. O(m*log(n + m)) time complexity where n is the size of t1
and m is the size of t2
.