123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
- <meta name="author" content="Emanuel Eichhammer" />
- <meta name="copyright" content="(C) 2013-2015 Emanuel Eichhammer" />
- <title>QCPRange Class Reference</title>
- <link href="qt.css" rel="stylesheet" type="text/css"/>
- </head>
- <body>
- <div id="top">
- <a class="headerLink" href="index.html">Main Page</a> ·
- <a class="headerLink" href="classoverview.html">Class Overview</a> ·
- <a class="headerLink" href="hierarchy.html">Hierarchy</a> ·
- <a class="headerLink" href="annotated.html">All Classes</a> ·
- <a class="headerLink" href="pages.html">Special Pages</a>
- <!-- Generated by Doxygen 1.8.6 -->
- </div><!-- top -->
- <div class="header">
- <div class="summary">
- <a href="#pub-methods">Public Functions</a> |
- <a href="#pub-attribs">Public Members</a> |
- <a href="#pub-static-methods">Static Public Functions</a> |
- <a href="#pub-static-attribs">Static Public Members</a> |
- <a href="#friends">Friends</a> </div>
- <div class="headertitle">
- <div class="title">QCPRange Class Reference</div> </div>
- </div><!--header-->
- <div class="contents">
- <p>Represents the range an axis is encompassing.
- <a href="classQCPRange.html#details">More...</a></p>
- <table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
- Public Functions</h2></td></tr>
- <tr class="memitem:aca158d7e69702cee5d77d10a269b01e2"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPRange.html#aca158d7e69702cee5d77d10a269b01e2">QCPRange</a> ()</td></tr>
- <tr class="separator:aca158d7e69702cee5d77d10a269b01e2"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a1d9d84d084c8f368fdedd42e0978d405"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPRange.html#a1d9d84d084c8f368fdedd42e0978d405">QCPRange</a> (double lower, double upper)</td></tr>
- <tr class="separator:a1d9d84d084c8f368fdedd42e0978d405"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aa20f91509687505e25bd2ef10d2f0e15"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa20f91509687505e25bd2ef10d2f0e15"></a>
- bool </td><td class="memItemRight" valign="bottom"><b>operator==</b> (const <a class="el" href="classQCPRange.html">QCPRange</a> &other) const </td></tr>
- <tr class="separator:aa20f91509687505e25bd2ef10d2f0e15"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a9b9016ee83dea60573abb9a5ef4cdbcb"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9b9016ee83dea60573abb9a5ef4cdbcb"></a>
- bool </td><td class="memItemRight" valign="bottom"><b>operator!=</b> (const <a class="el" href="classQCPRange.html">QCPRange</a> &other) const </td></tr>
- <tr class="separator:a9b9016ee83dea60573abb9a5ef4cdbcb"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:afea7c1aa7d08f061cd9bd8832f957df8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classQCPRange.html">QCPRange</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPRange.html#afea7c1aa7d08f061cd9bd8832f957df8">operator+=</a> (const double &value)</td></tr>
- <tr class="separator:afea7c1aa7d08f061cd9bd8832f957df8"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a95894bcb15a16a75ca564091374e2191"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classQCPRange.html">QCPRange</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPRange.html#a95894bcb15a16a75ca564091374e2191">operator-=</a> (const double &value)</td></tr>
- <tr class="separator:a95894bcb15a16a75ca564091374e2191"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a6876aa9620ff2f0f7f1873f998372cef"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classQCPRange.html">QCPRange</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPRange.html#a6876aa9620ff2f0f7f1873f998372cef">operator*=</a> (const double &value)</td></tr>
- <tr class="separator:a6876aa9620ff2f0f7f1873f998372cef"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a6137d8682b6835ace840730b4c1e2d63"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classQCPRange.html">QCPRange</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPRange.html#a6137d8682b6835ace840730b4c1e2d63">operator/=</a> (const double &value)</td></tr>
- <tr class="separator:a6137d8682b6835ace840730b4c1e2d63"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:afa57c13049b965edb6fd1c00ac56338a"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPRange.html#afa57c13049b965edb6fd1c00ac56338a">size</a> () const </td></tr>
- <tr class="separator:afa57c13049b965edb6fd1c00ac56338a"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a3825b53cf17da5de0843c1f3baad07db"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPRange.html#a3825b53cf17da5de0843c1f3baad07db">center</a> () const </td></tr>
- <tr class="separator:a3825b53cf17da5de0843c1f3baad07db"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:af914a7740269b0604d0827c634a878a9"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPRange.html#af914a7740269b0604d0827c634a878a9">normalize</a> ()</td></tr>
- <tr class="separator:af914a7740269b0604d0827c634a878a9"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a0fa1bc8048be50d52bea93a8caf08305"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPRange.html#a0fa1bc8048be50d52bea93a8caf08305">expand</a> (const <a class="el" href="classQCPRange.html">QCPRange</a> &otherRange)</td></tr>
- <tr class="separator:a0fa1bc8048be50d52bea93a8caf08305"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a6437bdf29a7ebc2c88a6045c4e622384"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classQCPRange.html">QCPRange</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPRange.html#a6437bdf29a7ebc2c88a6045c4e622384">expanded</a> (const <a class="el" href="classQCPRange.html">QCPRange</a> &otherRange) const </td></tr>
- <tr class="separator:a6437bdf29a7ebc2c88a6045c4e622384"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aaf6a9046e78d91eeb8e89584fe46b034"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classQCPRange.html">QCPRange</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPRange.html#aaf6a9046e78d91eeb8e89584fe46b034">sanitizedForLogScale</a> () const </td></tr>
- <tr class="separator:aaf6a9046e78d91eeb8e89584fe46b034"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a1ff029704c29a75adbc1dc36cecaf44c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classQCPRange.html">QCPRange</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPRange.html#a1ff029704c29a75adbc1dc36cecaf44c">sanitizedForLinScale</a> () const </td></tr>
- <tr class="separator:a1ff029704c29a75adbc1dc36cecaf44c"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a030ce95b527c32e01414d0351347b46d"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPRange.html#a030ce95b527c32e01414d0351347b46d">contains</a> (double value) const </td></tr>
- <tr class="separator:a030ce95b527c32e01414d0351347b46d"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
- Public Members</h2></td></tr>
- <tr class="memitem:aa3aca3edb14f7ca0c85d912647b91745"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa3aca3edb14f7ca0c85d912647b91745"></a>
- double </td><td class="memItemRight" valign="bottom"><b>lower</b></td></tr>
- <tr class="separator:aa3aca3edb14f7ca0c85d912647b91745"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ae44eb3aafe1d0e2ed34b499b6d2e074f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae44eb3aafe1d0e2ed34b499b6d2e074f"></a>
- double </td><td class="memItemRight" valign="bottom"><b>upper</b></td></tr>
- <tr class="separator:ae44eb3aafe1d0e2ed34b499b6d2e074f"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
- Static Public Functions</h2></td></tr>
- <tr class="memitem:ab38bd4841c77c7bb86c9eea0f142dcc0"><td class="memItemLeft" align="right" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPRange.html#ab38bd4841c77c7bb86c9eea0f142dcc0">validRange</a> (double lower, double upper)</td></tr>
- <tr class="separator:ab38bd4841c77c7bb86c9eea0f142dcc0"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a801b964752eaad6219be9d8a651ec2b3"><td class="memItemLeft" align="right" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPRange.html#a801b964752eaad6219be9d8a651ec2b3">validRange</a> (const <a class="el" href="classQCPRange.html">QCPRange</a> &range)</td></tr>
- <tr class="separator:a801b964752eaad6219be9d8a651ec2b3"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
- Static Public Members</h2></td></tr>
- <tr class="memitem:ab46d3bc95030ee25efda41b89e2b616b"><td class="memItemLeft" align="right" valign="top">static const double </td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPRange.html#ab46d3bc95030ee25efda41b89e2b616b">minRange</a> = 1e-280</td></tr>
- <tr class="separator:ab46d3bc95030ee25efda41b89e2b616b"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a5ca51e7a2dc5dc0d49527ab171fe1f4f"><td class="memItemLeft" align="right" valign="top">static const double </td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPRange.html#a5ca51e7a2dc5dc0d49527ab171fe1f4f">maxRange</a> = 1e250</td></tr>
- <tr class="separator:a5ca51e7a2dc5dc0d49527ab171fe1f4f"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
- Friends</h2></td></tr>
- <tr class="memitem:af53ea6fb823a4a5897162b865841de04"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classQCPRange.html">QCPRange</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPRange.html#af53ea6fb823a4a5897162b865841de04">operator+</a> (const <a class="el" href="classQCPRange.html">QCPRange</a> &, double)</td></tr>
- <tr class="separator:af53ea6fb823a4a5897162b865841de04"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a9fb2e9941d32001482df670c0d704977"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classQCPRange.html">QCPRange</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPRange.html#a9fb2e9941d32001482df670c0d704977">operator+</a> (double, const <a class="el" href="classQCPRange.html">QCPRange</a> &)</td></tr>
- <tr class="separator:a9fb2e9941d32001482df670c0d704977"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a797f82830b516646da8873f82e39e356"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classQCPRange.html">QCPRange</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPRange.html#a797f82830b516646da8873f82e39e356">operator-</a> (const <a class="el" href="classQCPRange.html">QCPRange</a> &range, double value)</td></tr>
- <tr class="separator:a797f82830b516646da8873f82e39e356"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a558b1248ff6a9e41fd5b2630555a8acc"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classQCPRange.html">QCPRange</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPRange.html#a558b1248ff6a9e41fd5b2630555a8acc">operator*</a> (const <a class="el" href="classQCPRange.html">QCPRange</a> &range, double value)</td></tr>
- <tr class="separator:a558b1248ff6a9e41fd5b2630555a8acc"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a5cb2332f6957021f47cc768089f4f090"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classQCPRange.html">QCPRange</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPRange.html#a5cb2332f6957021f47cc768089f4f090">operator*</a> (double value, const <a class="el" href="classQCPRange.html">QCPRange</a> &range)</td></tr>
- <tr class="separator:a5cb2332f6957021f47cc768089f4f090"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a4b366a3a21974c88e09b0d39d4a24a4b"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classQCPRange.html">QCPRange</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPRange.html#a4b366a3a21974c88e09b0d39d4a24a4b">operator/</a> (const <a class="el" href="classQCPRange.html">QCPRange</a> &range, double value)</td></tr>
- <tr class="separator:a4b366a3a21974c88e09b0d39d4a24a4b"><td class="memSeparator" colspan="2"> </td></tr>
- </table>
- <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
- <div class="textblock"><p>Represents the range an axis is encompassing. </p>
- <p>contains a <em>lower</em> and <em>upper</em> double value and provides convenience input, output and modification functions.</p>
- <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPAxis.html#aebdfea5d44c3a0ad2b4700cd4d25b641">QCPAxis::setRange</a> </dd></dl>
- </div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
- <a class="anchor" id="aca158d7e69702cee5d77d10a269b01e2"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">QCPRange::QCPRange </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Constructs a range with <em>lower</em> and <em>upper</em> set to zero. </p>
- </div>
- </div>
- <a class="anchor" id="a1d9d84d084c8f368fdedd42e0978d405"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">QCPRange::QCPRange </td>
- <td>(</td>
- <td class="paramtype">double </td>
- <td class="paramname"><em>lower</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">double </td>
- <td class="paramname"><em>upper</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>This is an overloaded function. Constructs a range with the specified <em>lower</em> and <em>upper</em> values. </p>
- </div>
- </div>
- <h2 class="groupheader">Member Function Documentation</h2>
- <a class="anchor" id="afea7c1aa7d08f061cd9bd8832f957df8"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname"><a class="el" href="classQCPRange.html">QCPRange</a> & QCPRange::operator+= </td>
- <td>(</td>
- <td class="paramtype">const double & </td>
- <td class="paramname"><em>value</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">inline</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Adds <em>value</em> to both boundaries of the range. </p>
- </div>
- </div>
- <a class="anchor" id="a95894bcb15a16a75ca564091374e2191"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname"><a class="el" href="classQCPRange.html">QCPRange</a> & QCPRange::operator-= </td>
- <td>(</td>
- <td class="paramtype">const double & </td>
- <td class="paramname"><em>value</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">inline</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Subtracts <em>value</em> from both boundaries of the range. </p>
- </div>
- </div>
- <a class="anchor" id="a6876aa9620ff2f0f7f1873f998372cef"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname"><a class="el" href="classQCPRange.html">QCPRange</a> & QCPRange::operator*= </td>
- <td>(</td>
- <td class="paramtype">const double & </td>
- <td class="paramname"><em>value</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">inline</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Multiplies both boundaries of the range by <em>value</em>. </p>
- </div>
- </div>
- <a class="anchor" id="a6137d8682b6835ace840730b4c1e2d63"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname"><a class="el" href="classQCPRange.html">QCPRange</a> & QCPRange::operator/= </td>
- <td>(</td>
- <td class="paramtype">const double & </td>
- <td class="paramname"><em>value</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">inline</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Divides both boundaries of the range by <em>value</em>. </p>
- </div>
- </div>
- <a class="anchor" id="afa57c13049b965edb6fd1c00ac56338a"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">double QCPRange::size </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Returns the size of the range, i.e. <em>upper-<em>lower</em> </em> </p>
- </div>
- </div>
- <a class="anchor" id="a3825b53cf17da5de0843c1f3baad07db"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">double QCPRange::center </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Returns the center of the range, i.e. (<em>upper+<em>lower</em>)*0</em>.5 </p>
- </div>
- </div>
- <a class="anchor" id="af914a7740269b0604d0827c634a878a9"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void QCPRange::normalize </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Makes sure <em>lower</em> is numerically smaller than <em>upper</em>. If this is not the case, the values are swapped. </p>
- </div>
- </div>
- <a class="anchor" id="a0fa1bc8048be50d52bea93a8caf08305"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void QCPRange::expand </td>
- <td>(</td>
- <td class="paramtype">const <a class="el" href="classQCPRange.html">QCPRange</a> & </td>
- <td class="paramname"><em>otherRange</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Expands this range such that <em>otherRange</em> is contained in the new range. It is assumed that both this range and <em>otherRange</em> are normalized (see <a class="el" href="classQCPRange.html#af914a7740269b0604d0827c634a878a9">normalize</a>).</p>
- <p>If <em>otherRange</em> is already inside the current range, this function does nothing.</p>
- <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPRange.html#a6437bdf29a7ebc2c88a6045c4e622384">expanded</a> </dd></dl>
- </div>
- </div>
- <a class="anchor" id="a6437bdf29a7ebc2c88a6045c4e622384"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname"><a class="el" href="classQCPRange.html">QCPRange</a> QCPRange::expanded </td>
- <td>(</td>
- <td class="paramtype">const <a class="el" href="classQCPRange.html">QCPRange</a> & </td>
- <td class="paramname"><em>otherRange</em></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Returns an expanded range that contains this and <em>otherRange</em>. It is assumed that both this range and <em>otherRange</em> are normalized (see <a class="el" href="classQCPRange.html#af914a7740269b0604d0827c634a878a9">normalize</a>).</p>
- <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPRange.html#a0fa1bc8048be50d52bea93a8caf08305">expand</a> </dd></dl>
- </div>
- </div>
- <a class="anchor" id="aaf6a9046e78d91eeb8e89584fe46b034"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname"><a class="el" href="classQCPRange.html">QCPRange</a> QCPRange::sanitizedForLogScale </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Returns a sanitized version of the range. Sanitized means for logarithmic scales, that the range won't span the positive and negative sign domain, i.e. contain zero. Further <em>lower</em> will always be numerically smaller (or equal) to <em>upper</em>.</p>
- <p>If the original range does span positive and negative sign domains or contains zero, the returned range will try to approximate the original range as good as possible. If the positive interval of the original range is wider than the negative interval, the returned range will only contain the positive interval, with lower bound set to <em>rangeFac</em> or <em>rangeFac</em> *<em>upper</em>, whichever is closer to zero. Same procedure is used if the negative interval is wider than the positive interval, this time by changing the <em>upper</em> bound. </p>
- </div>
- </div>
- <a class="anchor" id="a1ff029704c29a75adbc1dc36cecaf44c"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname"><a class="el" href="classQCPRange.html">QCPRange</a> QCPRange::sanitizedForLinScale </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Returns a sanitized version of the range. Sanitized means for linear scales, that <em>lower</em> will always be numerically smaller (or equal) to <em>upper</em>. </p>
- </div>
- </div>
- <a class="anchor" id="a030ce95b527c32e01414d0351347b46d"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">bool QCPRange::contains </td>
- <td>(</td>
- <td class="paramtype">double </td>
- <td class="paramname"><em>value</em></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Returns true when <em>value</em> lies within or exactly on the borders of the range. </p>
- </div>
- </div>
- <a class="anchor" id="ab38bd4841c77c7bb86c9eea0f142dcc0"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">bool QCPRange::validRange </td>
- <td>(</td>
- <td class="paramtype">double </td>
- <td class="paramname"><em>lower</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">double </td>
- <td class="paramname"><em>upper</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">static</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Checks, whether the specified range is within valid bounds, which are defined as <a class="el" href="classQCPRange.html#a5ca51e7a2dc5dc0d49527ab171fe1f4f">QCPRange::maxRange</a> and <a class="el" href="classQCPRange.html#ab46d3bc95030ee25efda41b89e2b616b">QCPRange::minRange</a>. A valid range means: </p>
- <ul>
- <li>range bounds within -maxRange and maxRange </li>
- <li>range size above minRange </li>
- <li>range size below maxRange </li>
- </ul>
- </div>
- </div>
- <a class="anchor" id="a801b964752eaad6219be9d8a651ec2b3"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">bool QCPRange::validRange </td>
- <td>(</td>
- <td class="paramtype">const <a class="el" href="classQCPRange.html">QCPRange</a> & </td>
- <td class="paramname"><em>range</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">static</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>This is an overloaded function. Checks, whether the specified range is within valid bounds, which are defined as <a class="el" href="classQCPRange.html#a5ca51e7a2dc5dc0d49527ab171fe1f4f">QCPRange::maxRange</a> and <a class="el" href="classQCPRange.html#ab46d3bc95030ee25efda41b89e2b616b">QCPRange::minRange</a>. A valid range means: </p>
- <ul>
- <li>range bounds within -maxRange and maxRange </li>
- <li>range size above minRange </li>
- <li>range size below maxRange </li>
- </ul>
- </div>
- </div>
- <h2 class="groupheader">Field Documentation</h2>
- <a class="anchor" id="ab46d3bc95030ee25efda41b89e2b616b"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">const double QCPRange::minRange = 1e-280</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">static</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Minimum range size (<em>upper</em> - <em>lower</em>) the range changing functions will accept. Smaller intervals would cause errors due to the 11-bit exponent of double precision numbers, corresponding to a minimum magnitude of roughly 1e-308. </p>
- <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPRange.html#ab38bd4841c77c7bb86c9eea0f142dcc0">validRange</a>, <a class="el" href="classQCPRange.html#a5ca51e7a2dc5dc0d49527ab171fe1f4f">maxRange</a> </dd></dl>
- </div>
- </div>
- <a class="anchor" id="a5ca51e7a2dc5dc0d49527ab171fe1f4f"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">const double QCPRange::maxRange = 1e250</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">static</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Maximum values (negative and positive) the range will accept in range-changing functions. Larger absolute values would cause errors due to the 11-bit exponent of double precision numbers, corresponding to a maximum magnitude of roughly 1e308. Since the number of planck-volumes in the entire visible universe is only ~1e183, this should be enough. </p>
- <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPRange.html#ab38bd4841c77c7bb86c9eea0f142dcc0">validRange</a>, <a class="el" href="classQCPRange.html#ab46d3bc95030ee25efda41b89e2b616b">minRange</a> </dd></dl>
- </div>
- </div>
- <h2 class="groupheader">Friends And Related Function Documentation</h2>
- <a class="anchor" id="af53ea6fb823a4a5897162b865841de04"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">const <a class="el" href="classQCPRange.html">QCPRange</a> operator+ </td>
- <td>(</td>
- <td class="paramtype">const <a class="el" href="classQCPRange.html">QCPRange</a> & </td>
- <td class="paramname"><em>range</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">double </td>
- <td class="paramname"><em>value</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">friend</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Adds <em>value</em> to both boundaries of the range. </p>
- </div>
- </div>
- <a class="anchor" id="a9fb2e9941d32001482df670c0d704977"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">const <a class="el" href="classQCPRange.html">QCPRange</a> operator+ </td>
- <td>(</td>
- <td class="paramtype">double </td>
- <td class="paramname"><em>value</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const <a class="el" href="classQCPRange.html">QCPRange</a> & </td>
- <td class="paramname"><em>range</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">friend</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Adds <em>value</em> to both boundaries of the range. </p>
- </div>
- </div>
- <a class="anchor" id="a797f82830b516646da8873f82e39e356"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">const <a class="el" href="classQCPRange.html">QCPRange</a> operator- </td>
- <td>(</td>
- <td class="paramtype">const <a class="el" href="classQCPRange.html">QCPRange</a> & </td>
- <td class="paramname"><em>range</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">double </td>
- <td class="paramname"><em>value</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">friend</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Subtracts <em>value</em> from both boundaries of the range. </p>
- </div>
- </div>
- <a class="anchor" id="a558b1248ff6a9e41fd5b2630555a8acc"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">const <a class="el" href="classQCPRange.html">QCPRange</a> operator* </td>
- <td>(</td>
- <td class="paramtype">const <a class="el" href="classQCPRange.html">QCPRange</a> & </td>
- <td class="paramname"><em>range</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">double </td>
- <td class="paramname"><em>value</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">friend</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Multiplies both boundaries of the range by <em>value</em>. </p>
- </div>
- </div>
- <a class="anchor" id="a5cb2332f6957021f47cc768089f4f090"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">const <a class="el" href="classQCPRange.html">QCPRange</a> operator* </td>
- <td>(</td>
- <td class="paramtype">double </td>
- <td class="paramname"><em>value</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const <a class="el" href="classQCPRange.html">QCPRange</a> & </td>
- <td class="paramname"><em>range</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">friend</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Multiplies both boundaries of the range by <em>value</em>. </p>
- </div>
- </div>
- <a class="anchor" id="a4b366a3a21974c88e09b0d39d4a24a4b"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">const <a class="el" href="classQCPRange.html">QCPRange</a> operator/ </td>
- <td>(</td>
- <td class="paramtype">const <a class="el" href="classQCPRange.html">QCPRange</a> & </td>
- <td class="paramname"><em>range</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">double </td>
- <td class="paramname"><em>value</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">friend</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Divides both boundaries of the range by <em>value</em>. </p>
- </div>
- </div>
- <hr/>The documentation for this class was generated from the following files:<ul>
- <li>src/range.h</li>
- <li>src/range.cpp</li>
- </ul>
- </div><!-- contents -->
- </body>
- </html>
|