File: structParseOptions.html

package info (click to toggle)
libqalculate 0.9.6-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 8,096 kB
  • ctags: 5,501
  • sloc: cpp: 40,337; sh: 9,010; makefile: 67
file content (98 lines) | stat: -rw-r--r-- 8,597 bytes parent folder | download
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
<!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>libqalculate-0.9.6: ParseOptions Struct Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.3 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</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="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div>
<h1>ParseOptions Struct Reference</h1><!-- doxytag: class=<ParseOptions> -->Options for parsing expressions.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;includes.h&gt;</code>
<p>
<a href="structParseOptions-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 Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="o0"></a><!-- doxytag: member=<ParseOptions::variables_enabled> ref=<o0> args=<> -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structParseOptions.html#o0">variables_enabled</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">If variables will be parsed. Default: true. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="o1"></a><!-- doxytag: member=<ParseOptions::functions_enabled> ref=<o1> args=<> -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structParseOptions.html#o1">functions_enabled</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">If functions will be parsed. Default: true. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="o2"></a><!-- doxytag: member=<ParseOptions::unknowns_enabled> ref=<o2> args=<> -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structParseOptions.html#o2">unknowns_enabled</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">If left-over characters will be parsed as symbols. Default: true. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="o3"></a><!-- doxytag: member=<ParseOptions::units_enabled> ref=<o3> args=<> -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structParseOptions.html#o3">units_enabled</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">If units will be parsed. Default: true. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="o4"></a><!-- doxytag: member=<ParseOptions::rpn> ref=<o4> args=<> -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structParseOptions.html#o4">rpn</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">If Reverse Polish Notation syntax will be used. Default: false. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="o5"></a><!-- doxytag: member=<ParseOptions::base> ref=<o5> args=<> -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structParseOptions.html#o5">base</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Base of parsed numbers. Default: 10. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structParseOptions.html#o6">limit_implicit_multiplication</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">When implicit multiplication is limited variables, functions and units must be separated by a space, operator or parenthesis ("xy" does not equal "x * y"). Default: false.  <a href="#o6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="o7"></a><!-- doxytag: member=<ParseOptions::read_precision> ref=<o7> args=<> -->
ReadPrecisionMode&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structParseOptions.html#o7">read_precision</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">If and when precisions will be read from number of digits in a number. Default: DONT_READ_PRECISION. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="o8"></a><!-- doxytag: member=<ParseOptions::dot_as_separator> ref=<o8> args=<> -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structParseOptions.html#o8">dot_as_separator</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">If true. dots will ignored if another character is the default decimal sign, to allow dots to be used as thousand separator. Default: false. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="o9"></a><!-- doxytag: member=<ParseOptions::angle_unit> ref=<o9> args=<> -->
AngleUnit&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structParseOptions.html#o9">angle_unit</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Default angle unit for trigonometric functions. Default: ANGLE_UNIT_NONE. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="o10"></a><!-- doxytag: member=<ParseOptions::unended_function> ref=<o10> args=<> -->
<a class="el" href="classMathStructure.html">MathStructure</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structParseOptions.html#o10">unended_function</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">If non-NULL will be set to unfinished function at the end of the expression (if there is one). Default: NULL. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="o11"></a><!-- doxytag: member=<ParseOptions::preserve_format> ref=<o11> args=<> -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structParseOptions.html#o11">preserve_format</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Preserve the expression structure as much as possible. Default: false. <br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Options for parsing expressions. 
<p>
<hr><h2>Member Data Documentation</h2>
<a class="anchor" name="o6"></a><!-- doxytag: member=<ParseOptions::limit_implicit_multiplication> ref=<o6> args=<> --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">bool <a class="el" href="structParseOptions.html#o6">ParseOptions::limit_implicit_multiplication</a>          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
When implicit multiplication is limited variables, functions and units must be separated by a space, operator or parenthesis ("xy" does not equal "x * y"). Default: false. 
<p>
If the limit implicit multiplication mode is activated, the use of implicite multiplication when parsing expressions and displaying results will be limited to avoid confusion. For example, if this mode is not activated and "integrte(5x)" is accidently typed instead of "integrate(5x)", the expression is interpreted as "int(e * e * (5 * x) * gr * t)". If limit implicit multiplication is turned on to mistyped expression would instead show an error telling that "integrte" is not a valid variable, function or unit (unless unknowns is not enabled in which case the result will be "5 'integrate' * x".    </td>
  </tr>
</table>
<hr>The documentation for this struct was generated from the following file:<ul>
<li>libqalculate/<a class="el" href="includes_8h.html">includes.h</a></ul>
<hr size="1"><address style="align: right;"><small>
Generated on 17 Jun 2007 for libqalculate-0.9.6 by&nbsp;<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.3</small></address>
</body>
</html>