203 lines
31 KiB
HTML
203 lines
31 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.8.5 -->
|
|
<div id="navrow1" class="tabs">
|
|
<ul class="tablist">
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
|
<li><a href="annotated.html"><span>Classes</span></a></li>
|
|
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
|
<li><a href="examples.html"><span>Examples</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div id="navrow2" class="tabs2">
|
|
<ul class="tablist">
|
|
<li><a href="files.html"><span>File List</span></a></li>
|
|
<li><a href="globals.html"><span>File Members</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_e3266bbc227f825a287bdb912a8a79c0.html">include</a></li><li class="navelem"><a class="el" href="dir_a1bc92396ffc8a3dc7aa16f9f9aed8c7.html">xqilla</a></li><li class="navelem"><a class="el" href="dir_0d8d8d528984d74693bf008fd4d605d0.html">context</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<div class="title">Scope.hpp</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="Scope_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div>
|
|
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * Copyright (c) 2001, 2008,</span></div>
|
|
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * DecisionSoft Limited. All rights reserved.</span></div>
|
|
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * Copyright (c) 2004, 2018 Oracle and/or its affiliates. All rights reserved.</span></div>
|
|
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * </span></div>
|
|
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> *</span></div>
|
|
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</span></div>
|
|
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> * you may not use this file except in compliance with the License.</span></div>
|
|
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> * You may obtain a copy of the License at</span></div>
|
|
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> *</span></div>
|
|
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span></div>
|
|
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> *</span></div>
|
|
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * Unless required by applicable law or agreed to in writing, software</span></div>
|
|
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</span></div>
|
|
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div>
|
|
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> * See the License for the specific language governing permissions and</span></div>
|
|
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> * limitations under the License.</span></div>
|
|
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> </div>
|
|
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment">/*</span></div>
|
|
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment"> Scope</span></div>
|
|
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment">*/</span></div>
|
|
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> </div>
|
|
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#ifndef _SCOPE_HPP</span></div>
|
|
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor"></span><span class="preprocessor">#define _SCOPE_HPP</span></div>
|
|
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor"></span></div>
|
|
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include <xqilla/framework/XQillaExport.hpp></span></div>
|
|
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include <<a class="code" href="VarHashEntry_8hpp.html">xqilla/context/VarHashEntry.hpp</a>></span></div>
|
|
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include <vector></span></div>
|
|
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#include <xercesc/util/RefHash2KeysTableOf.hpp></span></div>
|
|
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#include <<a class="code" href="XMemory_8hpp.html">xercesc/util/XMemory.hpp</a>></span></div>
|
|
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> </div>
|
|
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="classVarHashEntry.html"> 33</a></span> <span class="keyword">template</span><<span class="keyword">class</span> TYPE> <span class="keyword">class </span><a class="code" href="classVarHashEntry.html">VarHashEntry</a>;</div>
|
|
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> </div>
|
|
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="keyword">template</span><<span class="keyword">class</span> TYPE></div>
|
|
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="classScope.html"> 37</a></span> <span class="keyword">class </span><a class="code" href="classScope.html">Scope</a> : <span class="keyword">public</span> XERCES_CPP_NAMESPACE_QUALIFIER <a class="code" href="classxercesc_1_1XMemory.html#ac0d26f65a82ff229bc1e4dbaaac79e84">XMemory</a></div>
|
|
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> {</div>
|
|
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="keyword">public</span>:</div>
|
|
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="classScope.html#a357719c423175c6c49b1cf3144cca7a5"> 41</a></span>  <span class="keyword">typedef</span> <span class="keyword">enum</span> {</div>
|
|
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="classScope.html#a357719c423175c6c49b1cf3144cca7a5acceac28db5b3a31f4c1bb1a095faffea"> 42</a></span>  <a class="code" href="classScope.html#a357719c423175c6c49b1cf3144cca7a5acceac28db5b3a31f4c1bb1a095faffea">GLOBAL_SCOPE</a>,</div>
|
|
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="classScope.html#a357719c423175c6c49b1cf3144cca7a5a712c77d1f90b905b1a998cd7891ec16b"> 43</a></span>  <a class="code" href="classScope.html#a357719c423175c6c49b1cf3144cca7a5a712c77d1f90b905b1a998cd7891ec16b">LOCAL_SCOPE</a>,</div>
|
|
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="classScope.html#a357719c423175c6c49b1cf3144cca7a5ad73acb935b2b7ad06613203b71754f5b"> 44</a></span>  <a class="code" href="classScope.html#a357719c423175c6c49b1cf3144cca7a5ad73acb935b2b7ad06613203b71754f5b">LOGICAL_BLOCK_SCOPE</a></div>
|
|
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  } <a class="code" href="classScope.html#a357719c423175c6c49b1cf3144cca7a5">Type</a>;</div>
|
|
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> </div>
|
|
<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="classScope.html#a6a24b848c51155b2656ae11b503ca132"> 47</a></span>  <span class="keyword">typedef</span> XERCES_CPP_NAMESPACE_QUALIFIER RefHash2KeysTableOf< VarHashEntry<TYPE> > <a class="code" href="classScope.html#a6a24b848c51155b2656ae11b503ca132">VarHash</a>;</div>
|
|
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> </div>
|
|
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <a class="code" href="classScope.html#a177936eaead36bafe5e622c8b72bcba7">Scope</a>(<a class="code" href="classXPath2MemoryManager.html">XPath2MemoryManager</a>* memMgr, <a class="code" href="classScope.html#a357719c423175c6c49b1cf3144cca7a5">Type</a> type);</div>
|
|
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <a class="code" href="classScope.html#a229a9367bcbf0f874947703c4819d56c">~Scope</a>();</div>
|
|
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> </div>
|
|
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="keywordtype">void</span> <a class="code" href="classScope.html#ae0e4332611c4e2d6d19c85d75dde5453">clear</a>();</div>
|
|
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> </div>
|
|
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <a class="code" href="classScope.html#a357719c423175c6c49b1cf3144cca7a5">Type</a> <a class="code" href="classScope.html#a0f89c57ddb230fa01dac97e6b46a73ae">getType</a>() <span class="keyword">const</span>;</div>
|
|
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <a class="code" href="classVarHashEntry.html">VarHashEntry<TYPE></a>* <span class="keyword">get</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> nsID, <span class="keyword">const</span> XMLCh* name);</div>
|
|
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="keywordtype">void</span> <a class="code" href="classScope.html#aeb5cbf8b48e333f9b87244b41d237b8e">put</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> nsID, <span class="keyword">const</span> XMLCh* name, <a class="code" href="classVarHashEntry.html">VarHashEntry<TYPE></a>* value);</div>
|
|
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="keywordtype">void</span> <span class="keyword">remove</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> nsID, <span class="keyword">const</span> XMLCh* name);</div>
|
|
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  std::vector< std::pair<unsigned int, const XMLCh*> > <a class="code" href="classScope.html#a5199e54e3304e533ad2c7e998bb86a81">getVars</a>() <span class="keyword">const</span>;</div>
|
|
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span> </div>
|
|
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <a class="code" href="classScope.html">Scope</a>* <a class="code" href="classScope.html#afcdfea70b1096d60d4ae41ad4d3df391">getNext</a>();</div>
|
|
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keywordtype">void</span> <a class="code" href="classScope.html#a173df64f4ac82462d3868021caf34144">setNext</a>(<a class="code" href="classScope.html">Scope</a>* next);</div>
|
|
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  </div>
|
|
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span> <span class="keyword">private</span>:</div>
|
|
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keyword">typename</span> <a class="code" href="classScope.html#a357719c423175c6c49b1cf3144cca7a5">Scope<TYPE>::Type</a> _type;</div>
|
|
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <a class="code" href="classScope.html#a6a24b848c51155b2656ae11b503ca132">VarHash</a> _map;</div>
|
|
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <a class="code" href="classXPath2MemoryManager.html">XPath2MemoryManager</a>* _memMgr;</div>
|
|
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <a class="code" href="classScope.html">Scope<TYPE></a>* _next;</div>
|
|
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span> };</div>
|
|
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span> </div>
|
|
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span> <span class="keyword">template</span><<span class="keyword">class</span> TYPE></div>
|
|
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="classScope.html#a177936eaead36bafe5e622c8b72bcba7"> 72</a></span> <a class="code" href="classScope.html#a177936eaead36bafe5e622c8b72bcba7">Scope<TYPE>::Scope</a>(<a class="code" href="classXPath2MemoryManager.html">XPath2MemoryManager</a>* memMgr, <a class="code" href="classScope.html#a357719c423175c6c49b1cf3144cca7a5">Type</a> type) :</div>
|
|
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  _map(17, true, memMgr)</div>
|
|
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span> {</div>
|
|
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  _memMgr=memMgr;</div>
|
|
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  _type = type;</div>
|
|
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  _next = NULL;</div>
|
|
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span> }</div>
|
|
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span> </div>
|
|
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span> <span class="keyword">template</span><<span class="keyword">class</span> TYPE></div>
|
|
<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="classScope.html#ae0e4332611c4e2d6d19c85d75dde5453"> 81</a></span> <span class="keywordtype">void</span> <a class="code" href="classScope.html#ae0e4332611c4e2d6d19c85d75dde5453">Scope<TYPE>::clear</a>()</div>
|
|
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span> {</div>
|
|
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  _map.removeAll();</div>
|
|
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span> }</div>
|
|
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span> </div>
|
|
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span> <span class="keyword">template</span><<span class="keyword">class</span> TYPE></div>
|
|
<div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="classScope.html#a0f89c57ddb230fa01dac97e6b46a73ae"> 87</a></span> <span class="keyword">typename</span> <a class="code" href="classScope.html#a357719c423175c6c49b1cf3144cca7a5">Scope<TYPE>::Type</a> <a class="code" href="classScope.html#a0f89c57ddb230fa01dac97e6b46a73ae">Scope<TYPE>::getType</a>()<span class="keyword"> const</span></div>
|
|
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span> <span class="keyword"></span>{</div>
|
|
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <span class="keywordflow">return</span> _type;</div>
|
|
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span> }</div>
|
|
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span> </div>
|
|
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span> <span class="keyword">template</span><<span class="keyword">class</span> TYPE></div>
|
|
<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="classScope.html#a3479f6322803f522b024e4f01b6ffc68"> 93</a></span> <a class="code" href="classVarHashEntry.html">VarHashEntry<TYPE></a>* <a class="code" href="classScope.html#a3479f6322803f522b024e4f01b6ffc68">Scope<TYPE>::get</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> nsID, <span class="keyword">const</span> XMLCh* name)</div>
|
|
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span> {</div>
|
|
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <span class="keywordflow">return</span> _map.get(name,nsID);</div>
|
|
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span> }</div>
|
|
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span> </div>
|
|
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span> <span class="keyword">template</span><<span class="keyword">class</span> TYPE></div>
|
|
<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="classScope.html#aeb5cbf8b48e333f9b87244b41d237b8e"> 99</a></span> <span class="keywordtype">void</span> <a class="code" href="classScope.html#aeb5cbf8b48e333f9b87244b41d237b8e">Scope<TYPE>::put</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> nsID, <span class="keyword">const</span> XMLCh* name, <a class="code" href="classVarHashEntry.html">VarHashEntry<TYPE></a>* value)</div>
|
|
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span> {</div>
|
|
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  _map.put((<span class="keywordtype">void</span>*)_memMgr->getPooledString(name),nsID,value);</div>
|
|
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span> }</div>
|
|
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span> </div>
|
|
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span> <span class="keyword">template</span><<span class="keyword">class</span> TYPE></div>
|
|
<div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="classScope.html#a3ecaa09a44e7e7a1003bd7ffd2b9e8cd"> 105</a></span> <span class="keywordtype">void</span> <a class="code" href="classScope.html#a3ecaa09a44e7e7a1003bd7ffd2b9e8cd">Scope<TYPE>::remove</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> nsID, <span class="keyword">const</span> XMLCh* name)</div>
|
|
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span> {</div>
|
|
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  _map.removeKey(name,nsID);</div>
|
|
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span> }</div>
|
|
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span> </div>
|
|
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span> <span class="keyword">template</span><<span class="keyword">class</span> TYPE></div>
|
|
<div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="classScope.html#a5199e54e3304e533ad2c7e998bb86a81"> 111</a></span> std::vector< std::pair<unsigned int, const XMLCh*> > <a class="code" href="classScope.html#a5199e54e3304e533ad2c7e998bb86a81">Scope<TYPE>::getVars</a>()<span class="keyword"> const</span></div>
|
|
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span> <span class="keyword"></span>{</div>
|
|
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  std::vector< std::pair<unsigned int, const XMLCh*> > result;</div>
|
|
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  XERCES_CPP_NAMESPACE_QUALIFIER RefHash2KeysTableOfEnumerator< VarHashEntry<TYPE> > iterator(const_cast<VarHash*>(&_map));</div>
|
|
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <span class="keywordflow">while</span>(iterator.hasMoreElements())</div>
|
|
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  {</div>
|
|
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  XMLCh* name;</div>
|
|
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <span class="keywordtype">int</span> nsID;</div>
|
|
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  iterator.nextElementKey((<span class="keywordtype">void</span>*&)name, nsID);</div>
|
|
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  result.push_back(std::pair<unsigned int, const XMLCh*>(nsID,name));</div>
|
|
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  }</div>
|
|
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <span class="keywordflow">return</span> result;</div>
|
|
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span> }</div>
|
|
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span> </div>
|
|
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span> <span class="keyword">template</span><<span class="keyword">class</span> TYPE></div>
|
|
<div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="classScope.html#a229a9367bcbf0f874947703c4819d56c"> 126</a></span> <a class="code" href="classScope.html#a229a9367bcbf0f874947703c4819d56c">Scope<TYPE>::~Scope</a>()</div>
|
|
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span> {</div>
|
|
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  _map.removeAll();</div>
|
|
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span> }</div>
|
|
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span> </div>
|
|
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span> <span class="keyword">template</span><<span class="keyword">class</span> TYPE></div>
|
|
<div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="classScope.html#afcdfea70b1096d60d4ae41ad4d3df391"> 132</a></span> <a class="code" href="classScope.html">Scope<TYPE></a>* <a class="code" href="classScope.html#afcdfea70b1096d60d4ae41ad4d3df391">Scope<TYPE>::getNext</a>()</div>
|
|
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span> {</div>
|
|
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  <span class="keywordflow">return</span> _next;</div>
|
|
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span> }</div>
|
|
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span> </div>
|
|
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span> <span class="keyword">template</span><<span class="keyword">class</span> TYPE></div>
|
|
<div class="line"><a name="l00138"></a><span class="lineno"><a class="line" href="classScope.html#a173df64f4ac82462d3868021caf34144"> 138</a></span> <span class="keywordtype">void</span> <a class="code" href="classScope.html#a173df64f4ac82462d3868021caf34144">Scope<TYPE>::setNext</a>(<a class="code" href="classScope.html">Scope<TYPE></a>* next)</div>
|
|
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span> {</div>
|
|
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  _next=next;</div>
|
|
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span> }</div>
|
|
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span> </div>
|
|
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span> <span class="preprocessor">#endif // _SCOPE_HPP</span></div>
|
|
<div class="ttc" id="classScope_html_a357719c423175c6c49b1cf3144cca7a5a712c77d1f90b905b1a998cd7891ec16b"><div class="ttname"><a href="classScope.html#a357719c423175c6c49b1cf3144cca7a5a712c77d1f90b905b1a998cd7891ec16b">Scope::LOCAL_SCOPE</a></div><div class="ttdef"><b>Definition:</b> Scope.hpp:43</div></div>
|
|
<div class="ttc" id="classScope_html_a357719c423175c6c49b1cf3144cca7a5"><div class="ttname"><a href="classScope.html#a357719c423175c6c49b1cf3144cca7a5">Scope::Type</a></div><div class="ttdeci">Type</div><div class="ttdoc">enum for classifying type of scope </div><div class="ttdef"><b>Definition:</b> Scope.hpp:41</div></div>
|
|
<div class="ttc" id="classXPath2MemoryManager_html"><div class="ttname"><a href="classXPath2MemoryManager.html">XPath2MemoryManager</a></div><div class="ttdef"><b>Definition:</b> XPath2MemoryManager.hpp:45</div></div>
|
|
<div class="ttc" id="classScope_html_ae0e4332611c4e2d6d19c85d75dde5453"><div class="ttname"><a href="classScope.html#ae0e4332611c4e2d6d19c85d75dde5453">Scope::clear</a></div><div class="ttdeci">void clear()</div><div class="ttdef"><b>Definition:</b> Scope.hpp:81</div></div>
|
|
<div class="ttc" id="classScope_html_afcdfea70b1096d60d4ae41ad4d3df391"><div class="ttname"><a href="classScope.html#afcdfea70b1096d60d4ae41ad4d3df391">Scope::getNext</a></div><div class="ttdeci">Scope * getNext()</div><div class="ttdef"><b>Definition:</b> Scope.hpp:132</div></div>
|
|
<div class="ttc" id="classScope_html_a3ecaa09a44e7e7a1003bd7ffd2b9e8cd"><div class="ttname"><a href="classScope.html#a3ecaa09a44e7e7a1003bd7ffd2b9e8cd">Scope::remove</a></div><div class="ttdeci">void remove(unsigned int nsID, const XMLCh *name)</div><div class="ttdef"><b>Definition:</b> Scope.hpp:105</div></div>
|
|
<div class="ttc" id="classScope_html_aeb5cbf8b48e333f9b87244b41d237b8e"><div class="ttname"><a href="classScope.html#aeb5cbf8b48e333f9b87244b41d237b8e">Scope::put</a></div><div class="ttdeci">void put(unsigned int nsID, const XMLCh *name, VarHashEntry< TYPE > *value)</div><div class="ttdef"><b>Definition:</b> Scope.hpp:99</div></div>
|
|
<div class="ttc" id="classScope_html_a6a24b848c51155b2656ae11b503ca132"><div class="ttname"><a href="classScope.html#a6a24b848c51155b2656ae11b503ca132">Scope::VarHash</a></div><div class="ttdeci">xercesc::RefHash2KeysTableOf< VarHashEntry< TYPE > > VarHash</div><div class="ttdef"><b>Definition:</b> Scope.hpp:47</div></div>
|
|
<div class="ttc" id="classxercesc_1_1XMemory_html_ac0d26f65a82ff229bc1e4dbaaac79e84"><div class="ttname"><a href="classxercesc_1_1XMemory.html#ac0d26f65a82ff229bc1e4dbaaac79e84">xercesc::XMemory::XMemory</a></div><div class="ttdeci">XMemory()</div><div class="ttdoc">Protected default constructor. </div><div class="ttdef"><b>Definition:</b> XMemory.hpp:130</div></div>
|
|
<div class="ttc" id="classScope_html_a177936eaead36bafe5e622c8b72bcba7"><div class="ttname"><a href="classScope.html#a177936eaead36bafe5e622c8b72bcba7">Scope::Scope</a></div><div class="ttdeci">Scope(XPath2MemoryManager *memMgr, Type type)</div><div class="ttdoc">constructor. </div><div class="ttdef"><b>Definition:</b> Scope.hpp:72</div></div>
|
|
<div class="ttc" id="classScope_html_a3479f6322803f522b024e4f01b6ffc68"><div class="ttname"><a href="classScope.html#a3479f6322803f522b024e4f01b6ffc68">Scope::get</a></div><div class="ttdeci">VarHashEntry< TYPE > * get(unsigned int nsID, const XMLCh *name)</div><div class="ttdef"><b>Definition:</b> Scope.hpp:93</div></div>
|
|
<div class="ttc" id="classVarHashEntry_html"><div class="ttname"><a href="classVarHashEntry.html">VarHashEntry</a></div><div class="ttdoc">The class that stores the values of the variables. </div><div class="ttdef"><b>Definition:</b> Scope.hpp:33</div></div>
|
|
<div class="ttc" id="classScope_html_a173df64f4ac82462d3868021caf34144"><div class="ttname"><a href="classScope.html#a173df64f4ac82462d3868021caf34144">Scope::setNext</a></div><div class="ttdeci">void setNext(Scope *next)</div><div class="ttdef"><b>Definition:</b> Scope.hpp:138</div></div>
|
|
<div class="ttc" id="classScope_html_a229a9367bcbf0f874947703c4819d56c"><div class="ttname"><a href="classScope.html#a229a9367bcbf0f874947703c4819d56c">Scope::~Scope</a></div><div class="ttdeci">~Scope()</div><div class="ttdef"><b>Definition:</b> Scope.hpp:126</div></div>
|
|
<div class="ttc" id="VarHashEntry_8hpp_html"><div class="ttname"><a href="VarHashEntry_8hpp.html">VarHashEntry.hpp</a></div></div>
|
|
<div class="ttc" id="classScope_html_a357719c423175c6c49b1cf3144cca7a5acceac28db5b3a31f4c1bb1a095faffea"><div class="ttname"><a href="classScope.html#a357719c423175c6c49b1cf3144cca7a5acceac28db5b3a31f4c1bb1a095faffea">Scope::GLOBAL_SCOPE</a></div><div class="ttdef"><b>Definition:</b> Scope.hpp:42</div></div>
|
|
<div class="ttc" id="XMemory_8hpp_html"><div class="ttname"><a href="XMemory_8hpp.html">XMemory.hpp</a></div></div>
|
|
<div class="ttc" id="classScope_html_a357719c423175c6c49b1cf3144cca7a5ad73acb935b2b7ad06613203b71754f5b"><div class="ttname"><a href="classScope.html#a357719c423175c6c49b1cf3144cca7a5ad73acb935b2b7ad06613203b71754f5b">Scope::LOGICAL_BLOCK_SCOPE</a></div><div class="ttdef"><b>Definition:</b> Scope.hpp:44</div></div>
|
|
<div class="ttc" id="classScope_html_a5199e54e3304e533ad2c7e998bb86a81"><div class="ttname"><a href="classScope.html#a5199e54e3304e533ad2c7e998bb86a81">Scope::getVars</a></div><div class="ttdeci">std::vector< std::pair< unsigned int, const XMLCh * > > getVars() const </div><div class="ttdef"><b>Definition:</b> Scope.hpp:111</div></div>
|
|
<div class="ttc" id="classScope_html"><div class="ttname"><a href="classScope.html">Scope</a></div><div class="ttdoc">used inside VariableStore to implement variable scoping </div><div class="ttdef"><b>Definition:</b> Scope.hpp:37</div></div>
|
|
<div class="ttc" id="classScope_html_a0f89c57ddb230fa01dac97e6b46a73ae"><div class="ttname"><a href="classScope.html#a0f89c57ddb230fa01dac97e6b46a73ae">Scope::getType</a></div><div class="ttdeci">Type getType() const </div><div class="ttdef"><b>Definition:</b> Scope.hpp:87</div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.5
|
|
</small></address>
|
|
</body>
|
|
</html>
|