/usr/share/doc/libqalculate-doc/html/classDynamicVariable.html is in libqalculate-doc 0.9.7-9.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>libqalculate-0.9.7: DynamicVariable Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.5 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li class="current"><a href="classes.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="classes.html"><span>Alphabetical List</span></a></li>
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>DynamicVariable Class Reference</h1><!-- doxytag: class="DynamicVariable" --><!-- doxytag: inherits="KnownVariable" -->Abstract base class for variables with a value which is recalculated when the precision has changed.
<a href="#_details">More...</a>
<p>
<code>#include <Variable.h></code>
<p>
<div class="dynheader">
Inheritance diagram for DynamicVariable:</div>
<div class="dynsection">
<p><center><img src="classDynamicVariable.png" usemap="#DynamicVariable_map" border="0" alt=""></center>
<map name="DynamicVariable_map">
<area href="classKnownVariable.html" alt="KnownVariable" shape="rect" coords="0,112,109,136">
<area href="classVariable.html" alt="Variable" shape="rect" coords="0,56,109,80">
<area href="classExpressionItem.html" alt="ExpressionItem" shape="rect" coords="0,0,109,24">
</map>
</div>
<p>
<a href="classDynamicVariable-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="35b4d36518fac4c1a299a9eba835b004"></a><!-- doxytag: member="DynamicVariable::DynamicVariable" ref="35b4d36518fac4c1a299a9eba835b004" args="(string cat_, string name_, string title_="", bool is_local=false, bool is_builtin=true, bool is_active=true)" -->
</td><td class="memItemRight" valign="bottom"><b>DynamicVariable</b> (string cat_, string name_, string title_="", bool is_local=false, bool is_builtin=true, bool is_active=true)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3f94060f6912c0d76c69afdb5169e017"></a><!-- doxytag: member="DynamicVariable::DynamicVariable" ref="3f94060f6912c0d76c69afdb5169e017" args="(const DynamicVariable *variable)" -->
</td><td class="memItemRight" valign="bottom"><b>DynamicVariable</b> (const <a class="el" href="classDynamicVariable.html">DynamicVariable</a> *variable)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ae82cbb0b9594682ae2ed03864eb6511"></a><!-- doxytag: member="DynamicVariable::copy" ref="ae82cbb0b9594682ae2ed03864eb6511" args="() const =0" -->
<a class="el" href="classExpressionItem.html">ExpressionItem</a> * </td><td class="memItemRight" valign="bottom"><b>copy</b> () const =0</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="358774b458a2005855c02516400a69df"></a><!-- doxytag: member="DynamicVariable::set" ref="358774b458a2005855c02516400a69df" args="(const ExpressionItem *item)" -->
void </td><td class="memItemRight" valign="bottom"><b>set</b> (const <a class="el" href="classExpressionItem.html">ExpressionItem</a> *item)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="classMathStructure.html">MathStructure</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classDynamicVariable.html#09f39a44b6495d9da4a42f826e7243c4">get</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classDynamicVariable.html#e449e0df12e0a71de7cbcbdf5794a852">set</a> (const <a class="el" href="classMathStructure.html">MathStructure</a> &o)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classDynamicVariable.html#1c480cef3c985e7ec4ea4d0cbb033706">set</a> (string expression_)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classDynamicVariable.html#92e15c4e4e4ceef6f8b71740d10e2ebd">calculatedPrecision</a> () const </td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classDynamicVariable.html#3219611453495b5e6125c2da970077ca">representsPositive</a> (bool=false)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0968cae953608dd0362b8a71c65ec76c"></a><!-- doxytag: member="DynamicVariable::representsNegative" ref="0968cae953608dd0362b8a71c65ec76c" args="(bool=false)" -->
virtual bool </td><td class="memItemRight" valign="bottom"><b>representsNegative</b> (bool=false)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="594b3a9140cbc3e136c1783cbb626800"></a><!-- doxytag: member="DynamicVariable::representsNonNegative" ref="594b3a9140cbc3e136c1783cbb626800" args="(bool=false)" -->
virtual bool </td><td class="memItemRight" valign="bottom"><b>representsNonNegative</b> (bool=false)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b26665ba0953f3e8d56ea5d815a2fdce"></a><!-- doxytag: member="DynamicVariable::representsNonPositive" ref="b26665ba0953f3e8d56ea5d815a2fdce" args="(bool=false)" -->
virtual bool </td><td class="memItemRight" valign="bottom"><b>representsNonPositive</b> (bool=false)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="aa1024b03d326efe3a2e0a2f4313eb36"></a><!-- doxytag: member="DynamicVariable::representsInteger" ref="aa1024b03d326efe3a2e0a2f4313eb36" args="(bool=false)" -->
virtual bool </td><td class="memItemRight" valign="bottom"><b>representsInteger</b> (bool=false)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2d09618e7b343ad2fce1f4288423b3a3"></a><!-- doxytag: member="DynamicVariable::representsNumber" ref="2d09618e7b343ad2fce1f4288423b3a3" args="(bool=false)" -->
virtual bool </td><td class="memItemRight" valign="bottom"><b>representsNumber</b> (bool=false)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5bf4cca7e13b62ffb81f153a9ad010f4"></a><!-- doxytag: member="DynamicVariable::representsRational" ref="5bf4cca7e13b62ffb81f153a9ad010f4" args="(bool=false)" -->
virtual bool </td><td class="memItemRight" valign="bottom"><b>representsRational</b> (bool=false)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2df72aa14c20b945a094d167e3ef6894"></a><!-- doxytag: member="DynamicVariable::representsReal" ref="2df72aa14c20b945a094d167e3ef6894" args="(bool=false)" -->
virtual bool </td><td class="memItemRight" valign="bottom"><b>representsReal</b> (bool=false)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="892e3530f2ed959ac7fab2907e1a70bf"></a><!-- doxytag: member="DynamicVariable::representsComplex" ref="892e3530f2ed959ac7fab2907e1a70bf" args="(bool=false)" -->
virtual bool </td><td class="memItemRight" valign="bottom"><b>representsComplex</b> (bool=false)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="77fe5d331e6c1746448598861c1e81dd"></a><!-- doxytag: member="DynamicVariable::representsNonZero" ref="77fe5d331e6c1746448598861c1e81dd" args="(bool=false)" -->
virtual bool </td><td class="memItemRight" valign="bottom"><b>representsNonZero</b> (bool=false)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="fde3b4e17ffb4efa45a4f97eeed4358f"></a><!-- doxytag: member="DynamicVariable::representsEven" ref="fde3b4e17ffb4efa45a4f97eeed4358f" args="(bool=false)" -->
virtual bool </td><td class="memItemRight" valign="bottom"><b>representsEven</b> (bool=false)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d8028f28a3357bccbf4a64af17443730"></a><!-- doxytag: member="DynamicVariable::representsOdd" ref="d8028f28a3357bccbf4a64af17443730" args="(bool=false)" -->
virtual bool </td><td class="memItemRight" valign="bottom"><b>representsOdd</b> (bool=false)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1da41f550f1a4594fabe7fbdc1b5d58a"></a><!-- doxytag: member="DynamicVariable::representsUndefined" ref="1da41f550f1a4594fabe7fbdc1b5d58a" args="(bool=false, bool=false, bool=false)" -->
virtual bool </td><td class="memItemRight" valign="bottom"><b>representsUndefined</b> (bool=false, bool=false, bool=false)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="840de8903fc3215386868f222ef0fc72"></a><!-- doxytag: member="DynamicVariable::representsBoolean" ref="840de8903fc3215386868f222ef0fc72" args="()" -->
virtual bool </td><td class="memItemRight" valign="bottom"><b>representsBoolean</b> ()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="96471d4f2defb6817b6d1ee5a42e8ce8"></a><!-- doxytag: member="DynamicVariable::representsNonMatrix" ref="96471d4f2defb6817b6d1ee5a42e8ce8" args="()" -->
virtual bool </td><td class="memItemRight" valign="bottom"><b>representsNonMatrix</b> ()</td></tr>
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b3f104059b5a482a4a0d5cf8841c3b1e"></a><!-- doxytag: member="DynamicVariable::calculate" ref="b3f104059b5a482a4a0d5cf8841c3b1e" args="() const =0" -->
virtual void </td><td class="memItemRight" valign="bottom"><b>calculate</b> () const =0</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Abstract base class for variables with a value which is recalculated when the precision has changed. <hr><h2>Member Function Documentation</h2>
<a class="anchor" name="09f39a44b6495d9da4a42f826e7243c4"></a><!-- doxytag: member="DynamicVariable::get" ref="09f39a44b6495d9da4a42f826e7243c4" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const <a class="el" href="classMathStructure.html">MathStructure</a>& DynamicVariable::get </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"><code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the value of the variable. If no value is set or parsed and an expression is set, the expression is parsed and resulting value returned.<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The value of the variable.. </dd></dl>
<p>Reimplemented from <a class="el" href="classKnownVariable.html#f35979ac213868a22044422201f1fd1c">KnownVariable</a>.</p>
</div>
</div><p>
<a class="anchor" name="e449e0df12e0a71de7cbcbdf5794a852"></a><!-- doxytag: member="DynamicVariable::set" ref="e449e0df12e0a71de7cbcbdf5794a852" args="(const MathStructure &o)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void DynamicVariable::set </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classMathStructure.html">MathStructure</a> & </td>
<td class="paramname"> <em>o</em> </td>
<td> ) </td>
<td width="100%"><code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets the value of the variable. If expression is set, it is cleared.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>o</em> </td><td>Value. </td></tr>
</table>
</dl>
<p>Reimplemented from <a class="el" href="classKnownVariable.html#b4602f4613094017ecd3dcc7c9989948">KnownVariable</a>.</p>
</div>
</div><p>
<a class="anchor" name="1c480cef3c985e7ec4ea4d0cbb033706"></a><!-- doxytag: member="DynamicVariable::set" ref="1c480cef3c985e7ec4ea4d0cbb033706" args="(string expression_)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void DynamicVariable::set </td>
<td>(</td>
<td class="paramtype">string </td>
<td class="paramname"> <em>expression_</em> </td>
<td> ) </td>
<td width="100%"><code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets the text string expression of the variable. The value is cleared.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>expression_</em> </td><td>Expression. </td></tr>
</table>
</dl>
<p>Reimplemented from <a class="el" href="classKnownVariable.html#8e4025fe1a16385e24ad9662947a538c">KnownVariable</a>.</p>
</div>
</div><p>
<a class="anchor" name="92e15c4e4e4ceef6f8b71740d10e2ebd"></a><!-- doxytag: member="DynamicVariable::calculatedPrecision" ref="92e15c4e4e4ceef6f8b71740d10e2ebd" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int DynamicVariable::calculatedPrecision </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the precision of the calculated value.<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Precision of the calculated value or zero if the value has not yet been calculated. </dd></dl>
</div>
</div><p>
<a class="anchor" name="3219611453495b5e6125c2da970077ca"></a><!-- doxytag: member="DynamicVariable::representsPositive" ref="3219611453495b5e6125c2da970077ca" args="(bool=false)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual bool DynamicVariable::representsPositive </td>
<td>(</td>
<td class="paramtype">bool </td>
<td class="paramname"> = <code>false</code> </td>
<td> ) </td>
<td width="100%"><code> [inline, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns if the variable represents a positive value.
<p>Reimplemented from <a class="el" href="classKnownVariable.html#bb6707edd7e47c78b5dba7e840428523">KnownVariable</a>.</p>
</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li>libqalculate/<a class="el" href="Variable_8h.html">Variable.h</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Tue Jan 5 08:26:29 2010 for libqalculate-0.9.7 by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
</body>
</html>
|