<!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=utf-8" http-equiv="Content-Type">
<link rel="Start" href="index.html">
<link rel="previous" href="Immutable_types.Mergeable.html">
<link rel="next" href="Immutable_types.DCounter.html">
<link rel="Up" href="Immutable_types.html">
<link title="Index of types" rel=Appendix href="index_types.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="Crdt" rel="Chapter" href="Crdt.html">
<link title="I_IntVector" rel="Chapter" href="I_IntVector.html">
<link title="I_GCounter" rel="Chapter" href="I_GCounter.html">
<link title="I_PNCounter" rel="Chapter" href="I_PNCounter.html">
<link title="I_GSet" rel="Chapter" href="I_GSet.html">
<link title="I_ORSet" rel="Chapter" href="I_ORSet.html">
<link title="I_USet" rel="Chapter" href="I_USet.html">
<link title="Immutable_types" rel="Chapter" href="Immutable_types.html">
<link title="M_GCounter" rel="Chapter" href="M_GCounter.html">
<link title="M_GSet" rel="Chapter" href="M_GSet.html">
<link title="M_IntVector" rel="Chapter" href="M_IntVector.html">
<link title="M_ORSet" rel="Chapter" href="M_ORSet.html">
<link title="M_PNCounter" rel="Chapter" href="M_PNCounter.html">
<link title="M_USet" rel="Chapter" href="M_USet.html">
<link title="Mutable_types" rel="Chapter" href="Mutable_types.html"><title>Immutable_types.IVector</title>
</head>
<body>
<div class="navbar"><a class="pre" href="Immutable_types.Mergeable.html" title="Immutable_types.Mergeable">Previous</a>
&nbsp;<a class="up" href="Immutable_types.html" title="Immutable_types">Up</a>
&nbsp;<a class="post" href="Immutable_types.DCounter.html" title="Immutable_types.DCounter">Next</a>
</div>
<h1>Module type <a href="type_Immutable_types.IVector.html">Immutable_types.IVector</a></h1>

<pre><span class="keyword">module type</span> IVector = <code class="code"><span class="keyword">sig</span></code> <a href="Immutable_types.IVector.html">..</a> <code class="code"><span class="keyword">end</span></code></pre><div class="info modtype top">
Vector Clock and increment-only counter types. Supports merging and
    incrementing. The <code class="code">elt</code> type must be supplied when including.<br>
</div>
<hr width="100%">

<pre><span class="keyword">include</span> <a href="Immutable_types.Mergeable.html">Immutable_types.Mergeable</a></pre>

<pre><span id="TYPEelt"><span class="keyword">type</span> <code class="type"></code>elt</span> </pre>
<div class="info ">
Type of the contents of an <code class="code"><span class="constructor">IVector</span></code><br>
</div>


<pre><span id="VALmake_in_range"><span class="keyword">val</span> make_in_range</span> : <code class="type">int -> t</code></pre><div class="info ">
<code class="code">make_in_range n</code> creates a new <code class="code"><span class="constructor">IVector</span></code> of size ranging from <code class="code">0</code> to <code class="code">n</code>.
      being <code class="code">n</code> greater than 0 and smaller than 2^30.
<p>

      When merging two CRDTs of different sizes, the smaller one grows and pads
      the remaining space with zeros.<br>
</div>

<pre><span id="VALquery"><span class="keyword">val</span> query</span> : <code class="type">t -> <a href="Immutable_types.IVector.html#TYPEelt">elt</a></code></pre><div class="info ">
<code class="code">query t</code> returns the raw state of <code class="code">t</code><br>
</div>

<pre><span id="VALincr"><span class="keyword">val</span> incr</span> : <code class="type">t -> t</code></pre><div class="info ">
<code class="code">incr t</code> increments the position associated with the <code class="code">numsite</code> of <code class="code">t</code>.
      See <a href="I_IntVector.html"><code class="code"><span class="constructor">I_IntVector</span></code></a> for more information on <code class="code">numsites</code>.<br>
</div>
</body></html>