Paradiseo-eo sources added

git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@40 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
legrand 2006-12-12 14:49:08 +00:00
commit c3aec878e5
3609 changed files with 342772 additions and 0 deletions

View file

@ -0,0 +1,126 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>EO: eoGeneralIntBounds Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.9.1 -->
<div class="qindex"> <form class="search" action="search.php" method="get">
<a class="qindex" href="main.html">Main&nbsp;Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a> | <span class="search"><u>S</u>earch&nbsp;for&nbsp;<input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div>
<h1>eoGeneralIntBounds Class Reference</h1>A class that encapsulate all possible <a class="el" href="classeo_int_bounds.html">eoIntBounds</a>.
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="eo_int_bounds_8h-source.html">eoIntBounds.h</a>&gt;</code>
<p>
<p>Inheritance diagram for eoGeneralIntBounds:
<p><center><img src="classeo_general_int_bounds.png" usemap="#eoGeneralIntBounds_map" border="0" alt=""></center>
<map name="eoGeneralIntBounds_map">
<area href="classeo_int_bounds.html" alt="eoIntBounds" shape="rect" coords="0,112,126,136">
<area href="classeo_persistent.html" alt="eoPersistent" shape="rect" coords="0,56,126,80">
<area href="classeo_printable.html" alt="eoPrintable" shape="rect" coords="0,0,126,24">
</map>
<a href="classeo_general_int_bounds-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a0" doxytag="eoGeneralIntBounds::eoGeneralIntBounds"></a>
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_general_int_bounds.html#a0">eoGeneralIntBounds</a> (std::string _s="[-infinity,+infinity]")</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Ctor: from a string, chooses the type of bound. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a1" doxytag="eoGeneralIntBounds::eoGeneralIntBounds"></a>
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_general_int_bounds.html#a1">eoGeneralIntBounds</a> (const <a class="el" href="classeo_general_int_bounds.html">eoGeneralIntBounds</a> &amp;_b)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Need a Cpy Ctor because we are allocating memory. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a2" doxytag="eoGeneralIntBounds::operator="></a>
<a class="el" href="classeo_general_int_bounds.html">eoGeneralIntBounds</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (const <a class="el" href="classeo_general_int_bounds.html">eoGeneralIntBounds</a> &amp;_b)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a3" doxytag="eoGeneralIntBounds::~eoGeneralIntBounds"></a>
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_general_int_bounds.html#a3">~eoGeneralIntBounds</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Need a Dtor because we allocate an actual bound. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a4" doxytag="eoGeneralIntBounds::isBounded"></a>
virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_general_int_bounds.html#a4">isBounded</a> (void) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Self-Test: true if ***both*** a min and a max. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a5" doxytag="eoGeneralIntBounds::hasNoBoundAtAll"></a>
virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_general_int_bounds.html#a5">hasNoBoundAtAll</a> (void) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Self-Test: true if no min ***and*** no max hence no further need to test/truncate/fold anything. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a6" doxytag="eoGeneralIntBounds::isMinBounded"></a>
virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_general_int_bounds.html#a6">isMinBounded</a> (void) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Self-Test: bounded from below??? <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a7" doxytag="eoGeneralIntBounds::isMaxBounded"></a>
virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_general_int_bounds.html#a7">isMaxBounded</a> (void) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Self-Test: bounded from above??? <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a8" doxytag="eoGeneralIntBounds::isInBounds"></a>
virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_general_int_bounds.html#a8">isInBounds</a> (double _x) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Test on a value: is it in bounds? <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a9" doxytag="eoGeneralIntBounds::foldsInBounds"></a>
virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_general_int_bounds.html#a9">foldsInBounds</a> (double &amp;_x) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Put value back into bounds - by folding back and forth. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a10" doxytag="eoGeneralIntBounds::truncate"></a>
virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_general_int_bounds.html#a10">truncate</a> (double &amp;_x) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Put value back into bounds - by truncating to a boundary value. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a11" doxytag="eoGeneralIntBounds::minimum"></a>
virtual long int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_general_int_bounds.html#a11">minimum</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">get minimum value ::exception if does not exist <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a12" doxytag="eoGeneralIntBounds::maximum"></a>
virtual long int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_general_int_bounds.html#a12">maximum</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">get maximum value ::exception if does not exist <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a13" doxytag="eoGeneralIntBounds::range"></a>
virtual long int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_general_int_bounds.html#a13">range</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">get range ::exception if unbounded <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a14" doxytag="eoGeneralIntBounds::uniform"></a>
virtual double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_general_int_bounds.html#a14">uniform</a> (<a class="el" href="classeo_rng.html">eoRng</a> &amp;_rng=eo::rng) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">random generator of uniform doubles in bounds ::exception if unbounded <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a15" doxytag="eoGeneralIntBounds::random"></a>
virtual long int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_general_int_bounds.html#a15">random</a> (<a class="el" href="classeo_rng.html">eoRng</a> &amp;_rng=eo::rng) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">random generator of uniform ints in bounds ::exception if unbounded <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a16" doxytag="eoGeneralIntBounds::dup"></a>
virtual <a class="el" href="classeo_int_bounds.html">eoIntBounds</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_general_int_bounds.html#a16">dup</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">for memory managements - ugly <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a17" doxytag="eoGeneralIntBounds::theBounds"></a>
const <a class="el" href="classeo_int_bounds.html">eoIntBounds</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_general_int_bounds.html#a17">theBounds</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">for efficiency, it's better to use the embedded boud directly <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a18" doxytag="eoGeneralIntBounds::printOn"></a>
virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_general_int_bounds.html#a18">printOn</a> (std::ostream &amp;_os) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">don't forget the printOn method - again that of the embedded bound <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a19" doxytag="eoGeneralIntBounds::readFrom"></a>
virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_general_int_bounds.html#a19">readFrom</a> (std::istream &amp;_is)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">no readFrom ??? Have to check that later <br></td></tr>
<tr><td colspan="2"><br><h2>Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d0" doxytag="eoGeneralIntBounds::getBoundsFromString"></a>
<a class="el" href="classeo_int_bounds.html">eoIntBounds</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_general_int_bounds.html#d0">getBoundsFromString</a> (std::string)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">the constructor for eoGeneralIntBound - from a string <br></td></tr>
<tr><td colspan="2"><br><h2>Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="r0" doxytag="eoGeneralIntBounds::repBound"></a>
<a class="el" href="classeo_int_bounds.html">eoIntBounds</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><b>repBound</b></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A class that encapsulate all possible <a class="el" href="classeo_int_bounds.html">eoIntBounds</a>.
<p>
Mandatory in order to read through the parser
<p>
<p>
Definition at line <a class="el" href="eo_int_bounds_8h-source.html#l00541">541</a> of file <a class="el" href="eo_int_bounds_8h-source.html">eoIntBounds.h</a>.<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="eo_int_bounds_8h-source.html">eoIntBounds.h</a><li><a class="el" href="eo_int_bounds_8cpp-source.html">eoIntBounds.cpp</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Thu Oct 19 05:06:49 2006 for EO by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
</body>
</html>