Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 7ebd25ac536d248d499a3ce2acda963a > files > 3675

Macaulay2-1.3.1-8.fc15.i686.rpm

<?xml version="1.0" encoding="utf-8" ?>  <!-- for emacs: -*- coding: utf-8 -*- -->
<!-- Apache may like this line in the file .htaccess: AddCharset utf-8 .html -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"	 "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg-flat.dtd" >
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head><title>NetFile -- the class of all net files</title>
<link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/>
</head>
<body>
<table class="buttons">
  <tr>
    <td><div><a href="_net__List_lp__Visible__List_rp.html">next</a> | <a href="_net_lp__String_rp.html">previous</a> | <a href="_net__List_lp__Visible__List_rp.html">forward</a> | <a href="_net_lp__String_rp.html">backward</a> | up | <a href="index.html">top</a> | <a href="master.html">index</a> | <a href="toc.html">toc</a> | <a href="http://www.math.uiuc.edu/Macaulay2/">Macaulay2 web site</a></div>

    </td>
  </tr>
</table>
<hr/>
<div><h1>NetFile -- the class of all net files</h1>
<div class="single"><h2>Description</h2>
<div>This class is experimental.  Net files are intended to supplant output files eventually.  Whereas a file is a stream of bytes, or in some non-unix operating systems, a sequence of lines each of which is a sequence of bytes, a net file is a sequence of lines, each of which is a net.  Each output line is assembled by joining nets one by one.<table class="examples"><tr><td><pre>i1 : f = newNetFile()

o1 = &lt;&lt;a netfile>>

o1 : NetFile</pre>
</td></tr>
<tr><td><pre>i2 : f &lt;&lt; "aabbcc" &lt;&lt; endl

o2 = &lt;&lt;a netfile>>

o2 : NetFile</pre>
</td></tr>
<tr><td><pre>i3 : f &lt;&lt; "aa" &lt;&lt; "bb"^1 &lt;&lt; "cc"^-1 &lt;&lt; endl

o3 = &lt;&lt;a netfile>>

o3 : NetFile</pre>
</td></tr>
<tr><td><pre>i4 : f &lt;&lt; "aa" &lt;&lt; "bb"^1 &lt;&lt; "cc"^-1 &lt;&lt; endl

o4 = &lt;&lt;a netfile>>

o4 : NetFile</pre>
</td></tr>
<tr><td><pre>i5 : getNetFile f

                bb      bb
o5 = (aabbcc, aa    , aa    )
                  cc      cc

o5 : Sequence</pre>
</td></tr>
<tr><td><pre>i6 : peek oo

                +------+  +------+
      +------+  |  bb  |  |  bb  |
o6 = (|aabbcc|, |aa    |, |aa    |)
      +------+  |    cc|  |    cc|
                +------+  +------+</pre>
</td></tr>
<tr><td><pre>i7 : class \ ooo

o7 = (Net, Net, Net)

o7 : Sequence</pre>
</td></tr>
</table>
</div>
</div>
<div class="waystouse"><h2>Methods that use an object of class NetFile :</h2>
<ul><li>Manipulator NetFile</li>
<li>NetFile &lt;&lt; Manipulator</li>
<li>NetFile &lt;&lt; Net</li>
<li>NetFile &lt;&lt; String</li>
</ul>
</div>
<div class="waystouse"><h2>For the programmer</h2>
<p>The object <a href="___Net__File.html" title="the class of all net files">NetFile</a> is <span>a <a href="___Type.html">type</a></span>, with ancestor class <a href="___Thing.html" title="the class of all things">Thing</a>.</p>
</div>
</div>
</body>
</html>