402 lines
18 KiB
HTML
402 lines
18 KiB
HTML
<!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>XQilla Simple API Documentation</title>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
|
<link href="tabs.css" rel="stylesheet" type="text/css">
|
|
</head><body>
|
|
<a style="float:right;" href="http://sourceforge.net/projects/xqilla"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=152021&type=2" border="0" alt="SourceForge.net Logo" /></a>
|
|
<!-- 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><a href="namespaces.html"><span>Namespaces</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>
|
|
<li><a href="examples.html"><span>Examples</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>Scope< TYPE > Class Template Reference</h1><!-- doxytag: class="Scope" --><!-- doxytag: inherits="xercesc::XMemory" -->used inside <a class="el" href="classVariableStore.html" title="The pure virtual base class for accessing variables at runtime.">VariableStore</a> to implement variable scoping
|
|
<a href="#_details">More...</a>
|
|
<p>
|
|
<code>#include <<a class="el" href="Scope_8hpp-source.html">Scope.hpp</a>></code>
|
|
<p>
|
|
<div class="dynheader">
|
|
Inheritance diagram for Scope< TYPE >:</div>
|
|
<div class="dynsection">
|
|
<p><center><img src="classScope__inherit__graph.png" border="0" usemap="#Scope_3_01TYPE_01_4__inherit__map" alt="Inheritance graph"></center>
|
|
<map name="Scope_3_01TYPE_01_4__inherit__map">
|
|
<area shape="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>
|
|
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
|
|
|
|
<p>
|
|
<a href="classScope-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 Types</h2></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="classScope.html#357719c423175c6c49b1cf3144cca7a5">Type</a> { <a class="el" href="classScope.html#357719c423175c6c49b1cf3144cca7a5cceac28db5b3a31f4c1bb1a095faffea">GLOBAL_SCOPE</a>,
|
|
<a class="el" href="classScope.html#357719c423175c6c49b1cf3144cca7a5712c77d1f90b905b1a998cd7891ec16b">LOCAL_SCOPE</a>,
|
|
<a class="el" href="classScope.html#357719c423175c6c49b1cf3144cca7a5d73acb935b2b7ad06613203b71754f5b">LOGICAL_BLOCK_SCOPE</a>
|
|
}</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">enum for classifying type of scope <a href="classScope.html#357719c423175c6c49b1cf3144cca7a5">More...</a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef <br>
|
|
xercesc::RefHash2KeysTableOf<br>
|
|
< <a class="el" href="classVarHashEntry.html">VarHashEntry</a>< TYPE > > </td><td class="memItemRight" valign="bottom"><a class="el" href="classScope.html#6a24b848c51155b2656ae11b503ca132">VarHash</a></td></tr>
|
|
|
|
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classScope.html#177936eaead36bafe5e622c8b72bcba7">Scope</a> (<a class="el" href="classXPath2MemoryManager.html">XPath2MemoryManager</a> *memMgr, <a class="el" href="classScope.html#357719c423175c6c49b1cf3144cca7a5">Type</a> type)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">constructor. <a href="#177936eaead36bafe5e622c8b72bcba7"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classScope.html#229a9367bcbf0f874947703c4819d56c">~Scope</a> ()</td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classScope.html#e0e4332611c4e2d6d19c85d75dde5453">clear</a> ()</td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classScope.html#357719c423175c6c49b1cf3144cca7a5">Type</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classScope.html#0f89c57ddb230fa01dac97e6b46a73ae">getType</a> () const </td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classVarHashEntry.html">VarHashEntry</a>< TYPE > * </td><td class="memItemRight" valign="bottom"><a class="el" href="classScope.html#3479f6322803f522b024e4f01b6ffc68">get</a> (unsigned int nsID, const XMLCh *name)</td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classScope.html#eb5cbf8b48e333f9b87244b41d237b8e">put</a> (unsigned int nsID, const XMLCh *name, <a class="el" href="classVarHashEntry.html">VarHashEntry</a>< TYPE > *value)</td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classScope.html#3ecaa09a44e7e7a1003bd7ffd2b9e8cd">remove</a> (unsigned int nsID, const XMLCh *name)</td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">std::vector< std::pair<br>
|
|
< unsigned int, const XMLCh * > > </td><td class="memItemRight" valign="bottom"><a class="el" href="classScope.html#5199e54e3304e533ad2c7e998bb86a81">getVars</a> () const </td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classScope.html">Scope</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classScope.html#fcdfea70b1096d60d4ae41ad4d3df391">getNext</a> ()</td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classScope.html#173df64f4ac82462d3868021caf34144">setNext</a> (<a class="el" href="classScope.html">Scope</a> *next)</td></tr>
|
|
|
|
</table>
|
|
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
|
<h3>template<class TYPE><br>
|
|
class Scope< TYPE ></h3>
|
|
|
|
used inside <a class="el" href="classVariableStore.html" title="The pure virtual base class for accessing variables at runtime.">VariableStore</a> to implement variable scoping <hr><h2>Member Typedef Documentation</h2>
|
|
<a class="anchor" name="6a24b848c51155b2656ae11b503ca132"></a><!-- doxytag: member="Scope::VarHash" ref="6a24b848c51155b2656ae11b503ca132" args="" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<class TYPE> </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">typedef xercesc:: RefHash2KeysTableOf< <a class="el" href="classVarHashEntry.html">VarHashEntry</a><TYPE> > <a class="el" href="classScope.html">Scope</a>< TYPE >::<a class="el" href="classScope.html#6a24b848c51155b2656ae11b503ca132">VarHash</a> </td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
|
|
</div>
|
|
</div><p>
|
|
<hr><h2>Member Enumeration Documentation</h2>
|
|
<a class="anchor" name="357719c423175c6c49b1cf3144cca7a5"></a><!-- doxytag: member="Scope::Type" ref="357719c423175c6c49b1cf3144cca7a5" args="" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<class TYPE> </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">enum <a class="el" href="classScope.html#357719c423175c6c49b1cf3144cca7a5">Scope::Type</a> </td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
enum for classifying type of scope
|
|
<p>
|
|
<dl compact><dt><b>Enumerator: </b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"><em><a class="anchor" name="357719c423175c6c49b1cf3144cca7a5cceac28db5b3a31f4c1bb1a095faffea"></a><!-- doxytag: member="GLOBAL_SCOPE" ref="357719c423175c6c49b1cf3144cca7a5cceac28db5b3a31f4c1bb1a095faffea" args="" -->GLOBAL_SCOPE</em> </td><td>
|
|
</td></tr>
|
|
<tr><td valign="top"><em><a class="anchor" name="357719c423175c6c49b1cf3144cca7a5712c77d1f90b905b1a998cd7891ec16b"></a><!-- doxytag: member="LOCAL_SCOPE" ref="357719c423175c6c49b1cf3144cca7a5712c77d1f90b905b1a998cd7891ec16b" args="" -->LOCAL_SCOPE</em> </td><td>
|
|
</td></tr>
|
|
<tr><td valign="top"><em><a class="anchor" name="357719c423175c6c49b1cf3144cca7a5d73acb935b2b7ad06613203b71754f5b"></a><!-- doxytag: member="LOGICAL_BLOCK_SCOPE" ref="357719c423175c6c49b1cf3144cca7a5d73acb935b2b7ad06613203b71754f5b" args="" -->LOGICAL_BLOCK_SCOPE</em> </td><td>
|
|
</td></tr>
|
|
</table>
|
|
</dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<hr><h2>Constructor & Destructor Documentation</h2>
|
|
<a class="anchor" name="177936eaead36bafe5e622c8b72bcba7"></a><!-- doxytag: member="Scope::Scope" ref="177936eaead36bafe5e622c8b72bcba7" args="(XPath2MemoryManager *memMgr, Type type)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<class TYPE> </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classScope.html">Scope</a>< TYPE >::<a class="el" href="classScope.html">Scope</a> </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classXPath2MemoryManager.html">XPath2MemoryManager</a> * </td>
|
|
<td class="paramname"> <em>memMgr</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="classScope.html#357719c423175c6c49b1cf3144cca7a5">Type</a> </td>
|
|
<td class="paramname"> <em>type</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td width="100%"><code> [inline]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
constructor.
|
|
<p>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="229a9367bcbf0f874947703c4819d56c"></a><!-- doxytag: member="Scope::~Scope" ref="229a9367bcbf0f874947703c4819d56c" args="()" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<class TYPE> </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classScope.html">Scope</a>< TYPE >::~<a class="el" href="classScope.html">Scope</a> </td>
|
|
<td>(</td>
|
|
<td class="paramname"> </td>
|
|
<td> ) </td>
|
|
<td width="100%"><code> [inline]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
|
|
</div>
|
|
</div><p>
|
|
<hr><h2>Member Function Documentation</h2>
|
|
<a class="anchor" name="e0e4332611c4e2d6d19c85d75dde5453"></a><!-- doxytag: member="Scope::clear" ref="e0e4332611c4e2d6d19c85d75dde5453" args="()" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<class TYPE> </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void <a class="el" href="classScope.html">Scope</a>< TYPE >::clear </td>
|
|
<td>(</td>
|
|
<td class="paramname"> </td>
|
|
<td> ) </td>
|
|
<td width="100%"><code> [inline]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="0f89c57ddb230fa01dac97e6b46a73ae"></a><!-- doxytag: member="Scope::getType" ref="0f89c57ddb230fa01dac97e6b46a73ae" args="() const " -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<class TYPE> </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classScope.html">Scope</a>< TYPE >::<a class="el" href="classScope.html#357719c423175c6c49b1cf3144cca7a5">Type</a> <a class="el" href="classScope.html">Scope</a>< TYPE >::getType </td>
|
|
<td>(</td>
|
|
<td class="paramname"> </td>
|
|
<td> ) </td>
|
|
<td width="100%"> const<code> [inline]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="3479f6322803f522b024e4f01b6ffc68"></a><!-- doxytag: member="Scope::get" ref="3479f6322803f522b024e4f01b6ffc68" args="(unsigned int nsID, const XMLCh *name)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<class TYPE> </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classVarHashEntry.html">VarHashEntry</a>< TYPE > * <a class="el" href="classScope.html">Scope</a>< TYPE >::get </td>
|
|
<td>(</td>
|
|
<td class="paramtype">unsigned int </td>
|
|
<td class="paramname"> <em>nsID</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const XMLCh * </td>
|
|
<td class="paramname"> <em>name</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td width="100%"><code> [inline]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="eb5cbf8b48e333f9b87244b41d237b8e"></a><!-- doxytag: member="Scope::put" ref="eb5cbf8b48e333f9b87244b41d237b8e" args="(unsigned int nsID, const XMLCh *name, VarHashEntry< TYPE > *value)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<class TYPE> </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void <a class="el" href="classScope.html">Scope</a>< TYPE >::put </td>
|
|
<td>(</td>
|
|
<td class="paramtype">unsigned int </td>
|
|
<td class="paramname"> <em>nsID</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const XMLCh * </td>
|
|
<td class="paramname"> <em>name</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="classVarHashEntry.html">VarHashEntry</a>< TYPE > * </td>
|
|
<td class="paramname"> <em>value</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td width="100%"><code> [inline]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
|
|
<p>References <a class="el" href="classXPath2MemoryManager.html#ce77d8d5e09bf682301c847b8739c9e0">XPath2MemoryManager::getPooledString()</a>.</p>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="3ecaa09a44e7e7a1003bd7ffd2b9e8cd"></a><!-- doxytag: member="Scope::remove" ref="3ecaa09a44e7e7a1003bd7ffd2b9e8cd" args="(unsigned int nsID, const XMLCh *name)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<class TYPE> </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void <a class="el" href="classScope.html">Scope</a>< TYPE >::remove </td>
|
|
<td>(</td>
|
|
<td class="paramtype">unsigned int </td>
|
|
<td class="paramname"> <em>nsID</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const XMLCh * </td>
|
|
<td class="paramname"> <em>name</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td width="100%"><code> [inline]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="5199e54e3304e533ad2c7e998bb86a81"></a><!-- doxytag: member="Scope::getVars" ref="5199e54e3304e533ad2c7e998bb86a81" args="() const " -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<class TYPE> </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::vector< std::pair< unsigned int, const XMLCh * > > <a class="el" href="classScope.html">Scope</a>< TYPE >::getVars </td>
|
|
<td>(</td>
|
|
<td class="paramname"> </td>
|
|
<td> ) </td>
|
|
<td width="100%"> const<code> [inline]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="fcdfea70b1096d60d4ae41ad4d3df391"></a><!-- doxytag: member="Scope::getNext" ref="fcdfea70b1096d60d4ae41ad4d3df391" args="()" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<class TYPE> </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classScope.html">Scope</a>< TYPE > * <a class="el" href="classScope.html">Scope</a>< TYPE >::getNext </td>
|
|
<td>(</td>
|
|
<td class="paramname"> </td>
|
|
<td> ) </td>
|
|
<td width="100%"><code> [inline]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="173df64f4ac82462d3868021caf34144"></a><!-- doxytag: member="Scope::setNext" ref="173df64f4ac82462d3868021caf34144" args="(Scope *next)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<class TYPE> </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void <a class="el" href="classScope.html">Scope</a>< TYPE >::setNext </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classScope.html">Scope</a>< TYPE > * </td>
|
|
<td class="paramname"> <em>next</em> </td>
|
|
<td> ) </td>
|
|
<td width="100%"><code> [inline]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
|
|
</div>
|
|
</div><p>
|
|
<hr>The documentation for this class was generated from the following file:<ul>
|
|
<li><a class="el" href="Scope_8hpp-source.html">Scope.hpp</a></ul>
|
|
</div>
|
|
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Jan 5 19:54:24 2009 for XQilla Simple API 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>
|