Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 07ec4e1006689824c37b6ae5b69626c7 > files > 70

ocsigenserver-doc-2.2.0-5.mga4.noarch.rpm

<!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="Ocsigen_loader.html">
<link rel="next" href="Http_headers.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 class methods" rel=Appendix href="index_methods.html">
<link title="Index of classes" rel=Appendix href="index_classes.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="Ocsigen_cache" rel="Chapter" href="Ocsigen_cache.html">
<link title="Ocsigen_lib_base" rel="Chapter" href="Ocsigen_lib_base.html">
<link title="Ocsigen_lib" rel="Chapter" href="Ocsigen_lib.html">
<link title="Ocsigen_config" rel="Chapter" href="Ocsigen_config.html">
<link title="Ocsigen_getcommandline" rel="Chapter" href="Ocsigen_getcommandline.html">
<link title="Ocsigen_messages" rel="Chapter" href="Ocsigen_messages.html">
<link title="Ocsigen_stream" rel="Chapter" href="Ocsigen_stream.html">
<link title="Ocsigen_loader" rel="Chapter" href="Ocsigen_loader.html">
<link title="Polytables" rel="Chapter" href="Polytables.html">
<link title="Http_headers" rel="Chapter" href="Http_headers.html">
<link title="Ocsigen_http_frame" rel="Chapter" href="Ocsigen_http_frame.html">
<link title="Ocsigen_headers" rel="Chapter" href="Ocsigen_headers.html">
<link title="Framepp" rel="Chapter" href="Framepp.html">
<link title="Ocsigen_http_com" rel="Chapter" href="Ocsigen_http_com.html">
<link title="Ocsigen_charset_mime" rel="Chapter" href="Ocsigen_charset_mime.html">
<link title="Ocsigen_senders" rel="Chapter" href="Ocsigen_senders.html">
<link title="Ocsigen_cookies" rel="Chapter" href="Ocsigen_cookies.html">
<link title="Ocsigen_extensions" rel="Chapter" href="Ocsigen_extensions.html">
<link title="Ocsigen_parseconfig" rel="Chapter" href="Ocsigen_parseconfig.html">
<link title="Ocsigen_http_client" rel="Chapter" href="Ocsigen_http_client.html">
<link title="Ocsigen_local_files" rel="Chapter" href="Ocsigen_local_files.html">
<link title="Ocsigen_server" rel="Chapter" href="Ocsigen_server.html">
<link title="Ocsigen_comet" rel="Chapter" href="Ocsigen_comet.html">
<link title="Accesscontrol" rel="Chapter" href="Accesscontrol.html">
<link title="Authbasic" rel="Chapter" href="Authbasic.html">
<link title="Ocsipersist" rel="Chapter" href="Ocsipersist.html"><title>Polytables</title>
</head>
<body>
<div class="navbar"><a class="pre" href="Ocsigen_loader.html" title="Ocsigen_loader">Previous</a>
&nbsp;<a class="up" href="index.html" title="Index">Up</a>
&nbsp;<a class="post" href="Http_headers.html" title="Http_headers">Next</a>
</div>
<h1>Module <a href="type_Polytables.html">Polytables</a></h1>

<pre><span class="keyword">module</span> Polytables: <code class="code">sig</code> <a href="Polytables.html">..</a> <code class="code">end</code></pre><div class="info module top">
Polymorphic tables (using Map)<br>
<b>Author(s):</b> Vincent Balat, Jérôme Vouillon<br>
</div>
<hr width="100%">
<br>
Warning: this module is not thread safe!<br>

<pre><span id="TYPEkey"><span class="keyword">type</span> <code class="type">'a</code> key</span> </pre>
<div class="info ">
The type of key for a piece of data of type 'a<br>
</div>


<pre><span id="TYPEt"><span class="keyword">type</span> <code class="type"></code>t</span> </pre>
<div class="info ">
The type of tables<br>
</div>


<pre><span id="VALcreate"><span class="keyword">val</span> create</span> : <code class="type">unit -> <a href="Polytables.html#TYPEt">t</a></code></pre><div class="info ">
creates a new table<br>
</div>

<pre><span id="VALmake_key"><span class="keyword">val</span> make_key</span> : <code class="type">unit -> 'a <a href="Polytables.html#TYPEkey">key</a></code></pre><div class="info ">
create a new key for each data you want to save<br>
</div>

<pre><span id="VALset"><span class="keyword">val</span> set</span> : <code class="type">table:<a href="Polytables.html#TYPEt">t</a> -> key:'a <a href="Polytables.html#TYPEkey">key</a> -> value:'a -> unit</code></pre><div class="info ">
<code class="code">set t k v</code> associates <code class="code">v</code> to <code class="code">k</code> in <code class="code">t</code><br>
</div>

<pre><span id="VALget"><span class="keyword">val</span> get</span> : <code class="type">table:<a href="Polytables.html#TYPEt">t</a> -> key:'a <a href="Polytables.html#TYPEkey">key</a> -> 'a</code></pre><div class="info ">
<code class="code">get t k</code> returns the current binding of <code class="code">k</code> in <code class="code">t</code> or raises <code class="code">Not_found</code><br>
</div>

<pre><span id="VALremove"><span class="keyword">val</span> remove</span> : <code class="type">table:<a href="Polytables.html#TYPEt">t</a> -> key:'a <a href="Polytables.html#TYPEkey">key</a> -> unit</code></pre><div class="info ">
<code class="code">remove t k</code> remove the current binding of <code class="code">k</code> in <code class="code">t</code> if it exists<br>
</div>

<pre><span id="VALclear"><span class="keyword">val</span> clear</span> : <code class="type">table:<a href="Polytables.html#TYPEt">t</a> -> unit</code></pre><div class="info ">
<code class="code">clear t</code> remove all data from t<br>
</div>
</body></html>