blob: a763f47473aa664a8aa8884fb23b30951e136c96 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Xalan-C++ API : Main Page</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<!-- The head section is copied from Doxygen 1.7.1 generated default output -->
<body>
<h2 align="center">Xalan-C++ API Documentation</h2>
<h3 align="center"><a href="../index.html">The Xalan C++ XSLT Processor Version 1.11</a></h3>
<hr/>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="classes.html"><span>Class&nbsp;Index</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#friends">Friends</a> </div>
<div class="headertitle">
<h1>VariablesStack Class Reference</h1> </div>
</div>
<div class="contents">
<!-- doxytag: class="VariablesStack" -->
<p>Defines a class to keep track of a stack for macro arguments.
<a href="#_details">More...</a></p>
<p><code>#include &lt;<a class="el" href="VariablesStack_8hpp_source.html">VariablesStack.hpp</a>&gt;</code></p>
<div class="dynheader">
Collaboration diagram for VariablesStack:</div>
<div class="dyncontent">
<div class="center"><img src="classVariablesStack__coll__graph.png" border="0" usemap="#VariablesStack_coll__map" alt="Collaboration graph"/></div>
<map name="VariablesStack_coll__map" id="VariablesStack_coll__map">
<area shape="rect" id="node2" href="classXalanVector.html" title="XalanVector\&lt; const ElemVariable * \&gt;" alt="" coords="37,5,299,35"/><area shape="rect" id="node4" href="classXalanVector.html" title="XalanVector\&lt; const ElemTemplateElement * \&gt;" alt="" coords="7,59,329,88"/><area shape="rect" id="node6" href="classXalanVector.html" title="XalanVector\&lt; StackEntry \&gt;" alt="" coords="69,112,267,141"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<p><a href="classVariablesStack-members.html">List of all members.</a></p>
<h2><a name="nested-classes"></a>
Classes</h2>
<ul>
<li>class <b>CommitPushParams</b>
<li>class <a class="el" href="classVariablesStack_1_1InvalidStackContextException.html">InvalidStackContextException</a>
<li>struct <a class="el" href="structVariablesStack_1_1ParamsVectorEntry.html">ParamsVectorEntry</a>
<li>class <a class="el" href="classVariablesStack_1_1PushParamFunctor.html">PushParamFunctor</a>
<li>class <a class="el" href="classVariablesStack_1_1StackEntry.html">StackEntry</a>
</ul>
<h2><a name="pub-types"></a>
Public Types</h2>
<ul>
<li>enum { <a class="el" href="classVariablesStack.html#af2e54a5d6051da802402a22ec86582a4a781440525648ed2d1ed7f6b77e4b968f">eDefaultStackSize</a> = 100
}
<li>typedef unsigned long <a class="el" href="classVariablesStack.html#a7fd7619943fe660032ea441ea0a433fa">size_type</a>
<li>typedef <a class="el" href="classXalanVector.html">XalanVector</a><br class="typebreak"/>
&lt; <a class="el" href="structVariablesStack_1_1ParamsVectorEntry.html">ParamsVectorEntry</a> &gt; <a class="el" href="classVariablesStack.html#aa8d6ef63b3669f337bda0e56f90be005">ParamsVectorType</a>
<li>typedef <a class="el" href="classXalanVector.html">XalanVector</a>&lt; const <br class="typebreak"/>
<a class="el" href="classElemVariable.html">ElemVariable</a> * &gt; <a class="el" href="classVariablesStack.html#a579e9b47ab6edd311f37db7b419dd4a2">RecursionGuardStackType</a>
<li>typedef <a class="el" href="classXalanVector.html">XalanVector</a>&lt; const <br class="typebreak"/>
<a class="el" href="classElemTemplateElement.html">ElemTemplateElement</a> * &gt; <a class="el" href="classVariablesStack.html#a02e8a2a8ce63452db1f551a700c1fe73">ElemTemplateElementStackType</a>
<li>typedef <a class="el" href="classXalanVector.html">XalanVector</a>&lt; <a class="el" href="classVariablesStack_1_1StackEntry.html">StackEntry</a> &gt; <a class="el" href="classVariablesStack.html#ad62fd14d8b94c209bdb17be51c951d07">VariableStackStackType</a>
</ul>
<h2><a name="pub-methods"></a>
Public Member Functions</h2>
<ul>
<li><a class="el" href="classVariablesStack.html#a4e05954a575683bfb1beffd2ed174976">VariablesStack</a> (MemoryManager &amp;theManager)
<dl class="el"><dd class="mdescRight">Constructor for a variable stack. <a href="#a4e05954a575683bfb1beffd2ed174976"></a><br/></dl><li><a class="el" href="classVariablesStack.html#a4e5e8d12a9b4b4ec206b368291eba079">~VariablesStack</a> ()
<li>void <a class="el" href="classVariablesStack.html#a49a7ad35edc8ced3b2823a8fe71cd475">reset</a> ()
<dl class="el"><dd class="mdescRight">Reset the stack. <a href="#a49a7ad35edc8ced3b2823a8fe71cd475"></a><br/></dl><li>void <a class="el" href="classVariablesStack.html#a22cb0b3865d3e23430cd9577f106ffa1">pushElementFrame</a> (const <a class="el" href="classElemTemplateElement.html">ElemTemplateElement</a> *elem)
<dl class="el"><dd class="mdescRight">Push a frame marker for an element. <a href="#a22cb0b3865d3e23430cd9577f106ffa1"></a><br/></dl><li>void <a class="el" href="classVariablesStack.html#a314db836a5f75b573bcda25f6db073d9">popElementFrame</a> ()
<dl class="el"><dd class="mdescRight">Pop a frame marker for an element. <a href="#a314db836a5f75b573bcda25f6db073d9"></a><br/></dl><li>void <a class="el" href="classVariablesStack.html#a8a9948252e7809e86fb694a27965017a">pushContextMarker</a> ()
<dl class="el"><dd class="mdescRight">Push a context marker onto the stack to let us know when to stop searching for a var. <a href="#a8a9948252e7809e86fb694a27965017a"></a><br/></dl><li>void <a class="el" href="classVariablesStack.html#a872afe26095e946384944c3ebcebf8ea">popContextMarker</a> ()
<dl class="el"><dd class="mdescRight">Pop the current context from the current context stack. <a href="#a872afe26095e946384944c3ebcebf8ea"></a><br/></dl><li>void <a class="el" href="classVariablesStack.html#a3bea621b0ebecf3ad7442db2992ed5ba">pushParams</a> (const <a class="el" href="classXalanVector.html">ParamsVectorType</a> &amp;theParams)
<dl class="el"><dd class="mdescRight">Push the provided objects as parameters. <a href="#a3bea621b0ebecf3ad7442db2992ed5ba"></a><br/></dl><li>const <a class="el" href="classXObjectPtr.html">XObjectPtr</a> <a class="el" href="classVariablesStack.html#a6e3fa5c1e7e8320d77d313e0ea345376">getParamVariable</a> (const <a class="el" href="classXalanQName.html">XalanQName</a> &amp;qname, <a class="el" href="classStylesheetExecutionContext.html">StylesheetExecutionContext</a> &amp;executionContext, bool &amp;fNameFound)
<dl class="el"><dd class="mdescRight">Given a name, return a string representing the value, but don't look in the global space. <a href="#a6e3fa5c1e7e8320d77d313e0ea345376"></a><br/></dl><li>const <a class="el" href="classXObjectPtr.html">XObjectPtr</a> <a class="el" href="classVariablesStack.html#a42cf1846873844127d85e167254f73d8">getVariable</a> (const <a class="el" href="classXalanQName.html">XalanQName</a> &amp;qname, <a class="el" href="classStylesheetExecutionContext.html">StylesheetExecutionContext</a> &amp;executionContext, bool &amp;fNameFound)
<dl class="el"><dd class="mdescRight">Given a name, find the corresponding <a class="el" href="classXObject.html" title="Class to hold XPath return types.">XObject</a>. <a href="#a42cf1846873844127d85e167254f73d8"></a><br/></dl><li>void <a class="el" href="classVariablesStack.html#acbed07bdd239566370fddd0a70888a13">pushVariable</a> (const <a class="el" href="classXalanQName.html">XalanQName</a> &amp;name, const <a class="el" href="classElemVariable.html">ElemVariable</a> *var, const <a class="el" href="classElemTemplateElement.html">ElemTemplateElement</a> *e)
<dl class="el"><dd class="mdescRight">Push a named variable onto the processor variable stack. <a href="#acbed07bdd239566370fddd0a70888a13"></a><br/></dl><li>void <a class="el" href="classVariablesStack.html#ae412acac36dd9bca801a15acb0e6c7c1">pushVariable</a> (const <a class="el" href="classXalanQName.html">XalanQName</a> &amp;name, const <a class="el" href="classXObjectPtr.html">XObjectPtr</a> &amp;val, const <a class="el" href="classElemTemplateElement.html">ElemTemplateElement</a> *e)
<dl class="el"><dd class="mdescRight">Push a named variable onto the processor variable stack. <a href="#ae412acac36dd9bca801a15acb0e6c7c1"></a><br/></dl><li>void <a class="el" href="classVariablesStack.html#a4f186dbab0128f5ff2e191377098d384">start</a> ()
<dl class="el"><dd class="mdescRight">Mark the top of the stack. <a href="#a4f186dbab0128f5ff2e191377098d384"></a><br/></dl><li>void <a class="el" href="classVariablesStack.html#a72a013d4eb683570308ea76bcec88eb3">resetParams</a> ()
<dl class="el"><dd class="mdescRight">Reset all params in the current stack frame. <a href="#a72a013d4eb683570308ea76bcec88eb3"></a><br/></dl><li>void <a class="el" href="classVariablesStack.html#ab73776d931df185c93dddc930bc66313">markGlobalStackFrame</a> ()
<dl class="el"><dd class="mdescRight">Mark the top of the global stack frame. <a href="#ab73776d931df185c93dddc930bc66313"></a><br/></dl><li>void <a class="el" href="classVariablesStack.html#a47f556e5989f0250efe7768affa61603">unmarkGlobalStackFrame</a> ()
<dl class="el"><dd class="mdescRight">Clear the marking of the global stack frame. <a href="#a47f556e5989f0250efe7768affa61603"></a><br/></dl><li>void <a class="el" href="classVariablesStack.html#add5391890382038cd00f2823e8c8edae">setCurrentStackFrameIndex</a> (<a class="el" href="classVariablesStack.html#a7fd7619943fe660032ea441ea0a433fa">size_type</a> currentStackFrameIndex=~0u)
<dl class="el"><dd class="mdescRight">Set the top of the stack frame from where a search for a variable or param should take place. <a href="#add5391890382038cd00f2823e8c8edae"></a><br/></dl><li><a class="el" href="classVariablesStack.html#a7fd7619943fe660032ea441ea0a433fa">size_type</a> <a class="el" href="classVariablesStack.html#ad54e99ca87aa993e8efe3974ff89386d">getCurrentStackFrameIndex</a> () const
<dl class="el"><dd class="mdescRight">Get the top of the stack frame from where a search for a variable or param should take place. <a href="#ad54e99ca87aa993e8efe3974ff89386d"></a><br/></dl><li><a class="el" href="classVariablesStack.html#a7fd7619943fe660032ea441ea0a433fa">size_type</a> <a class="el" href="classVariablesStack.html#ad5dc776bc5622bcdc80da9a53b8eafb7">getGlobalStackFrameIndex</a> () const
<dl class="el"><dd class="mdescRight">Get the top of the global stack frame. <a href="#ad5dc776bc5622bcdc80da9a53b8eafb7"></a><br/></dl><li><a class="el" href="classVariablesStack.html#a7fd7619943fe660032ea441ea0a433fa">size_type</a> <a class="el" href="classVariablesStack.html#addf7ccb69b19485c7ff937222be73d6e">getStackSize</a> () const
</ul>
<h2><a name="friends"></a>
Friends</h2>
<ul>
<li>class <a class="el" href="classVariablesStack.html#a8af14835d532faaf1b6464e8b3460b91">CommitPushParams</a>
<li>class <a class="el" href="classVariablesStack.html#a1766fc5bc367f05c35c4d96282824df2">CommitPushElementFrame</a>
<li>class <a class="el" href="classVariablesStack.html#a3915358081bbc41349448b8a2ae95c00">EnsurePop</a>
<li>class <a class="el" href="classVariablesStack.html#a8088063ebf3ff04cfc091125c678dfe1">PushParamFunctor</a>
<li>class <a class="el" href="classVariablesStack.html#a1376930dc26b27a26d89b6c70c8a63cf">SetAndRestoreForceGlobalSearch</a>
</ul>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Defines a class to keep track of a stack for macro arguments. </p>
<p>Definition at line <a class="el" href="VariablesStack_8hpp_source.html#l00060">60</a> of file <a class="el" href="VariablesStack_8hpp_source.html">VariablesStack.hpp</a>.</p>
<hr/><h2>Member Typedef Documentation</h2>
<a class="anchor" id="a02e8a2a8ce63452db1f551a700c1fe73"></a><!-- doxytag: member="VariablesStack::ElemTemplateElementStackType" ref="a02e8a2a8ce63452db1f551a700c1fe73" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef <a class="el" href="classXalanVector.html">XalanVector</a>&lt;const <a class="el" href="classElemTemplateElement.html">ElemTemplateElement</a>*&gt; <a class="el" href="classXalanVector.html">VariablesStack::ElemTemplateElementStackType</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="VariablesStack_8hpp_source.html#l00148">148</a> of file <a class="el" href="VariablesStack_8hpp_source.html">VariablesStack.hpp</a>.</p>
</div>
</div>
<a class="anchor" id="aa8d6ef63b3669f337bda0e56f90be005"></a><!-- doxytag: member="VariablesStack::ParamsVectorType" ref="aa8d6ef63b3669f337bda0e56f90be005" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef <a class="el" href="classXalanVector.html">XalanVector</a>&lt;<a class="el" href="structVariablesStack_1_1ParamsVectorEntry.html">ParamsVectorEntry</a>&gt; <a class="el" href="classXalanVector.html">VariablesStack::ParamsVectorType</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="VariablesStack_8hpp_source.html#l00146">146</a> of file <a class="el" href="VariablesStack_8hpp_source.html">VariablesStack.hpp</a>.</p>
</div>
</div>
<a class="anchor" id="a579e9b47ab6edd311f37db7b419dd4a2"></a><!-- doxytag: member="VariablesStack::RecursionGuardStackType" ref="a579e9b47ab6edd311f37db7b419dd4a2" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef <a class="el" href="classXalanVector.html">XalanVector</a>&lt;const <a class="el" href="classElemVariable.html">ElemVariable</a>*&gt; <a class="el" href="classXalanVector.html">VariablesStack::RecursionGuardStackType</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="VariablesStack_8hpp_source.html#l00147">147</a> of file <a class="el" href="VariablesStack_8hpp_source.html">VariablesStack.hpp</a>.</p>
</div>
</div>
<a class="anchor" id="a7fd7619943fe660032ea441ea0a433fa"></a><!-- doxytag: member="VariablesStack::size_type" ref="a7fd7619943fe660032ea441ea0a433fa" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef unsigned long <a class="el" href="classVariablesStack.html#a7fd7619943fe660032ea441ea0a433fa">VariablesStack::size_type</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="VariablesStack_8hpp_source.html#l00064">64</a> of file <a class="el" href="VariablesStack_8hpp_source.html">VariablesStack.hpp</a>.</p>
</div>
</div>
<a class="anchor" id="ad62fd14d8b94c209bdb17be51c951d07"></a><!-- doxytag: member="VariablesStack::VariableStackStackType" ref="ad62fd14d8b94c209bdb17be51c951d07" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef <a class="el" href="classXalanVector.html">XalanVector</a>&lt;<a class="el" href="classVariablesStack_1_1StackEntry.html">StackEntry</a>&gt; <a class="el" href="classXalanVector.html">VariablesStack::VariableStackStackType</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="VariablesStack_8hpp_source.html#l00481">481</a> of file <a class="el" href="VariablesStack_8hpp_source.html">VariablesStack.hpp</a>.</p>
</div>
</div>
<hr/><h2>Member Enumeration Documentation</h2>
<a class="anchor" id="af2e54a5d6051da802402a22ec86582a4"></a><!-- doxytag: member="VariablesStack::@12" ref="af2e54a5d6051da802402a22ec86582a4" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">anonymous enum</td>
</tr>
</table>
</div>
<div class="memdoc">
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="af2e54a5d6051da802402a22ec86582a4a781440525648ed2d1ed7f6b77e4b968f"></a><!-- doxytag: member="eDefaultStackSize" ref="af2e54a5d6051da802402a22ec86582a4a781440525648ed2d1ed7f6b77e4b968f" args="" -->eDefaultStackSize</em>&nbsp;</td><td>
</td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="VariablesStack_8hpp_source.html#l00489">489</a> of file <a class="el" href="VariablesStack_8hpp_source.html">VariablesStack.hpp</a>.</p>
</div>
</div>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a4e05954a575683bfb1beffd2ed174976"></a><!-- doxytag: member="VariablesStack::VariablesStack" ref="a4e05954a575683bfb1beffd2ed174976" args="(MemoryManager &amp;theManager)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">VariablesStack::VariablesStack </td>
<td>(</td>
<td class="paramtype">MemoryManager &amp;&nbsp;</td>
<td class="paramname"> <em>theManager</em></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [explicit]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Constructor for a variable stack. </p>
</div>
</div>
<a class="anchor" id="a4e5e8d12a9b4b4ec206b368291eba079"></a><!-- doxytag: member="VariablesStack::~VariablesStack" ref="a4e5e8d12a9b4b4ec206b368291eba079" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">VariablesStack::~VariablesStack </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ad54e99ca87aa993e8efe3974ff89386d"></a><!-- doxytag: member="VariablesStack::getCurrentStackFrameIndex" ref="ad54e99ca87aa993e8efe3974ff89386d" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classVariablesStack.html#a7fd7619943fe660032ea441ea0a433fa">size_type</a> VariablesStack::getCurrentStackFrameIndex </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the top of the stack frame from where a search for a variable or param should take place. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>current value of index </dd></dl>
<p>Definition at line <a class="el" href="VariablesStack_8hpp_source.html#l00281">281</a> of file <a class="el" href="VariablesStack_8hpp_source.html">VariablesStack.hpp</a>.</p>
</div>
</div>
<a class="anchor" id="ad5dc776bc5622bcdc80da9a53b8eafb7"></a><!-- doxytag: member="VariablesStack::getGlobalStackFrameIndex" ref="ad5dc776bc5622bcdc80da9a53b8eafb7" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classVariablesStack.html#a7fd7619943fe660032ea441ea0a433fa">size_type</a> VariablesStack::getGlobalStackFrameIndex </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the top of the global stack frame. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>current value of index </dd></dl>
<p>Definition at line <a class="el" href="VariablesStack_8hpp_source.html#l00292">292</a> of file <a class="el" href="VariablesStack_8hpp_source.html">VariablesStack.hpp</a>.</p>
</div>
</div>
<a class="anchor" id="a6e3fa5c1e7e8320d77d313e0ea345376"></a><!-- doxytag: member="VariablesStack::getParamVariable" ref="a6e3fa5c1e7e8320d77d313e0ea345376" args="(const XalanQName &amp;qname, StylesheetExecutionContext &amp;executionContext, bool &amp;fNameFound)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const <a class="el" href="classXObjectPtr.html">XObjectPtr</a> VariablesStack::getParamVariable </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classXalanQName.html">XalanQName</a> &amp;&nbsp;</td>
<td class="paramname"> <em>qname</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classStylesheetExecutionContext.html">StylesheetExecutionContext</a> &amp;&nbsp;</td>
<td class="paramname"> <em>executionContext</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool &amp;&nbsp;</td>
<td class="paramname"> <em>fNameFound</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Given a name, return a string representing the value, but don't look in the global space. </p>
<p>Since the variable may not yet have been evaluated, this may return a null <a class="el" href="classXObjectPtr.html" title="Class to hold XObjectPtr return types.">XObjectPtr</a>.</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>theName</em>&nbsp;</td><td>name of variable </td></tr>
<tr><td valign="top"></td><td valign="top"><em>exeuctionContext</em>&nbsp;</td><td>the current execution context </td></tr>
<tr><td valign="top"></td><td valign="top"><em>fNameFound</em>&nbsp;</td><td>set to true if the name was found, false if not. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>pointer to <a class="el" href="classXObject.html" title="Class to hold XPath return types.">XObject</a> for variable </dd></dl>
<p>Definition at line <a class="el" href="VariablesStack_8hpp_source.html#l00170">170</a> of file <a class="el" href="VariablesStack_8hpp_source.html">VariablesStack.hpp</a>.</p>
</div>
</div>
<a class="anchor" id="addf7ccb69b19485c7ff937222be73d6e"></a><!-- doxytag: member="VariablesStack::getStackSize" ref="addf7ccb69b19485c7ff937222be73d6e" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classVariablesStack.html#a7fd7619943fe660032ea441ea0a433fa">size_type</a> VariablesStack::getStackSize </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="VariablesStack_8hpp_source.html#l00484">484</a> of file <a class="el" href="VariablesStack_8hpp_source.html">VariablesStack.hpp</a>.</p>
</div>
</div>
<a class="anchor" id="a42cf1846873844127d85e167254f73d8"></a><!-- doxytag: member="VariablesStack::getVariable" ref="a42cf1846873844127d85e167254f73d8" args="(const XalanQName &amp;qname, StylesheetExecutionContext &amp;executionContext, bool &amp;fNameFound)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const <a class="el" href="classXObjectPtr.html">XObjectPtr</a> VariablesStack::getVariable </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classXalanQName.html">XalanQName</a> &amp;&nbsp;</td>
<td class="paramname"> <em>qname</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classStylesheetExecutionContext.html">StylesheetExecutionContext</a> &amp;&nbsp;</td>
<td class="paramname"> <em>executionContext</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool &amp;&nbsp;</td>
<td class="paramname"> <em>fNameFound</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Given a name, find the corresponding <a class="el" href="classXObject.html" title="Class to hold XPath return types.">XObject</a>. </p>
<p>If the variable exists, but has not yet been evaluated, the variable will be evaluated and the result returned. This may return a null <a class="el" href="classXObjectPtr.html" title="Class to hold XObjectPtr return types.">XObjectPtr</a>, if the variable was not found.</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>qname</em>&nbsp;</td><td>name of variable </td></tr>
<tr><td valign="top"></td><td valign="top"><em>exeuctionContext</em>&nbsp;</td><td>the current execution context </td></tr>
<tr><td valign="top"></td><td valign="top"><em>fNameFound</em>&nbsp;</td><td>set to true if the name was found, false if not. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>pointer to the corresponding <a class="el" href="classXObject.html" title="Class to hold XPath return types.">XObject</a> </dd></dl>
<p>Definition at line <a class="el" href="VariablesStack_8hpp_source.html#l00190">190</a> of file <a class="el" href="VariablesStack_8hpp_source.html">VariablesStack.hpp</a>.</p>
</div>
</div>
<a class="anchor" id="ab73776d931df185c93dddc930bc66313"></a><!-- doxytag: member="VariablesStack::markGlobalStackFrame" ref="ab73776d931df185c93dddc930bc66313" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void VariablesStack::markGlobalStackFrame </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Mark the top of the global stack frame. </p>
</div>
</div>
<a class="anchor" id="a872afe26095e946384944c3ebcebf8ea"></a><!-- doxytag: member="VariablesStack::popContextMarker" ref="a872afe26095e946384944c3ebcebf8ea" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void VariablesStack::popContextMarker </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Pop the current context from the current context stack. </p>
</div>
</div>
<a class="anchor" id="a314db836a5f75b573bcda25f6db073d9"></a><!-- doxytag: member="VariablesStack::popElementFrame" ref="a314db836a5f75b573bcda25f6db073d9" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void VariablesStack::popElementFrame </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Pop a frame marker for an element. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>elem</em>&nbsp;</td><td>the element </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a8a9948252e7809e86fb694a27965017a"></a><!-- doxytag: member="VariablesStack::pushContextMarker" ref="a8a9948252e7809e86fb694a27965017a" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void VariablesStack::pushContextMarker </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Push a context marker onto the stack to let us know when to stop searching for a var. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>caller</em>&nbsp;</td><td>caller node </td></tr>
<tr><td valign="top"></td><td valign="top"><em>sourceNode</em>&nbsp;</td><td>source node </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a22cb0b3865d3e23430cd9577f106ffa1"></a><!-- doxytag: member="VariablesStack::pushElementFrame" ref="a22cb0b3865d3e23430cd9577f106ffa1" args="(const ElemTemplateElement *elem)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void VariablesStack::pushElementFrame </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classElemTemplateElement.html">ElemTemplateElement</a> *&nbsp;</td>
<td class="paramname"> <em>elem</em></td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Push a frame marker for an element. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>elem</em>&nbsp;</td><td>the element </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a3bea621b0ebecf3ad7442db2992ed5ba"></a><!-- doxytag: member="VariablesStack::pushParams" ref="a3bea621b0ebecf3ad7442db2992ed5ba" args="(const ParamsVectorType &amp;theParams)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void VariablesStack::pushParams </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classXalanVector.html">ParamsVectorType</a> &amp;&nbsp;</td>
<td class="paramname"> <em>theParams</em></td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Push the provided objects as parameters. </p>
<p>You must call <a class="el" href="classVariablesStack.html#a872afe26095e946384944c3ebcebf8ea" title="Pop the current context from the current context stack.">popContextMarker()</a> when you are done with the arguments.</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>theParam</em>&nbsp;</td><td>The vector containing the parameters. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="acbed07bdd239566370fddd0a70888a13"></a><!-- doxytag: member="VariablesStack::pushVariable" ref="acbed07bdd239566370fddd0a70888a13" args="(const XalanQName &amp;name, const ElemVariable *var, const ElemTemplateElement *e)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void VariablesStack::pushVariable </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classXalanQName.html">XalanQName</a> &amp;&nbsp;</td>
<td class="paramname"> <em>name</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classElemVariable.html">ElemVariable</a> *&nbsp;</td>
<td class="paramname"> <em>var</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classElemTemplateElement.html">ElemTemplateElement</a> *&nbsp;</td>
<td class="paramname"> <em>e</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Push a named variable onto the processor variable stack. </p>
<p>Don't forget to call startContext before pushing a series of arguments for a given template.</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>name</em>&nbsp;</td><td>name of variable </td></tr>
<tr><td valign="top"></td><td valign="top"><em>val</em>&nbsp;</td><td>pointer to <a class="el" href="classElemVariable.html">ElemVariable</a> </td></tr>
<tr><td valign="top"></td><td valign="top"><em>e</em>&nbsp;</td><td>element marker for variable </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ae412acac36dd9bca801a15acb0e6c7c1"></a><!-- doxytag: member="VariablesStack::pushVariable" ref="ae412acac36dd9bca801a15acb0e6c7c1" args="(const XalanQName &amp;name, const XObjectPtr &amp;val, const ElemTemplateElement *e)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void VariablesStack::pushVariable </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classXalanQName.html">XalanQName</a> &amp;&nbsp;</td>
<td class="paramname"> <em>name</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classXObjectPtr.html">XObjectPtr</a> &amp;&nbsp;</td>
<td class="paramname"> <em>val</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classElemTemplateElement.html">ElemTemplateElement</a> *&nbsp;</td>
<td class="paramname"> <em>e</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Push a named variable onto the processor variable stack. </p>
<p>Don't forget to call startContext before pushing a series of arguments for a given template.</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>name</em>&nbsp;</td><td>name of variable </td></tr>
<tr><td valign="top"></td><td valign="top"><em>val</em>&nbsp;</td><td>pointer to <a class="el" href="classXObject.html" title="Class to hold XPath return types.">XObject</a> value </td></tr>
<tr><td valign="top"></td><td valign="top"><em>e</em>&nbsp;</td><td>element marker for variable </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a49a7ad35edc8ced3b2823a8fe71cd475"></a><!-- doxytag: member="VariablesStack::reset" ref="a49a7ad35edc8ced3b2823a8fe71cd475" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void VariablesStack::reset </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Reset the stack. </p>
</div>
</div>
<a class="anchor" id="a72a013d4eb683570308ea76bcec88eb3"></a><!-- doxytag: member="VariablesStack::resetParams" ref="a72a013d4eb683570308ea76bcec88eb3" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void VariablesStack::resetParams </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Reset all params in the current stack frame. </p>
</div>
</div>
<a class="anchor" id="add5391890382038cd00f2823e8c8edae"></a><!-- doxytag: member="VariablesStack::setCurrentStackFrameIndex" ref="add5391890382038cd00f2823e8c8edae" args="(size_type currentStackFrameIndex=~0u)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void VariablesStack::setCurrentStackFrameIndex </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classVariablesStack.html#a7fd7619943fe660032ea441ea0a433fa">size_type</a>&nbsp;</td>
<td class="paramname"> <em>currentStackFrameIndex</em> = <code>~0u</code></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Set the top of the stack frame from where a search for a variable or param should take place. </p>
<p>Calling with no parameter will cause the index to be set to the size of the stack.</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>currentStackFrameIndex</em>&nbsp;</td><td>new value of index </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="VariablesStack_8hpp_source.html#l00260">260</a> of file <a class="el" href="VariablesStack_8hpp_source.html">VariablesStack.hpp</a>.</p>
</div>
</div>
<a class="anchor" id="a4f186dbab0128f5ff2e191377098d384"></a><!-- doxytag: member="VariablesStack::start" ref="a4f186dbab0128f5ff2e191377098d384" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void VariablesStack::start </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Mark the top of the stack. </p>
</div>
</div>
<a class="anchor" id="a47f556e5989f0250efe7768affa61603"></a><!-- doxytag: member="VariablesStack::unmarkGlobalStackFrame" ref="a47f556e5989f0250efe7768affa61603" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void VariablesStack::unmarkGlobalStackFrame </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Clear the marking of the global stack frame. </p>
</div>
</div>
<hr/><h2>Friends And Related Function Documentation</h2>
<a class="anchor" id="a1766fc5bc367f05c35c4d96282824df2"></a><!-- doxytag: member="VariablesStack::CommitPushElementFrame" ref="a1766fc5bc367f05c35c4d96282824df2" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">friend class CommitPushElementFrame<code> [friend]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="VariablesStack_8hpp_source.html#l00553">553</a> of file <a class="el" href="VariablesStack_8hpp_source.html">VariablesStack.hpp</a>.</p>
</div>
</div>
<a class="anchor" id="a8af14835d532faaf1b6464e8b3460b91"></a><!-- doxytag: member="VariablesStack::CommitPushParams" ref="a8af14835d532faaf1b6464e8b3460b91" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">friend class CommitPushParams<code> [friend]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="VariablesStack_8hpp_source.html#l00514">514</a> of file <a class="el" href="VariablesStack_8hpp_source.html">VariablesStack.hpp</a>.</p>
</div>
</div>
<a class="anchor" id="a3915358081bbc41349448b8a2ae95c00"></a><!-- doxytag: member="VariablesStack::EnsurePop" ref="a3915358081bbc41349448b8a2ae95c00" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">friend class EnsurePop<code> [friend]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="VariablesStack_8hpp_source.html#l00554">554</a> of file <a class="el" href="VariablesStack_8hpp_source.html">VariablesStack.hpp</a>.</p>
</div>
</div>
<a class="anchor" id="a8088063ebf3ff04cfc091125c678dfe1"></a><!-- doxytag: member="VariablesStack::PushParamFunctor" ref="a8088063ebf3ff04cfc091125c678dfe1" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">friend class <a class="el" href="classVariablesStack_1_1PushParamFunctor.html">PushParamFunctor</a><code> [friend]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="VariablesStack_8hpp_source.html#l00555">555</a> of file <a class="el" href="VariablesStack_8hpp_source.html">VariablesStack.hpp</a>.</p>
</div>
</div>
<a class="anchor" id="a1376930dc26b27a26d89b6c70c8a63cf"></a><!-- doxytag: member="VariablesStack::SetAndRestoreForceGlobalSearch" ref="a1376930dc26b27a26d89b6c70c8a63cf" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">friend class SetAndRestoreForceGlobalSearch<code> [friend]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="VariablesStack_8hpp_source.html#l00556">556</a> of file <a class="el" href="VariablesStack_8hpp_source.html">VariablesStack.hpp</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="VariablesStack_8hpp_source.html">VariablesStack.hpp</a></li>
</ul>
</div>
<p align="center"><a href="graph_legend.html">Interpreting class diagrams</a></p>
<p><font color="#000000" face="arial,helvetica,sanserif" size="-1">
<i><a href="http://www.doxygen.org/">Doxygen</a> and
<a href="http://www.graphviz.org/">GraphViz</a> are
used to generate this API documentation from the Xalan-C header files.</i></font></p>
<table border="0" cellpadding="0" cellspacing="0" width="80%">
<tr>
<td width="80%" valign="top">
<p align="center"><b>Xalan-C++ XSLT Processor Version 1.11</b><br/>
Copyright &copy; 1999-2012 The Apache Software Foundation.<br/>
All Rights Reserved.</p>
</td>
</tr>
<tr>
<td width="100%">
<p align="center"><img src="asf_logo_wide.gif" width="268" height="25" align="bottom" border="0" alt="Apache Logo">
</td>
</tr>
</table>
</body>
</html>