<!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: ExpressionItemArgument 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>ExpressionItemArgument Class Reference</h1><!-- doxytag: class="ExpressionItemArgument" --><!-- doxytag: inherits="Argument" --><a class="el" href="classArgument.html" title="A mathematical function argument definition with free value and base class for all...">Argument</a> for functions, variables and units. <a href="#_details">More...</a> <p> <code>#include <Function.h></code> <p> <div class="dynheader"> Inheritance diagram for ExpressionItemArgument:</div> <div class="dynsection"> <p><center><img src="classExpressionItemArgument.png" usemap="#ExpressionItemArgument_map" border="0" alt=""></center> <map name="ExpressionItemArgument_map"> <area href="classArgument.html" alt="Argument" shape="rect" coords="0,0,150,24"> </map> </div> <p> <a href="classExpressionItemArgument-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="8100d9cc06fba4a2fc451d6e58a987de"></a><!-- doxytag: member="ExpressionItemArgument::ExpressionItemArgument" ref="8100d9cc06fba4a2fc451d6e58a987de" args="(string name_="", bool does_test=true, bool does_error=true)" --> </td><td class="memItemRight" valign="bottom"><b>ExpressionItemArgument</b> (string name_="", bool does_test=true, bool does_error=true)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="746301e67c1835d2b13051bc67b8e234"></a><!-- doxytag: member="ExpressionItemArgument::ExpressionItemArgument" ref="746301e67c1835d2b13051bc67b8e234" args="(const ExpressionItemArgument *arg)" --> </td><td class="memItemRight" valign="bottom"><b>ExpressionItemArgument</b> (const <a class="el" href="classExpressionItemArgument.html">ExpressionItemArgument</a> *arg)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="classExpressionItemArgument.html#bb87fedaeacb9f90892d3e993977f105">type</a> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classArgument.html">Argument</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classExpressionItemArgument.html#9102d79d5f7575c9fff17ecfa74616e5">copy</a> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual string </td><td class="memItemRight" valign="bottom"><a class="el" href="classExpressionItemArgument.html#ac0f58cf5fd0bfc2d1b477f35dfe5722">print</a> () const </td></tr> <tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classExpressionItemArgument.html#23c2514af5f6483cf78739966611428f">subtest</a> (<a class="el" href="classMathStructure.html">MathStructure</a> &value, const <a class="el" href="structEvaluationOptions.html">EvaluationOptions</a> &eo) const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual string </td><td class="memItemRight" valign="bottom"><a class="el" href="classExpressionItemArgument.html#d8086df4b5ed5833d5c778c3b9f713fc">subprintlong</a> () const </td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> <a class="el" href="classArgument.html" title="A mathematical function argument definition with free value and base class for all...">Argument</a> for functions, variables and units. <p> Text string representing a function, variable or unit name. <hr><h2>Member Function Documentation</h2> <a class="anchor" name="23c2514af5f6483cf78739966611428f"></a><!-- doxytag: member="ExpressionItemArgument::subtest" ref="23c2514af5f6483cf78739966611428f" args="(MathStructure &value, const EvaluationOptions &eo) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual bool ExpressionItemArgument::subtest </td> <td>(</td> <td class="paramtype"><a class="el" href="classMathStructure.html">MathStructure</a> & </td> <td class="paramname"> <em>value</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="structEvaluationOptions.html">EvaluationOptions</a> & </td> <td class="paramname"> <em>eo</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"> const<code> [protected, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> This function is called from <a class="el" href="classArgument.html#56535da601c8f8f46c2b9fa3cfe97730">Argument::test()</a> and performs validation specific to the argument definition type. Should be reimplemented by all subclasses.<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>value</em> </td><td>Value to test. </td></tr> <tr><td valign="top"></td><td valign="top"><em>eo</em> </td><td>Evaluation options to use if the value needs to be evaluated. </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>true if the value is valid for the argument definition. </dd></dl> <p>Reimplemented from <a class="el" href="classArgument.html#c6e3f5ea55c3abe8fd7f978647589087">Argument</a>.</p> </div> </div><p> <a class="anchor" name="d8086df4b5ed5833d5c778c3b9f713fc"></a><!-- doxytag: member="ExpressionItemArgument::subprintlong" ref="d8086df4b5ed5833d5c778c3b9f713fc" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual string ExpressionItemArgument::subprintlong </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const<code> [protected, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> This function is called from <a class="el" href="classArgument.html#09d80da7b0eb5d0b63f31f4289425049">Argument::printlong()</a> and returns description specific the argument definition type. Should be reimplemented by all subclasses. For example <a class="el" href="classIntegerArgument.html#0f97d178c0ccb382794429cd43c69964">IntegerArgument::subprintlong()</a> might return "an integer" and <a class="el" href="classArgument.html#09d80da7b0eb5d0b63f31f4289425049">Argument::printlong()</a> might append " that fulfills the condition: even(\x)".<p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>Long description. </dd></dl> <p>Reimplemented from <a class="el" href="classArgument.html#ecb66daedc6826a33816652afb64e674">Argument</a>.</p> </div> </div><p> <a class="anchor" name="bb87fedaeacb9f90892d3e993977f105"></a><!-- doxytag: member="ExpressionItemArgument::type" ref="bb87fedaeacb9f90892d3e993977f105" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual int ExpressionItemArgument::type </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Returns the type of the argument, corresponding to which subclass the object belongs to.<p> <dl class="return" compact><dt><b>Returns:</b></dt><dd><a class="el" href="Function_8h.html#a15f3f718db408445afc1b93c12294c5" title="Argument types.">ArgumentType</a>. </dd></dl> <p>Reimplemented from <a class="el" href="classArgument.html#2709c0d89f7827fabb1c4d4a563cae1a">Argument</a>.</p> </div> </div><p> <a class="anchor" name="9102d79d5f7575c9fff17ecfa74616e5"></a><!-- doxytag: member="ExpressionItemArgument::copy" ref="9102d79d5f7575c9fff17ecfa74616e5" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="classArgument.html">Argument</a>* ExpressionItemArgument::copy </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Returns a copy of the argument definition.<p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>A copy. </dd></dl> <p>Reimplemented from <a class="el" href="classArgument.html#b3c1acf637efbe585bb716cb6ecf5829">Argument</a>.</p> </div> </div><p> <a class="anchor" name="ac0f58cf5fd0bfc2d1b477f35dfe5722"></a><!-- doxytag: member="ExpressionItemArgument::print" ref="ac0f58cf5fd0bfc2d1b477f35dfe5722" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual string ExpressionItemArgument::print </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Resturns a short description of the argument definition. Ex. "number" for <a class="el" href="classNumberArgument.html" title="A definition for numerical arguments.">NumberArgument</a>.<p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>Short description. </dd></dl> <p>Reimplemented from <a class="el" href="classArgument.html#3d7c3969caf6b5e9dd70574bbbaffe3d">Argument</a>.</p> </div> </div><p> <hr>The documentation for this class was generated from the following file:<ul> <li>libqalculate/<a class="el" href="Function_8h.html">Function.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>