| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| 2 | <html> |
| 3 | <head> |
| 4 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| 5 | <title>Variables Table</title> |
| 6 | <meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> |
| 7 | <link rel="home" href="index.html" title="Rasqal RDF Query Library Manual"> |
| 8 | <link rel="up" href="reference-manual.html" title="Part I. Reference Manual"> |
| 9 | <link rel="prev" href="rasqal-section-variable.html" title="Variables"> |
| 10 | <link rel="next" href="rasqal-section-updates.html" title="Updates"> |
| 11 | <meta name="generator" content="GTK-Doc V1.18 (XML mode)"> |
| 12 | <link rel="stylesheet" href="style.css" type="text/css"> |
| 13 | </head> |
| 14 | <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> |
| 15 | <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"> |
| 16 | <tr valign="middle"> |
| 17 | <td><a accesskey="p" href="rasqal-section-variable.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td> |
| 18 | <td><a accesskey="u" href="reference-manual.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td> |
| 19 | <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td> |
| 20 | <th width="100%" align="center">Rasqal RDF Query Library Manual</th> |
| 21 | <td><a accesskey="n" href="rasqal-section-updates.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td> |
| 22 | </tr> |
| 23 | <tr><td colspan="5" class="shortcuts"> |
| 24 | <a href="#rasqal-section-variables-table.synopsis" class="shortcut">Top</a> |
| 25 | | |
| 26 | <a href="#rasqal-section-variables-table.description" class="shortcut">Description</a> |
| 27 | </td></tr> |
| 28 | </table> |
| 29 | <div class="refentry"> |
| 30 | <a name="rasqal-section-variables-table"></a><div class="titlepage"></div> |
| 31 | <div class="refnamediv"><table width="100%"><tr> |
| 32 | <td valign="top"> |
| 33 | <h2><span class="refentrytitle"><a name="rasqal-section-variables-table.top_of_page"></a>Variables Table</span></h2> |
| 34 | <p>Variables Table — A table of variables with optional bound literal values.</p> |
| 35 | </td> |
| 36 | <td valign="top" align="right"></td> |
| 37 | </tr></table></div> |
| 38 | <div class="refsynopsisdiv"> |
| 39 | <a name="rasqal-section-variables-table.synopsis"></a><h2>Synopsis</h2> |
| 40 | <pre class="synopsis">typedef <a class="link" href="rasqal-section-variables-table.html#rasqal-variables-table" title="rasqal_variables_table">rasqal_variables_table</a>; |
| 41 | <a class="link" href="rasqal-section-variables-table.html#rasqal-variables-table" title="rasqal_variables_table"><span class="returnvalue">rasqal_variables_table</span></a> * <a class="link" href="rasqal-section-variables-table.html#rasqal-new-variables-table" title="rasqal_new_variables_table ()">rasqal_new_variables_table</a> (<em class="parameter"><code><a class="link" href="rasqal-section-general.html#rasqal-world" title="rasqal_world"><span class="type">rasqal_world</span></a> *world</code></em>); |
| 42 | <span class="returnvalue">void</span> <a class="link" href="rasqal-section-variables-table.html#rasqal-free-variables-table" title="rasqal_free_variables_table ()">rasqal_free_variables_table</a> (<em class="parameter"><code><a class="link" href="rasqal-section-variables-table.html#rasqal-variables-table" title="rasqal_variables_table"><span class="type">rasqal_variables_table</span></a> *vt</code></em>); |
| 43 | <a class="link" href="rasqal-section-variable.html#rasqal-variable" title="rasqal_variable"><span class="returnvalue">rasqal_variable</span></a> * <a class="link" href="rasqal-section-variables-table.html#rasqal-variables-table-add" title="rasqal_variables_table_add ()">rasqal_variables_table_add</a> (<em class="parameter"><code><a class="link" href="rasqal-section-variables-table.html#rasqal-variables-table" title="rasqal_variables_table"><span class="type">rasqal_variables_table</span></a> *vt</code></em>, |
| 44 | <em class="parameter"><code><a class="link" href="rasqal-section-variable.html#rasqal-variable-type" title="enum rasqal_variable_type"><span class="type">rasqal_variable_type</span></a> type</code></em>, |
| 45 | <em class="parameter"><code>const <span class="type">char</span> *name</code></em>, |
| 46 | <em class="parameter"><code><a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> *value</code></em>); |
| 47 | <a class="link" href="rasqal-section-variable.html#rasqal-variable" title="rasqal_variable"><span class="returnvalue">rasqal_variable</span></a> * <a class="link" href="rasqal-section-variables-table.html#rasqal-variables-table-add2" title="rasqal_variables_table_add2 ()">rasqal_variables_table_add2</a> (<em class="parameter"><code><a class="link" href="rasqal-section-variables-table.html#rasqal-variables-table" title="rasqal_variables_table"><span class="type">rasqal_variables_table</span></a> *vt</code></em>, |
| 48 | <em class="parameter"><code><a class="link" href="rasqal-section-variable.html#rasqal-variable-type" title="enum rasqal_variable_type"><span class="type">rasqal_variable_type</span></a> type</code></em>, |
| 49 | <em class="parameter"><code>const <span class="type">char</span> *name</code></em>, |
| 50 | <em class="parameter"><code><span class="type">size_t</span> name_len</code></em>, |
| 51 | <em class="parameter"><code><a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> *value</code></em>); |
| 52 | <span class="returnvalue">int</span> <a class="link" href="rasqal-section-variables-table.html#rasqal-variables-table-add-variable" title="rasqal_variables_table_add_variable ()">rasqal_variables_table_add_variable</a> (<em class="parameter"><code><a class="link" href="rasqal-section-variables-table.html#rasqal-variables-table" title="rasqal_variables_table"><span class="type">rasqal_variables_table</span></a> *vt</code></em>, |
| 53 | <em class="parameter"><code><a class="link" href="rasqal-section-variable.html#rasqal-variable" title="rasqal_variable"><span class="type">rasqal_variable</span></a> *variable</code></em>); |
| 54 | <a class="link" href="rasqal-section-variable.html#rasqal-variable" title="rasqal_variable"><span class="returnvalue">rasqal_variable</span></a> * <a class="link" href="rasqal-section-variables-table.html#rasqal-variables-table-get-by-name" title="rasqal_variables_table_get_by_name ()">rasqal_variables_table_get_by_name</a> (<em class="parameter"><code><a class="link" href="rasqal-section-variables-table.html#rasqal-variables-table" title="rasqal_variables_table"><span class="type">rasqal_variables_table</span></a> *vt</code></em>, |
| 55 | <em class="parameter"><code><a class="link" href="rasqal-section-variable.html#rasqal-variable-type" title="enum rasqal_variable_type"><span class="type">rasqal_variable_type</span></a> type</code></em>, |
| 56 | <em class="parameter"><code>const <span class="type">char</span> *name</code></em>); |
| 57 | <span class="returnvalue">int</span> <a class="link" href="rasqal-section-variables-table.html#rasqal-variables-table-contains" title="rasqal_variables_table_contains ()">rasqal_variables_table_contains</a> (<em class="parameter"><code><a class="link" href="rasqal-section-variables-table.html#rasqal-variables-table" title="rasqal_variables_table"><span class="type">rasqal_variables_table</span></a> *vt</code></em>, |
| 58 | <em class="parameter"><code><a class="link" href="rasqal-section-variable.html#rasqal-variable-type" title="enum rasqal_variable_type"><span class="type">rasqal_variable_type</span></a> type</code></em>, |
| 59 | <em class="parameter"><code>const <span class="type">char</span> *name</code></em>); |
| 60 | </pre> |
| 61 | </div> |
| 62 | <div class="refsect1"> |
| 63 | <a name="rasqal-section-variables-table.description"></a><h2>Description</h2> |
| 64 | <p> |
| 65 | A table of <a class="link" href="rasqal-section-variable.html#rasqal-variable" title="rasqal_variable"><span class="type">rasqal_variable</span></a> usually associated with a <a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query |
| 66 | or <a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> query result set. The order of the variables in |
| 67 | the table may be significant, such as for a standalone query result set |
| 68 | in which case it might define the order of variables in resulting rows. |
| 69 | </p> |
| 70 | </div> |
| 71 | <div class="refsect1"> |
| 72 | <a name="rasqal-section-variables-table.details"></a><h2>Details</h2> |
| 73 | <div class="refsect2"> |
| 74 | <a name="rasqal-variables-table"></a><h3>rasqal_variables_table</h3> |
| 75 | <pre class="programlisting">typedef struct rasqal_variables_table_s rasqal_variables_table; |
| 76 | </pre> |
| 77 | <p> |
| 78 | Internal - for now |
| 79 | </p> |
| 80 | </div> |
| 81 | <hr> |
| 82 | <div class="refsect2"> |
| 83 | <a name="rasqal-new-variables-table"></a><h3>rasqal_new_variables_table ()</h3> |
| 84 | <pre class="programlisting"><a class="link" href="rasqal-section-variables-table.html#rasqal-variables-table" title="rasqal_variables_table"><span class="returnvalue">rasqal_variables_table</span></a> * rasqal_new_variables_table (<em class="parameter"><code><a class="link" href="rasqal-section-general.html#rasqal-world" title="rasqal_world"><span class="type">rasqal_world</span></a> *world</code></em>);</pre> |
| 85 | <p> |
| 86 | Constructor - create a new variables table |
| 87 | </p> |
| 88 | <div class="variablelist"><table border="0"> |
| 89 | <col align="left" valign="top"> |
| 90 | <tbody> |
| 91 | <tr> |
| 92 | <td><p><span class="term"><em class="parameter"><code>world</code></em> :</span></p></td> |
| 93 | <td>rasqal world</td> |
| 94 | </tr> |
| 95 | <tr> |
| 96 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> |
| 97 | <td>new variables table or NULL On failure</td> |
| 98 | </tr> |
| 99 | </tbody> |
| 100 | </table></div> |
| 101 | </div> |
| 102 | <hr> |
| 103 | <div class="refsect2"> |
| 104 | <a name="rasqal-free-variables-table"></a><h3>rasqal_free_variables_table ()</h3> |
| 105 | <pre class="programlisting"><span class="returnvalue">void</span> rasqal_free_variables_table (<em class="parameter"><code><a class="link" href="rasqal-section-variables-table.html#rasqal-variables-table" title="rasqal_variables_table"><span class="type">rasqal_variables_table</span></a> *vt</code></em>);</pre> |
| 106 | <p> |
| 107 | Destructor - destroy a new variables table |
| 108 | </p> |
| 109 | <div class="variablelist"><table border="0"> |
| 110 | <col align="left" valign="top"> |
| 111 | <tbody><tr> |
| 112 | <td><p><span class="term"><em class="parameter"><code>vt</code></em> :</span></p></td> |
| 113 | <td>rasqal variables table</td> |
| 114 | </tr></tbody> |
| 115 | </table></div> |
| 116 | </div> |
| 117 | <hr> |
| 118 | <div class="refsect2"> |
| 119 | <a name="rasqal-variables-table-add"></a><h3>rasqal_variables_table_add ()</h3> |
| 120 | <pre class="programlisting"><a class="link" href="rasqal-section-variable.html#rasqal-variable" title="rasqal_variable"><span class="returnvalue">rasqal_variable</span></a> * rasqal_variables_table_add (<em class="parameter"><code><a class="link" href="rasqal-section-variables-table.html#rasqal-variables-table" title="rasqal_variables_table"><span class="type">rasqal_variables_table</span></a> *vt</code></em>, |
| 121 | <em class="parameter"><code><a class="link" href="rasqal-section-variable.html#rasqal-variable-type" title="enum rasqal_variable_type"><span class="type">rasqal_variable_type</span></a> type</code></em>, |
| 122 | <em class="parameter"><code>const <span class="type">char</span> *name</code></em>, |
| 123 | <em class="parameter"><code><a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> *value</code></em>);</pre> |
| 124 | <p> |
| 125 | Constructor - Create a new variable and add it to the variables table |
| 126 | </p> |
| 127 | <p> |
| 128 | <em class="parameter"><code>Deprecated</code></em>: for <a class="link" href="rasqal-section-variables-table.html#rasqal-variables-table-add2" title="rasqal_variables_table_add2 ()"><code class="function">rasqal_variables_table_add2()</code></a> which copies the <em class="parameter"><code>name</code></em> |
| 129 | and <em class="parameter"><code>value</code></em> |
| 130 | </p> |
| 131 | <p> |
| 132 | The <em class="parameter"><code>name</code></em> and <em class="parameter"><code>value</code></em> become owned by the rasqal_variable |
| 133 | structure. If a variable with the name already exists, that is |
| 134 | returned and the new <em class="parameter"><code>value</code></em> is ignored. |
| 135 | </p> |
| 136 | <div class="variablelist"><table border="0"> |
| 137 | <col align="left" valign="top"> |
| 138 | <tbody> |
| 139 | <tr> |
| 140 | <td><p><span class="term"><em class="parameter"><code>vt</code></em> :</span></p></td> |
| 141 | <td> |
| 142 | <a class="link" href="rasqal-section-variables-table.html#rasqal-variables-table" title="rasqal_variables_table"><span class="type">rasqal_variables_table</span></a> to associate the variable with</td> |
| 143 | </tr> |
| 144 | <tr> |
| 145 | <td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td> |
| 146 | <td>variable type defined by enumeration rasqal_variable_type</td> |
| 147 | </tr> |
| 148 | <tr> |
| 149 | <td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td> |
| 150 | <td>variable name</td> |
| 151 | </tr> |
| 152 | <tr> |
| 153 | <td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td> |
| 154 | <td>variable <a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> value (or NULL)</td> |
| 155 | </tr> |
| 156 | <tr> |
| 157 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> |
| 158 | <td>a new <a class="link" href="rasqal-section-variable.html#rasqal-variable" title="rasqal_variable"><span class="type">rasqal_variable</span></a> or NULL on failure.</td> |
| 159 | </tr> |
| 160 | </tbody> |
| 161 | </table></div> |
| 162 | </div> |
| 163 | <hr> |
| 164 | <div class="refsect2"> |
| 165 | <a name="rasqal-variables-table-add2"></a><h3>rasqal_variables_table_add2 ()</h3> |
| 166 | <pre class="programlisting"><a class="link" href="rasqal-section-variable.html#rasqal-variable" title="rasqal_variable"><span class="returnvalue">rasqal_variable</span></a> * rasqal_variables_table_add2 (<em class="parameter"><code><a class="link" href="rasqal-section-variables-table.html#rasqal-variables-table" title="rasqal_variables_table"><span class="type">rasqal_variables_table</span></a> *vt</code></em>, |
| 167 | <em class="parameter"><code><a class="link" href="rasqal-section-variable.html#rasqal-variable-type" title="enum rasqal_variable_type"><span class="type">rasqal_variable_type</span></a> type</code></em>, |
| 168 | <em class="parameter"><code>const <span class="type">char</span> *name</code></em>, |
| 169 | <em class="parameter"><code><span class="type">size_t</span> name_len</code></em>, |
| 170 | <em class="parameter"><code><a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> *value</code></em>);</pre> |
| 171 | <p> |
| 172 | Constructor - Create a new variable and add it to the variables table |
| 173 | </p> |
| 174 | <p> |
| 175 | The <em class="parameter"><code>name</code></em> and <em class="parameter"><code>value</code></em> fields are copied. If a variable with the |
| 176 | name already exists, that is returned and the new <em class="parameter"><code>value</code></em> is |
| 177 | ignored. |
| 178 | </p> |
| 179 | <div class="variablelist"><table border="0"> |
| 180 | <col align="left" valign="top"> |
| 181 | <tbody> |
| 182 | <tr> |
| 183 | <td><p><span class="term"><em class="parameter"><code>vt</code></em> :</span></p></td> |
| 184 | <td> |
| 185 | <a class="link" href="rasqal-section-variables-table.html#rasqal-variables-table" title="rasqal_variables_table"><span class="type">rasqal_variables_table</span></a> to associate the variable with</td> |
| 186 | </tr> |
| 187 | <tr> |
| 188 | <td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td> |
| 189 | <td>variable type defined by enumeration rasqal_variable_type</td> |
| 190 | </tr> |
| 191 | <tr> |
| 192 | <td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td> |
| 193 | <td>variable name</td> |
| 194 | </tr> |
| 195 | <tr> |
| 196 | <td><p><span class="term"><em class="parameter"><code>name_len</code></em> :</span></p></td> |
| 197 | <td>length of <em class="parameter"><code>name</code></em> (or 0)</td> |
| 198 | </tr> |
| 199 | <tr> |
| 200 | <td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td> |
| 201 | <td>variable <a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> value (or NULL)</td> |
| 202 | </tr> |
| 203 | <tr> |
| 204 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> |
| 205 | <td>a new <a class="link" href="rasqal-section-variable.html#rasqal-variable" title="rasqal_variable"><span class="type">rasqal_variable</span></a> or NULL on failure.</td> |
| 206 | </tr> |
| 207 | </tbody> |
| 208 | </table></div> |
| 209 | </div> |
| 210 | <hr> |
| 211 | <div class="refsect2"> |
| 212 | <a name="rasqal-variables-table-add-variable"></a><h3>rasqal_variables_table_add_variable ()</h3> |
| 213 | <pre class="programlisting"><span class="returnvalue">int</span> rasqal_variables_table_add_variable (<em class="parameter"><code><a class="link" href="rasqal-section-variables-table.html#rasqal-variables-table" title="rasqal_variables_table"><span class="type">rasqal_variables_table</span></a> *vt</code></em>, |
| 214 | <em class="parameter"><code><a class="link" href="rasqal-section-variable.html#rasqal-variable" title="rasqal_variable"><span class="type">rasqal_variable</span></a> *variable</code></em>);</pre> |
| 215 | <p> |
| 216 | Constructor - Add an existing variable to the variables table |
| 217 | </p> |
| 218 | <p> |
| 219 | The variables table <em class="parameter"><code>vt</code></em> takes a reference to <em class="parameter"><code>variable</code></em>. This |
| 220 | function will fail if the variable is already in the table. Use |
| 221 | <a class="link" href="rasqal-section-variables-table.html#rasqal-variables-table-contains" title="rasqal_variables_table_contains ()"><code class="function">rasqal_variables_table_contains()</code></a> to check before calling. |
| 222 | </p> |
| 223 | <div class="variablelist"><table border="0"> |
| 224 | <col align="left" valign="top"> |
| 225 | <tbody> |
| 226 | <tr> |
| 227 | <td><p><span class="term"><em class="parameter"><code>vt</code></em> :</span></p></td> |
| 228 | <td> |
| 229 | <a class="link" href="rasqal-section-variables-table.html#rasqal-variables-table" title="rasqal_variables_table"><span class="type">rasqal_variables_table</span></a> to associate the variable with</td> |
| 230 | </tr> |
| 231 | <tr> |
| 232 | <td><p><span class="term"><em class="parameter"><code>variable</code></em> :</span></p></td> |
| 233 | <td>existing variable to add</td> |
| 234 | </tr> |
| 235 | <tr> |
| 236 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> |
| 237 | <td>non-0 on failure (such as name already exists)</td> |
| 238 | </tr> |
| 239 | </tbody> |
| 240 | </table></div> |
| 241 | </div> |
| 242 | <hr> |
| 243 | <div class="refsect2"> |
| 244 | <a name="rasqal-variables-table-get-by-name"></a><h3>rasqal_variables_table_get_by_name ()</h3> |
| 245 | <pre class="programlisting"><a class="link" href="rasqal-section-variable.html#rasqal-variable" title="rasqal_variable"><span class="returnvalue">rasqal_variable</span></a> * rasqal_variables_table_get_by_name (<em class="parameter"><code><a class="link" href="rasqal-section-variables-table.html#rasqal-variables-table" title="rasqal_variables_table"><span class="type">rasqal_variables_table</span></a> *vt</code></em>, |
| 246 | <em class="parameter"><code><a class="link" href="rasqal-section-variable.html#rasqal-variable-type" title="enum rasqal_variable_type"><span class="type">rasqal_variable_type</span></a> type</code></em>, |
| 247 | <em class="parameter"><code>const <span class="type">char</span> *name</code></em>);</pre> |
| 248 | <p> |
| 249 | Lookup a variable by type and name in the variables table. |
| 250 | </p> |
| 251 | <p> |
| 252 | Note that looking up for any type <a class="link" href="rasqal-section-variable.html#RASQAL-VARIABLE-TYPE-UNKNOWN:CAPS"><span class="type">RASQAL_VARIABLE_TYPE_UNKNOWN</span></a> |
| 253 | may a name match but for any type so in cases where the query has |
| 254 | both a named and anonymous (extensional) variable, an arbitrary one |
| 255 | will be returned. |
| 256 | </p> |
| 257 | <div class="variablelist"><table border="0"> |
| 258 | <col align="left" valign="top"> |
| 259 | <tbody> |
| 260 | <tr> |
| 261 | <td><p><span class="term"><em class="parameter"><code>vt</code></em> :</span></p></td> |
| 262 | <td>the variables table</td> |
| 263 | </tr> |
| 264 | <tr> |
| 265 | <td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td> |
| 266 | <td>the variable type to match or <a class="link" href="rasqal-section-variable.html#RASQAL-VARIABLE-TYPE-UNKNOWN:CAPS"><span class="type">RASQAL_VARIABLE_TYPE_UNKNOWN</span></a> for any.</td> |
| 267 | </tr> |
| 268 | <tr> |
| 269 | <td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td> |
| 270 | <td>the variable type</td> |
| 271 | </tr> |
| 272 | <tr> |
| 273 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> |
| 274 | <td>a shared pointer to the <a class="link" href="rasqal-section-variable.html#rasqal-variable" title="rasqal_variable"><span class="type">rasqal_variable</span></a> or NULL if not found</td> |
| 275 | </tr> |
| 276 | </tbody> |
| 277 | </table></div> |
| 278 | </div> |
| 279 | <hr> |
| 280 | <div class="refsect2"> |
| 281 | <a name="rasqal-variables-table-contains"></a><h3>rasqal_variables_table_contains ()</h3> |
| 282 | <pre class="programlisting"><span class="returnvalue">int</span> rasqal_variables_table_contains (<em class="parameter"><code><a class="link" href="rasqal-section-variables-table.html#rasqal-variables-table" title="rasqal_variables_table"><span class="type">rasqal_variables_table</span></a> *vt</code></em>, |
| 283 | <em class="parameter"><code><a class="link" href="rasqal-section-variable.html#rasqal-variable-type" title="enum rasqal_variable_type"><span class="type">rasqal_variable_type</span></a> type</code></em>, |
| 284 | <em class="parameter"><code>const <span class="type">char</span> *name</code></em>);</pre> |
| 285 | <p> |
| 286 | Check if there is a variable with the given type and name in the variables table |
| 287 | </p> |
| 288 | <div class="variablelist"><table border="0"> |
| 289 | <col align="left" valign="top"> |
| 290 | <tbody> |
| 291 | <tr> |
| 292 | <td><p><span class="term"><em class="parameter"><code>vt</code></em> :</span></p></td> |
| 293 | <td> |
| 294 | <a class="link" href="rasqal-section-variables-table.html#rasqal-variables-table" title="rasqal_variables_table"><span class="type">rasqal_variables_table</span></a> to lookup</td> |
| 295 | </tr> |
| 296 | <tr> |
| 297 | <td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td> |
| 298 | <td>variable type</td> |
| 299 | </tr> |
| 300 | <tr> |
| 301 | <td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td> |
| 302 | <td>variable name</td> |
| 303 | </tr> |
| 304 | <tr> |
| 305 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> |
| 306 | <td>non-0 if the variable is present</td> |
| 307 | </tr> |
| 308 | </tbody> |
| 309 | </table></div> |
| 310 | </div> |
| 311 | </div> |
| 312 | </div> |
| 313 | <div class="footer"> |
| 314 | <hr> |
| 315 | Generated by GTK-Doc V1.18</div> |
| 316 | </body> |
| 317 | </html> |