<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <link rel="stylesheet" href="style.css" type="text/css"> <meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type"> <link rel="Start" href="index.html"> <link rel="previous" href="Reader.html"> <link rel="next" href="Scheduler.html"> <link rel="Up" href="index.html"> <link title="Index of types" rel=Appendix href="index_types.html"> <link title="Index of exceptions" rel=Appendix href="index_exceptions.html"> <link title="Index of values" rel=Appendix href="index_values.html"> <link title="Index of modules" rel=Appendix href="index_modules.html"> <link title="Index of module types" rel=Appendix href="index_module_types.html"> <link title="Async_print" rel="Chapter" href="Async_print.html"> <link title="Async_sys" rel="Chapter" href="Async_sys.html"> <link title="Epoll_file_descr_watcher" rel="Chapter" href="Epoll_file_descr_watcher.html"> <link title="Fd" rel="Chapter" href="Fd.html"> <link title="Fd_by_descr" rel="Chapter" href="Fd_by_descr.html"> <link title="File_descr_watcher_intf" rel="Chapter" href="File_descr_watcher_intf.html"> <link title="Import" rel="Chapter" href="Import.html"> <link title="Interruptor" rel="Chapter" href="Interruptor.html"> <link title="In_thread" rel="Chapter" href="In_thread.html"> <link title="Io_stats" rel="Chapter" href="Io_stats.html"> <link title="Process" rel="Chapter" href="Process.html"> <link title="Raw_fd" rel="Chapter" href="Raw_fd.html"> <link title="Raw_scheduler" rel="Chapter" href="Raw_scheduler.html"> <link title="Raw_signal_manager" rel="Chapter" href="Raw_signal_manager.html"> <link title="Reader" rel="Chapter" href="Reader.html"> <link title="Read_write" rel="Chapter" href="Read_write.html"> <link title="Scheduler" rel="Chapter" href="Scheduler.html"> <link title="Select_file_descr_watcher" rel="Chapter" href="Select_file_descr_watcher.html"> <link title="Shutdown" rel="Chapter" href="Shutdown.html"> <link title="Signal" rel="Chapter" href="Signal.html"> <link title="Signal_manager" rel="Chapter" href="Signal_manager.html"> <link title="Std" rel="Chapter" href="Std.html"> <link title="Syscall" rel="Chapter" href="Syscall.html"> <link title="Thread_pool" rel="Chapter" href="Thread_pool.html"> <link title="Thread_safe" rel="Chapter" href="Thread_safe.html"> <link title="Thread_safe_pipe" rel="Chapter" href="Thread_safe_pipe.html"> <link title="Unix_syscalls" rel="Chapter" href="Unix_syscalls.html"> <link title="Writer" rel="Chapter" href="Writer.html"><title>Read_write</title> </head> <body> <div class="navbar"><a class="pre" href="Reader.html" title="Reader">Previous</a> <a class="up" href="index.html" title="Index">Up</a> <a class="post" href="Scheduler.html" title="Scheduler">Next</a> </div> <h1>Module <a href="type_Read_write.html">Read_write</a></h1> <pre><span class="keyword">module</span> Read_write: <code class="code">sig</code> <a href="Read_write.html">..</a> <code class="code">end</code></pre><div class="info module top"> <code class="code">Read_write</code> is like <code class="code">Dirpair</code>, except "buy/sell" has been changed to "read/write".<br> </div> <hr width="100%"> <pre><span class="keyword">module</span> <a href="Read_write.Key.html">Key</a>: <code class="code">sig</code> <a href="Read_write.Key.html">..</a> <code class="code">end</code></pre> <pre><code><span id="TYPEany"><span class="keyword">type</span> <code class="type">('a, 'z)</code> any</span> = private {</code></pre><table class="typetable"> <tr> <td align="left" valign="top" > <code> </code></td> <td align="left" valign="top" > <code><span class="keyword">mutable </span><span id="TYPEELTany.read">read</span> : <code class="type">'a</code>;</code></td> </tr> <tr> <td align="left" valign="top" > <code> </code></td> <td align="left" valign="top" > <code><span class="keyword">mutable </span><span id="TYPEELTany.write">write</span> : <code class="type">'a</code>;</code></td> </tr></table> } <pre><span class="keyword">module</span> <a href="Read_write.Immutable.html">Immutable</a>: <code class="code">sig</code> <a href="Read_write.Immutable.html">..</a> <code class="code">end</code></pre> <pre><span class="keyword">module</span> <a href="Read_write.Read_only.html">Read_only</a>: <code class="code">sig</code> <a href="Read_write.Read_only.html">..</a> <code class="code">end</code></pre> <pre><span class="keyword">module</span> <a href="Read_write.Mutable.html">Mutable</a>: <code class="code">sig</code> <a href="Read_write.Mutable.html">..</a> <code class="code">end</code></pre> <pre><span id="TYPEt"><span class="keyword">type</span> <code class="type">'a</code> t</span> = <code class="type">'a <a href="Read_write.Immutable.html#TYPEt">Immutable.t</a></code> </pre> <pre><span id="VALcreate"><span class="keyword">val</span> create</span> : <code class="type">read:'a -> write:'a -> ('a, 'b) <a href="Read_write.html#TYPEany">any</a></code></pre> <pre><span id="VALcreatei"><span class="keyword">val</span> createi</span> : <code class="type">(<a href="Read_write.Key.html#TYPEt">Key.t</a> -> 'a) -> ('a, 'b) <a href="Read_write.html#TYPEany">any</a></code></pre> <pre><span id="VALcreate_both"><span class="keyword">val</span> create_both</span> : <code class="type">'a -> ('a, 'b) <a href="Read_write.html#TYPEany">any</a></code></pre> <pre><span id="VALcreate_fn"><span class="keyword">val</span> create_fn</span> : <code class="type">(unit -> 'a) -> ('a, 'b) <a href="Read_write.html#TYPEany">any</a></code></pre> <pre><span id="VALcreate_with"><span class="keyword">val</span> create_with</span> : <code class="type"><a href="Read_write.Key.html#TYPEt">Key.t</a> -> 'a -> zero:'a -> ('a, 'b) <a href="Read_write.html#TYPEany">any</a></code></pre> <pre><span id="VALcopy"><span class="keyword">val</span> copy</span> : <code class="type">('a, 'b) <a href="Read_write.html#TYPEany">any</a> -> ('a, 'c) <a href="Read_write.html#TYPEany">any</a></code></pre> <pre><span id="VALexists"><span class="keyword">val</span> exists</span> : <code class="type">('a, 'b) <a href="Read_write.html#TYPEany">any</a> -> f:('a -> bool) -> bool</code></pre> <pre><span id="VALfor_all"><span class="keyword">val</span> for_all</span> : <code class="type">('a, 'b) <a href="Read_write.html#TYPEany">any</a> -> f:('a -> bool) -> bool</code></pre> <pre><span id="VALiteri"><span class="keyword">val</span> iteri</span> : <code class="type">('a, 'b) <a href="Read_write.html#TYPEany">any</a> -> f:(<a href="Read_write.Key.html#TYPEt">Key.t</a> -> 'a -> unit) -> unit</code></pre> <pre><span id="VALiter"><span class="keyword">val</span> iter</span> : <code class="type">('a, 'b) <a href="Read_write.html#TYPEany">any</a> -> f:('a -> unit) -> unit</code></pre> <pre><span id="VALmapi"><span class="keyword">val</span> mapi</span> : <code class="type">('a, 'c) <a href="Read_write.html#TYPEany">any</a> -><br> f:(<a href="Read_write.Key.html#TYPEt">Key.t</a> -> 'a -> 'b) -> ('b, 'd) <a href="Read_write.html#TYPEany">any</a></code></pre> <pre><span id="VALmap"><span class="keyword">val</span> map</span> : <code class="type">('a, 'c) <a href="Read_write.html#TYPEany">any</a> -> f:('a -> 'b) -> ('b, 'd) <a href="Read_write.html#TYPEany">any</a></code></pre> <pre><span id="VALfoldi"><span class="keyword">val</span> foldi</span> : <code class="type">('a, 'c) <a href="Read_write.html#TYPEany">any</a> -> 'b -> f:('b -> <a href="Read_write.Key.html#TYPEt">Key.t</a> * 'a -> 'b) -> 'b</code></pre> <pre><span id="VALfold"><span class="keyword">val</span> fold</span> : <code class="type">('a, 'c) <a href="Read_write.html#TYPEany">any</a> -> 'b -> f:('b -> 'a -> 'b) -> 'b</code></pre> <pre><span id="VALget"><span class="keyword">val</span> get</span> : <code class="type">('a, 'b) <a href="Read_write.html#TYPEany">any</a> -> <a href="Read_write.Key.html#TYPEt">Key.t</a> -> 'a</code></pre> <pre><span id="VALreplace"><span class="keyword">val</span> replace</span> : <code class="type">'a <a href="Read_write.Mutable.html#TYPEt">Mutable.t</a> -> <a href="Read_write.Key.html#TYPEt">Key.t</a> -> f:('a -> 'a) -> unit</code></pre> <pre><span id="VALreplace_all"><span class="keyword">val</span> replace_all</span> : <code class="type">'a <a href="Read_write.Mutable.html#TYPEt">Mutable.t</a> -> f:(<a href="Read_write.Key.html#TYPEt">Key.t</a> -> 'a -> 'a) -> unit</code></pre> <pre><span id="VALset"><span class="keyword">val</span> set</span> : <code class="type">'a <a href="Read_write.Mutable.html#TYPEt">Mutable.t</a> -> <a href="Read_write.Key.html#TYPEt">Key.t</a> -> 'a -> unit</code></pre> <pre><span class="keyword">module</span> <a href="Read_write.Export.html">Export</a>: <code class="code">sig</code> <a href="Read_write.Export.html">..</a> <code class="code">end</code></pre> <pre><span id="VALany_of_sexp"><span class="keyword">val</span> any_of_sexp</span> : <code class="type">(Sexplib.Sexp.t -> 'a) -><br> (Sexplib.Sexp.t -> 'z) -> Sexplib.Sexp.t -> ('a, 'z) <a href="Read_write.html#TYPEany">any</a></code></pre> <pre><span id="VALsexp_of_any"><span class="keyword">val</span> sexp_of_any</span> : <code class="type">('a -> Sexplib.Sexp.t) -><br> ('z -> Sexplib.Sexp.t) -> ('a, 'z) <a href="Read_write.html#TYPEany">any</a> -> Sexplib.Sexp.t</code></pre> <pre><span id="VALt_of_sexp"><span class="keyword">val</span> t_of_sexp</span> : <code class="type">(Sexplib.Sexp.t -> 'a) -> Sexplib.Sexp.t -> 'a <a href="Read_write.html#TYPEt">t</a></code></pre> <pre><span id="VALsexp_of_t"><span class="keyword">val</span> sexp_of_t</span> : <code class="type">('a -> Sexplib.Sexp.t) -> 'a <a href="Read_write.html#TYPEt">t</a> -> Sexplib.Sexp.t</code></pre></body></html>