git @ Cat's Eye Technologies pibfi / master doc / pibfi_tape_dynarray.html
master

Tree @master (Download .tar.gz)

pibfi_tape_dynarray.html @masterraw · history · blame

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Module pibfi_tape_dynarray</title>

</head>
<body bgcolor="white">
<h1>Module pibfi_tape_dynarray</h1>
<ul><li>
<a href="#index">Function index</a></li><li>
<a href="#exported">Exported functions</a></li></ul>

<h2>Description</h2>
dynarray backend for tape ADT for <code>pibfi</code>.
 

<h2><a name="index">Function Index</a></h2>

<table width="100%" border="1"><tr><th colspan="2" align="left">Exported Functions</th></tr>
<tr><td><a href="#decrement-2">decrement/2</a></td><td>Decrements the value at the current position on the tape N times.</td></tr>
<tr><td><a href="#head-1">head/1</a></td><td/></tr>
<tr><td><a href="#increment-2">increment/2</a></td><td>Increments the value at the current position on the tape N times.</td></tr>
<tr><td><a href="#left-2">left/2</a></td><td>Moves the read/write head N positions left on the tape.</td></tr>
<tr><td><a href="#new-1">new/1</a></td><td>Creates and returns a new dynarray-backed tape.</td></tr>
<tr><td><a href="#peek-2">peek/2</a></td><td/></tr>
<tr><td><a href="#poke-3">poke/3</a></td><td/></tr>
<tr><td><a href="#read-1">read/1</a></td><td>Returns the value at the current position on the tape.</td></tr>
<tr><td><a href="#right-2">right/2</a></td><td>Moves the read/write head N positions right on the tape.</td></tr>
<tr><td><a href="#write-2">write/2</a></td><td>Places the given value at the current position on the tape.</td></tr>
</table>

<h2><a name="exported">Exported Functions</a></h2>

<h3><a name="decrement-2">decrement/2</a></h3>

<p><code>decrement(<a href="#type-tape">tape()</a>, N::integer()) -> <a href="#type-tape">tape()</a></code></p>
<p>Decrements the value at the current position on the tape N times.</p>

<h3><a name="head-1">head/1</a></h3>

<p><code>head(Arg1) -> term()</code></p>
<p> </p>

<h3><a name="increment-2">increment/2</a></h3>

<p><code>increment(<a href="#type-tape">tape()</a>, N::integer()) -> <a href="#type-tape">tape()</a></code></p>
<p>Increments the value at the current position on the tape N times.</p>

<h3><a name="left-2">left/2</a></h3>

<p><code>left(<a href="#type-tape">tape()</a>, N::integer()) -> {<a href="#type-tape">tape()</a>, integer()}</code></p>
<p>Moves the read/write head N positions left on the tape.</p>

<h3><a name="new-1">new/1</a></h3>

<p><code>new([<a href="#type-option">option()</a>]) -> <a href="#type-tape">tape()</a><ul><li><a name="type-option">option()</a> = {atom(), term()}</li><li><a name="type-tape">tape()</a> = <a href="#type-tape">tape()</a></li></ul></code></p>
<p>Creates and returns a new dynarray-backed tape.</p>

<h3><a name="peek-2">peek/2</a></h3>

<p><code>peek(Arg1, Arg2) -> term()</code></p>
<p> </p>

<h3><a name="poke-3">poke/3</a></h3>

<p><code>poke(Arg1, Arg2, Arg3) -> term()</code></p>
<p> </p>

<h3><a name="read-1">read/1</a></h3>

<p><code>read(<a href="#type-tape">tape()</a>) -> integer()</code></p>
<p>Returns the value at the current position on the tape.</p>

<h3><a name="right-2">right/2</a></h3>

<p><code>right(<a href="#type-tape">tape()</a>, N::integer()) -> {<a href="#type-tape">tape()</a>, integer()}</code></p>
<p>Moves the read/write head N positions right on the tape.</p>

<h3><a name="write-2">write/2</a></h3>

<p><code>write(<a href="#type-tape">tape()</a>, integer()) -> {<a href="#type-tape">tape()</a>, integer()}</code></p>
<p>Places the given value at the current position on the tape.</p></body>
</html>