<areashape="rect"href="classxercesc_1_1XMemory.html"title="This class makes it possible to override the C++ memory management by adding new/delete..."alt=""coords="5,7,136,31"></map>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Creates a <aclass="el"href="classDynamicContext.html"title="The execution time dynamic context interface.">DynamicContext</a> based on the static context used to parse this query. <ahref="#37dc848b7f57536fa700bd2be416b1f2"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Executes the query using the given <aclass="el"href="classDynamicContext.html"title="The execution time dynamic context interface.">DynamicContext</a>, returning a lazy iterator over the results. <ahref="#3a22ddfd9faa4d7fcdf14fd1a802b331"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Executes the query or stylesheet using the given context item and <aclass="el"href="classDynamicContext.html"title="The execution time dynamic context interface.">DynamicContext</a>, returning a lazy iterator over the results. <ahref="#c32dfd917e525716437d0b5cf22296c5"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Executes the stylesheet starting at the named template using the given <aclass="el"href="classDynamicContext.html"title="The execution time dynamic context interface.">DynamicContext</a>, returning a lazy iterator over the results. <ahref="#3d1fadbf2bb5295d907cbb3c975f2dda"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Executes the query using the given <aclass="el"href="classDynamicContext.html"title="The execution time dynamic context interface.">DynamicContext</a>, sending the output of the query to the given <aclass="el"href="classEventHandler.html">EventHandler</a>. <ahref="#b52ee7dfe788ec943aa6be2ed1e5e1eb"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Executes the query or stylesheet using the given context item and <aclass="el"href="classDynamicContext.html"title="The execution time dynamic context interface.">DynamicContext</a>, sending the output of the query to the given <aclass="el"href="classEventHandler.html">EventHandler</a>. <ahref="#681062277a849d3ec9c1ded71a4c22dd"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Executes the stylesheet starting at the named template using the given <aclass="el"href="classDynamicContext.html"title="The execution time dynamic context interface.">DynamicContext</a>, sending the output of the query to the given <aclass="el"href="classEventHandler.html">EventHandler</a>. <ahref="#944fd2f8b466507994a6e8d9fad1f91a"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Perform static resolution on the query. <ahref="#ebb1ab3434751cf96b4f10aabfd48bdd"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Perform type calculation and related optimizations. <ahref="#3c9aa2a4ecf3e9270049198be975981d"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the expression that was parsed to create this <aclass="el"href="classXQQuery.html"title="Encapsulates a query expression.">XQQuery</a> object. <ahref="#50438749bfdca396ff857de515585e23"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the query plan as XML. This is designed for debug and informative purposes only. <ahref="#6d1666c9dd517b08026346d778d50b1e"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Get the query body as an ASTNode. <ahref="#9bdf9610f65813fdaf43c1e864deb038"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Set the query body to an ASTNode. <ahref="#23208ecb2a66ea1437e8185dc90fc45b"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Adds an XQUserFunction to the query (also adds it as a template if necessary). <ahref="#b876c486d751acb92e6ee62d78c3175a"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns a vector of all XQUserFunction objects from the query. <ahref="#51732e054576e453c196b8bdad1582f5"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Adds a XQGlobalVariable to the query. <ahref="#b11bb071fc6a34cc41a09d7a8f7922bb"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns a vector of all XQGlobalVariable objects from the query. <ahref="#24b830095210a3c4846c82470942fd8a"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns a vector of all XQGlobalVariable objects from the query. <ahref="#80b70ab66101dd2e938c942c466399a7"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the name of the file that this query was parsed from. <ahref="#49033a2ed8c0cc7b95b59a0382171f32"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets the name of the file that this query was parsed from. <ahref="#a4526a237851b8c144b06010486dc646"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets whether this query is a module or not. <ahref="#be331cfc9433f276b52d9b76290eb456"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns whether this query is a module or not. <ahref="#6a2549e688060acc8509f86efa107b6f"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets the module target namespace for this query. <ahref="#9ac6a0983cc3f7352b9a1f0d87bfaf6d"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Gets the module taget namespace for this query. <ahref="#236264220217a0ed71d687b63822c910"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Performs a module import from the given target namespace and locations. <ahref="#9510ef9d81445feec067395efac4dd33"></a><br></td></tr>
<aclass="el"href="classXQQuery.html"title="Encapsulates a query expression.">XQQuery</a> objects are thread safe, and can be executed from multiple threads at the same time - provided a <aclass="el"href="classDynamicContext.html"title="The execution time dynamic context interface.">DynamicContext</a> is used per thread.<p>
Instances of this class can be created by using the parsing methods on the <aclass="el"href="classXQilla.html"title="Provides factory methods for creating XQQuery and DynamicContext objects.">XQilla</a> object.<p>
This class is dependant on the <aclass="el"href="classDynamicContext.html"title="The execution time dynamic context interface.">DynamicContext</a> that was used to create it. This context must not be deleted before the <aclass="el"href="classXQQuery.html"title="Encapsulates a query expression.">XQQuery</a> object. Normally this is acheived by the <aclass="el"href="classXQQuery.html"title="Encapsulates a query expression.">XQQuery</a> adopting the <aclass="el"href="classDynamicContext.html"title="The execution time dynamic context interface.">DynamicContext</a> and deleting it when it is deleted. However, this behaviour can be disabled by using the <aclass="el"href="classXQilla.html#7fbc185e109c8ce3da425054685e8ba199bed3057d85109e34e9f536c30dc514"title="Don't adopt the context and delete it when the XQQuery is deleted.">XQilla::NO_ADOPT_CONTEXT</a> flag when creating the <aclass="el"href="classXQQuery.html"title="Encapsulates a query expression.">XQQuery</a>. <hr><h2>Constructor & Destructor Documentation</h2>
Creates a <aclass="el"href="classDynamicContext.html"title="The execution time dynamic context interface.">DynamicContext</a> based on the static context used to parse this query.
This <aclass="el"href="classDynamicContext.html"title="The execution time dynamic context interface.">DynamicContext</a> will be suitable for using to call <aclass="el"href="classXQQuery.html#3a22ddfd9faa4d7fcdf14fd1a802b331"title="Executes the query using the given DynamicContext, returning a lazy iterator over...">execute()</a>.<p>
<tr><tdvalign="top"></td><tdvalign="top"><em>memMgr</em> </td><td>The memory manager used to create the <aclass="el"href="classDynamicContext.html"title="The execution time dynamic context interface.">DynamicContext</a>.</td></tr>
<dlclass="return"compact><dt><b>Returns:</b></dt><dd>An implementation of <aclass="el"href="classDynamicContext.html"title="The execution time dynamic context interface.">DynamicContext</a></dd></dl>
Executes the query using the given <aclass="el"href="classDynamicContext.html"title="The execution time dynamic context interface.">DynamicContext</a>, returning a lazy iterator over the results.
<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>context</em> </td><td>The <aclass="el"href="classDynamicContext.html"title="The execution time dynamic context interface.">DynamicContext</a> to use to execute the query. This contains runtime values for variables, the value of the context item, and other relevent information.</td></tr>
</table>
</dl>
<dlclass="return"compact><dt><b>Returns:</b></dt><dd>The <aclass="el"href="classResult.html"title="A scoped pointer wrapper for the lazily evaluated query result.">Result</a> object - a lazy iterator over the query results.</dd></dl>
<dlcompact><dt><b>Exceptions:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classXQException.html">XQException</a></em> </td><td>If a runtime error occurs </td></tr>
Executes the query or stylesheet using the given context item and <aclass="el"href="classDynamicContext.html"title="The execution time dynamic context interface.">DynamicContext</a>, returning a lazy iterator over the results.
<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>contextItem</em> </td><td>The context item to use to execute the query. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>context</em> </td><td>The <aclass="el"href="classDynamicContext.html"title="The execution time dynamic context interface.">DynamicContext</a> to use to execute the query. This contains runtime values for variables, the value of the context item, and other relevent information.</td></tr>
</table>
</dl>
<dlclass="return"compact><dt><b>Returns:</b></dt><dd>The <aclass="el"href="classResult.html"title="A scoped pointer wrapper for the lazily evaluated query result.">Result</a> object - a lazy iterator over the query results.</dd></dl>
<dlcompact><dt><b>Exceptions:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classXQException.html">XQException</a></em> </td><td>If a runtime error occurs </td></tr>
Executes the stylesheet starting at the named template using the given <aclass="el"href="classDynamicContext.html"title="The execution time dynamic context interface.">DynamicContext</a>, returning a lazy iterator over the results.
<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>templateQName</em> </td><td>The name of the template to start executing. If the QName includes a prefix, it is resolved using the in-scope namespaces for the stylesheet. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>context</em> </td><td>The <aclass="el"href="classDynamicContext.html"title="The execution time dynamic context interface.">DynamicContext</a> to use to execute the query. This contains runtime values for variables, the value of the context item, and other relevent information.</td></tr>
</table>
</dl>
<dlclass="return"compact><dt><b>Returns:</b></dt><dd>The <aclass="el"href="classResult.html"title="A scoped pointer wrapper for the lazily evaluated query result.">Result</a> object - a lazy iterator over the query results.</dd></dl>
<dlcompact><dt><b>Exceptions:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classXQException.html">XQException</a></em> </td><td>If a runtime error occurs </td></tr>
Executes the query using the given <aclass="el"href="classDynamicContext.html"title="The execution time dynamic context interface.">DynamicContext</a>, sending the output of the query to the given <aclass="el"href="classEventHandler.html">EventHandler</a>.
<tr><tdvalign="top"></td><tdvalign="top"><em>context</em> </td><td>The <aclass="el"href="classDynamicContext.html"title="The execution time dynamic context interface.">DynamicContext</a> to use to execute the query. This contains runtime values for variables, the value of the context item, and other relevent information.</td></tr>
Executes the query or stylesheet using the given context item and <aclass="el"href="classDynamicContext.html"title="The execution time dynamic context interface.">DynamicContext</a>, sending the output of the query to the given <aclass="el"href="classEventHandler.html">EventHandler</a>.
<tr><tdvalign="top"></td><tdvalign="top"><em>contextItem</em> </td><td>The context item to use to execute the query. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>context</em> </td><td>The <aclass="el"href="classDynamicContext.html"title="The execution time dynamic context interface.">DynamicContext</a> to use to execute the query. This contains runtime values for variables, the value of the context item, and other relevent information.</td></tr>
</table>
</dl>
<dlcompact><dt><b>Exceptions:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classXQException.html">XQException</a></em> </td><td>If a runtime error occurs </td></tr>
Executes the stylesheet starting at the named template using the given <aclass="el"href="classDynamicContext.html"title="The execution time dynamic context interface.">DynamicContext</a>, sending the output of the query to the given <aclass="el"href="classEventHandler.html">EventHandler</a>.
<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>templateQName</em> </td><td>The name of the template to start executing. If the QName includes a prefix, it is resolved using the in-scope namespaces for the stylesheet. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>context</em> </td><td>The <aclass="el"href="classDynamicContext.html"title="The execution time dynamic context interface.">DynamicContext</a> to use to execute the query. This contains runtime values for variables, the value of the context item, and other relevent information.</td></tr>
Static resolution resolves prefixes to namespace URIs, variable names to variables, function names to functions, and performs some basic query optimisation.<p>
Normally this is done as part of parsing the query expression. However, if the <aclass="el"href="classXQilla.html#7fbc185e109c8ce3da425054685e8ba13629b3bfdf036418daad522664441e9d"title="Don't perform static resolution or any optimization.">XQilla::NO_STATIC_RESOLUTION</a> flag was specified when the query was parsed, this method will have to be called to perform this step manually.<p>
<tr><tdvalign="top"></td><tdvalign="top"><em>context</em> </td><td>If specified, the <aclass="el"href="classStaticContext.html"title="The parse time static context interface.">StaticContext</a> to use to statically resolve this object. By default, the context used to parse the query is used. This should not need to be changed under normal usage.</td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classXQException.html">XQException</a></em> </td><td>If a static resolution time error occurs </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>context</em> </td><td>If specified, the <aclass="el"href="classStaticContext.html"title="The parse time static context interface.">StaticContext</a> to use to statically resolve this object. By default, the context used to parse the query is used. This should not need to be changed under normal usage.</td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classXQException.html">XQException</a></em> </td><td>If a static resolution time error occurs </td></tr>