Sophie

Sophie

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

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>Manipulator -- the class of all file manipulators</title>
<link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/>
</head>
<body>
<table class="buttons">
  <tr>
    <td><div><a href="_map.html">next</a> | <a href="_manipulating_spmodules.html">previous</a> | <a href="_map.html">forward</a> | <a href="_manipulating_spmodules.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>Manipulator -- the class of all file manipulators</h1>
<div class="single"><h2>Description</h2>
<div>A file manipulator is a type of list that, when put out to a file with <a href="__lt_lt.html" title="a binary operator (file output, ...)">&lt;&lt;</a> causes a chosen function to be applied to the file.  Alternatively, a manipulator can be used the way a function is used.<table class="examples"><tr><td><pre>i1 : f = new Manipulator from identity

o1 = f

o1 : Manipulator</pre>
</td></tr>
<tr><td><pre>i2 : stdio &lt;&lt; f

o2 = stdio

o2 : File</pre>
</td></tr>
<tr><td><pre>i3 : f stdio

o3 = stdio

o3 : File</pre>
</td></tr>
</table>
</div>
</div>
<div class="waystouse"><h2>Functions and methods returning a manipulator :</h2>
<ul><li>new Manipulator from Function</li>
</ul>
<h2>Methods that use a manipulator :</h2>
<ul><li><span>File &lt;&lt; Manipulator, see <span><a href="___File_sp_lt_lt_sp__Thing.html" title="print to a file">File &lt;&lt; Thing</a> -- print to a file</span></span></li>
<li><span>Nothing &lt;&lt; Manipulator, see <span><a href="___File_sp_lt_lt_sp__Thing.html" title="print to a file">File &lt;&lt; Thing</a> -- print to a file</span></span></li>
<li>Manipulator Database</li>
<li>Manipulator File</li>
<li>Manipulator Nothing</li>
<li><span>Manipulator NetFile, see <span><a href="___Net__File.html" title="the class of all net files">NetFile</a> -- the class of all net files</span></span></li>
<li><span>NetFile &lt;&lt; Manipulator, see <span><a href="___Net__File.html" title="the class of all net files">NetFile</a> -- the class of all net files</span></span></li>
</ul>
<h2>Fixed objects of class Manipulator :</h2>
<ul><li><span><a href="_close.html" title="close a file">close</a> -- close a file</span></li>
<li><span><a href="_close__In.html" title="close an input file">closeIn</a> -- close an input file</span></li>
<li><span><a href="_close__Out.html" title="close an output file">closeOut</a> -- close an output file</span></li>
<li><span><a href="_endl.html" title="end an output line">endl</a> -- end an output line</span></li>
<li><span><a href="_flush.html" title="flush output to file">flush</a> -- flush output to file</span></li>
</ul>
</div>
<div class="waystouse"><h2>For the programmer</h2>
<p>The object <a href="___Manipulator.html" title="the class of all file manipulators">Manipulator</a> is <span>a <a href="___Type.html">type</a></span>, with ancestor classes <a href="___Basic__List.html" title="the class of all basic lists">BasicList</a> &lt; <a href="___Thing.html" title="the class of all things">Thing</a>.</p>
</div>
</div>
</body>
</html>