1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US"> 3<head> 4<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> 5<meta http-equiv="X-UA-Compatible" content="IE=11"/> 6<meta name="generator" content="Doxygen 1.9.6"/> 7<meta name="viewport" content="width=device-width, initial-scale=1"/> 8<title>Lutok: state.hpp Source File</title> 9<link href="tabs.css" rel="stylesheet" type="text/css"/> 10<script type="text/javascript" src="jquery.js"></script> 11<script type="text/javascript" src="dynsections.js"></script> 12<link href="search/search.css" rel="stylesheet" type="text/css"/> 13<script type="text/javascript" src="search/searchdata.js"></script> 14<script type="text/javascript" src="search/search.js"></script> 15<link href="doxygen.css" rel="stylesheet" type="text/css" /> 16</head> 17<body> 18<div id="top"><!-- do not remove this div, it is closed by doxygen! --> 19<div id="titlearea"> 20<table cellspacing="0" cellpadding="0"> 21 <tbody> 22 <tr id="projectrow"> 23 <td id="projectalign"> 24 <div id="projectname">Lutok<span id="projectnumber"> 0.6.2</span> 25 </div> 26 </td> 27 </tr> 28 </tbody> 29</table> 30</div> 31<!-- end header part --> 32<!-- Generated by Doxygen 1.9.6 --> 33<script type="text/javascript"> 34/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */ 35var searchBox = new SearchBox("searchBox", "search/",'.html'); 36/* @license-end */ 37</script> 38<script type="text/javascript" src="menudata.js"></script> 39<script type="text/javascript" src="menu.js"></script> 40<script type="text/javascript"> 41/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */ 42$(function() { 43 initMenu('',true,false,'search.php','Search'); 44 $(document).ready(function() { init_search(); }); 45}); 46/* @license-end */ 47</script> 48<div id="main-nav"></div> 49</div><!-- top --> 50<!-- window showing the filter options --> 51<div id="MSearchSelectWindow" 52 onmouseover="return searchBox.OnSearchSelectShow()" 53 onmouseout="return searchBox.OnSearchSelectHide()" 54 onkeydown="return searchBox.OnSearchSelectKey(event)"> 55</div> 56 57<!-- iframe showing the search results (closed by default) --> 58<div id="MSearchResultsWindow"> 59<div id="MSearchResults"> 60<div class="SRPage"> 61<div id="SRIndex"> 62<div id="SRResults"></div> 63<div class="SRStatus" id="Loading">Loading...</div> 64<div class="SRStatus" id="Searching">Searching...</div> 65<div class="SRStatus" id="NoMatches">No Matches</div> 66</div> 67</div> 68</div> 69</div> 70 71<div class="header"> 72 <div class="headertitle"><div class="title">state.hpp</div></div> 73</div><!--header--> 74<div class="contents"> 75<a href="a00029.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="comment">// Copyright 2011 Google Inc.</span></div> 76<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment">// All rights reserved.</span></div> 77<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment">//</span></div> 78<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment">// Redistribution and use in source and binary forms, with or without</span></div> 79<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="comment">// modification, are permitted provided that the following conditions are</span></div> 80<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="comment">// met:</span></div> 81<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="comment">//</span></div> 82<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="comment">// * Redistributions of source code must retain the above copyright</span></div> 83<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="comment">// notice, this list of conditions and the following disclaimer.</span></div> 84<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="comment">// * Redistributions in binary form must reproduce the above copyright</span></div> 85<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="comment">// notice, this list of conditions and the following disclaimer in the</span></div> 86<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="comment">// documentation and/or other materials provided with the distribution.</span></div> 87<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="comment">// * Neither the name of Google Inc. nor the names of its contributors</span></div> 88<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="comment">// may be used to endorse or promote products derived from this software</span></div> 89<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="comment">// without specific prior written permission.</span></div> 90<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="comment">//</span></div> 91<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="comment">// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS</span></div> 92<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="comment">// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT</span></div> 93<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span><span class="comment">// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR</span></div> 94<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span><span class="comment">// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT</span></div> 95<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="comment">// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,</span></div> 96<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span><span class="comment">// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT</span></div> 97<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="comment">// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,</span></div> 98<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="comment">// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY</span></div> 99<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="comment">// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT</span></div> 100<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="comment">// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE</span></div> 101<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="comment">// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span></div> 102<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> </div> 103<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> </div> 104<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span><span class="preprocessor">#if !defined(LUTOK_STATE_HPP)</span></div> 105<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span><span class="preprocessor">#define LUTOK_STATE_HPP</span></div> 106<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> </div> 107<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span><span class="preprocessor">#include <memory></span></div> 108<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span><span class="preprocessor">#include <string></span></div> 109<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> </div> 110<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span><span class="keyword">namespace </span>lutok {</div> 111<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> </div> 112<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> </div> 113<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span><span class="keyword">class </span>debug;</div> 114<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span><span class="keyword">class </span>state;</div> 115<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> </div> 116<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> </div> 117<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"><a class="line" href="a00029.html#a8c623ca426c30c5fab4df2cb21635f17"> 50</a></span><span class="keyword">typedef</span> int (*cxx_function)(<a class="code hl_class" href="a00919.html">state</a>&);</div> 118<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> </div> 119<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> </div> 120<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span><span class="keyword">extern</span> <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code hl_variable" href="a00029.html#aeca83848a196d4259e249833cd32c806">registry_index</a>;</div> 121<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> </div> 122<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> </div> 123<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"><a class="line" href="a00919.html"> 71</a></span><span class="keyword">class </span><a class="code hl_class" href="a00919.html">state</a> {</div> 124<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> <span class="keyword">struct </span><a class="code hl_struct" href="a00915.html">impl</a>;</div> 125<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> </div> 126<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"><a class="line" href="a00919.html#a46953d97b73c00aa13fb98d4f0bb28c5"> 75</a></span> std::shared_ptr< impl > <a class="code hl_variable" href="a00919.html#a46953d97b73c00aa13fb98d4f0bb28c5">_pimpl</a>;</div> 127<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> </div> 128<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> <span class="keywordtype">void</span>* <a class="code hl_function" href="a00919.html#a5f2fa48408831695914e4a57acf85a7c">new_userdata_voidp</a>(<span class="keyword">const</span> <span class="keywordtype">size_t</span>);</div> 129<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> <span class="keywordtype">void</span>* <a class="code hl_function" href="a00919.html#a4054e2df5af0cc5db61c7560637406ea">to_userdata_voidp</a>(<span class="keyword">const</span> <span class="keywordtype">int</span>);</div> 130<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> </div> 131<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code hl_class" href="a00883.html">state_c_gate</a>;</div> 132<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> <span class="keyword">explicit</span> <a class="code hl_function" href="a00919.html#ae952d08c75d4d07eef07fc00a608c4b4">state</a>(<span class="keywordtype">void</span>*);</div> 133<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> <span class="keywordtype">void</span>* <a class="code hl_function" href="a00919.html#a2b577a4a090b67aa5b9b7a3f0762ca18">raw_state</a>(<span class="keywordtype">void</span>);</div> 134<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> </div> 135<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span><span class="keyword">public</span>:</div> 136<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> <a class="code hl_function" href="a00919.html#ae952d08c75d4d07eef07fc00a608c4b4">state</a>(<span class="keywordtype">void</span>);</div> 137<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> <a class="code hl_function" href="a00919.html#a2b163a6db54c80d3ad1d8d324e7e7fe1">~state</a>(<span class="keywordtype">void</span>);</div> 138<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> </div> 139<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> <span class="keywordtype">void</span> <a class="code hl_function" href="a00919.html#a16c2f95e91f64c5ac89258ee5dcd34e2">close</a>(<span class="keywordtype">void</span>);</div> 140<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> <span class="keywordtype">void</span> <a class="code hl_function" href="a00919.html#a0291a3b34c5bed860d8d53e54eaee349">get_global</a>(<span class="keyword">const</span> std::string&);</div> 141<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> <span class="keywordtype">void</span> <a class="code hl_function" href="a00919.html#a2287f1dd03e6a72837ab020512927ee6">get_global_table</a>(<span class="keywordtype">void</span>);</div> 142<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="a00919.html#a0d4f5204547cac3e4855e375f6bc64cb">get_metafield</a>(<span class="keyword">const</span> <span class="keywordtype">int</span>, <span class="keyword">const</span> std::string&);</div> 143<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="a00919.html#abbbafa23bb49ccc04e0f32f47b629ae5">get_metatable</a>(<span class="keyword">const</span> <span class="keywordtype">int</span>);</div> 144<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> <span class="keywordtype">void</span> <a class="code hl_function" href="a00919.html#a8865c4d7ee8a5d9f9ffeff22b8819648">get_table</a>(<span class="keyword">const</span> <span class="keywordtype">int</span>);</div> 145<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> <span class="keywordtype">int</span> <a class="code hl_function" href="a00919.html#af8591bfdccb2e8732c147a8a6623b2e5">get_top</a>(<span class="keywordtype">void</span>);</div> 146<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> <span class="keywordtype">void</span> <a class="code hl_function" href="a00919.html#a69d7e97f6140c24382fbfd05aa16ad72">insert</a>(<span class="keyword">const</span> <span class="keywordtype">int</span>);</div> 147<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="a00919.html#a4efb903445d053766fe54800d36d4deb">is_boolean</a>(<span class="keyword">const</span> <span class="keywordtype">int</span>);</div> 148<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="a00919.html#ab454ca52fec8413fde1d46df003c19c0">is_function</a>(<span class="keyword">const</span> <span class="keywordtype">int</span>);</div> 149<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="a00919.html#a21c5f4f63cf89db0f16dd032f0612a78">is_nil</a>(<span class="keyword">const</span> <span class="keywordtype">int</span>);</div> 150<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="a00919.html#acd31e0953ee71c94903e5444bf451eb1">is_number</a>(<span class="keyword">const</span> <span class="keywordtype">int</span>);</div> 151<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="a00919.html#af82c354bbcedaa5f7b2f8b8e6f6c69b5">is_string</a>(<span class="keyword">const</span> <span class="keywordtype">int</span>);</div> 152<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="a00919.html#a468113870c8129430cbd773f5abb85fa">is_table</a>(<span class="keyword">const</span> <span class="keywordtype">int</span>);</div> 153<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="a00919.html#adea141de47b0e6895e8ee9afe5c82a0e">is_userdata</a>(<span class="keyword">const</span> <span class="keywordtype">int</span>);</div> 154<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> <span class="keywordtype">void</span> <a class="code hl_function" href="a00919.html#a493b3192ade9e2f32940b96fa9ef461b">load_file</a>(<span class="keyword">const</span> std::string&);</div> 155<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> <span class="keywordtype">void</span> <a class="code hl_function" href="a00919.html#a5ff9ef96d82c9cc497a8dfc1404a1c82">load_string</a>(<span class="keyword">const</span> std::string&);</div> 156<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> <span class="keywordtype">void</span> <a class="code hl_function" href="a00919.html#a50d389a2c6d23214eda1e46e15ed20b5">new_table</a>(<span class="keywordtype">void</span>);</div> 157<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> <span class="keyword">template</span>< <span class="keyword">typename</span> Type > Type* <a class="code hl_function" href="a00919.html#aaec7e57d4434f087cef8d38a221ae474">new_userdata</a>(<span class="keywordtype">void</span>);</div> 158<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="a00919.html#abbbcf3c19d7d29594ea2e61ece52b815">next</a>(<span class="keyword">const</span> <span class="keywordtype">int</span>);</div> 159<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> <span class="keywordtype">void</span> <a class="code hl_function" href="a00919.html#a940ebd0fb37259360a63b7a669d8ca99">open_all</a>(<span class="keywordtype">void</span>);</div> 160<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> <span class="keywordtype">void</span> <a class="code hl_function" href="a00919.html#abf68c04d96308868fec71a628741c712">open_base</a>(<span class="keywordtype">void</span>);</div> 161<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> <span class="keywordtype">void</span> <a class="code hl_function" href="a00919.html#a85db3b50e195e6ab7e81f9f51205d8c0">open_string</a>(<span class="keywordtype">void</span>);</div> 162<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> <span class="keywordtype">void</span> <a class="code hl_function" href="a00919.html#a8898b62799b3b8a70a2b6a049e531515">open_table</a>(<span class="keywordtype">void</span>);</div> 163<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> <span class="keywordtype">void</span> <a class="code hl_function" href="a00919.html#a307897e3501a5b5b08eb66f35f4d18df">pcall</a>(<span class="keyword">const</span> <span class="keywordtype">int</span>, <span class="keyword">const</span> <span class="keywordtype">int</span>, <span class="keyword">const</span> <span class="keywordtype">int</span>);</div> 164<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> <span class="keywordtype">void</span> <a class="code hl_function" href="a00919.html#ac07258b143ef607dd9f6a9e24e495c20">pop</a>(<span class="keyword">const</span> <span class="keywordtype">int</span>);</div> 165<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> <span class="keywordtype">void</span> <a class="code hl_function" href="a00919.html#a11e9a3235154ebf867298935f1f58ca5">push_boolean</a>(<span class="keyword">const</span> <span class="keywordtype">bool</span>);</div> 166<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> <span class="keywordtype">void</span> <a class="code hl_function" href="a00919.html#a0e5b1b04d7bdf606a7b013b83de433d1">push_cxx_closure</a>(cxx_function, <span class="keyword">const</span> <span class="keywordtype">int</span>);</div> 167<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> <span class="keywordtype">void</span> <a class="code hl_function" href="a00919.html#ae894e01dd1ff748aaf3f1a657363fe02">push_cxx_function</a>(cxx_function);</div> 168<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> <span class="keywordtype">void</span> <a class="code hl_function" href="a00919.html#a5c5b08f88a143cb48a600c044e2e3a56">push_integer</a>(<span class="keyword">const</span> <span class="keywordtype">int</span>);</div> 169<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> <span class="keywordtype">void</span> <a class="code hl_function" href="a00919.html#a7e1219378038bf40f72533dd14946f63">push_nil</a>(<span class="keywordtype">void</span>);</div> 170<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> <span class="keywordtype">void</span> <a class="code hl_function" href="a00919.html#a90859ee0fb17b13c3ebf4dfbfbee8c15">push_string</a>(<span class="keyword">const</span> std::string&);</div> 171<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> <span class="keywordtype">void</span> <a class="code hl_function" href="a00919.html#a48d4552a0e81c350b6ea1077018fc3fe">push_value</a>(<span class="keyword">const</span> <span class="keywordtype">int</span>);</div> 172<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> <span class="keywordtype">void</span> <a class="code hl_function" href="a00919.html#ad67d44dd8d7273cfce233731ad8f10d7">raw_get</a>(<span class="keyword">const</span> <span class="keywordtype">int</span>);</div> 173<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span> <span class="keywordtype">void</span> <a class="code hl_function" href="a00919.html#aa81b48420e6749c8f957af9039df0b37">raw_set</a>(<span class="keyword">const</span> <span class="keywordtype">int</span>);</div> 174<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> <span class="keywordtype">void</span> <a class="code hl_function" href="a00919.html#ae8b4f75bb99611707739772417c36e5a">set_global</a>(<span class="keyword">const</span> std::string&);</div> 175<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span> <span class="keywordtype">void</span> <a class="code hl_function" href="a00919.html#a9873b4860342a745a832f514ab803909">set_metatable</a>(<span class="keyword">const</span> <span class="keywordtype">int</span>);</div> 176<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span> <span class="keywordtype">void</span> <a class="code hl_function" href="a00919.html#ac2467d43a04babb717b4d6d384cf074c">set_table</a>(<span class="keyword">const</span> <span class="keywordtype">int</span>);</div> 177<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="a00919.html#a32129410bd9c2cd170d60919d203a639">to_boolean</a>(<span class="keyword">const</span> <span class="keywordtype">int</span>);</div> 178<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> <span class="keywordtype">long</span> <a class="code hl_function" href="a00919.html#ad947a5fb78835427838e4e10b16cc34a">to_integer</a>(<span class="keyword">const</span> <span class="keywordtype">int</span>);</div> 179<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> <span class="keyword">template</span>< <span class="keyword">typename</span> Type > Type* <a class="code hl_function" href="a00919.html#a0d7c94591101c42e93726ef7999eb11d">to_userdata</a>(<span class="keyword">const</span> <span class="keywordtype">int</span>);</div> 180<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> std::string <a class="code hl_function" href="a00919.html#aa40dd851d1e2323c55356506922e7b60">to_string</a>(<span class="keyword">const</span> <span class="keywordtype">int</span>);</div> 181<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> <span class="keywordtype">int</span> <a class="code hl_function" href="a00919.html#a1210a0875bde2a0452dd4813573b8865">upvalue_index</a>(<span class="keyword">const</span> <span class="keywordtype">int</span>);</div> 182<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span>};</div> 183<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> </div> 184<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> </div> 185<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span>} <span class="comment">// namespace lutok</span></div> 186<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> </div> 187<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span><span class="preprocessor">#endif </span><span class="comment">// !defined(LUTOK_STATE_HPP)</span></div> 188<div class="ttc" id="aa00029_html_aeca83848a196d4259e249833cd32c806"><div class="ttname"><a href="a00029.html#aeca83848a196d4259e249833cd32c806">lutok::registry_index</a></div><div class="ttdeci">const int registry_index</div><div class="ttdoc">Stack index constant pointing to the registry table.</div><div class="ttdef"><b>Definition:</b> state.cpp:215</div></div> 189<div class="ttc" id="aa00883_html"><div class="ttname"><a href="a00883.html">lutok::state_c_gate</a></div><div class="ttdoc">Gateway to the raw C state of Lua.</div><div class="ttdef"><b>Definition:</b> c_gate.hpp:55</div></div> 190<div class="ttc" id="aa00915_html"><div class="ttname"><a href="a00915.html">lutok::state::impl</a></div><div class="ttdoc">Internal implementation for lutok::state.</div><div class="ttdef"><b>Definition:</b> state.cpp:219</div></div> 191<div class="ttc" id="aa00919_html"><div class="ttname"><a href="a00919.html">lutok::state</a></div><div class="ttdoc">A RAII model for the Lua state.</div><div class="ttdef"><b>Definition:</b> state.hpp:71</div></div> 192<div class="ttc" id="aa00919_html_a0291a3b34c5bed860d8d53e54eaee349"><div class="ttname"><a href="a00919.html#a0291a3b34c5bed860d8d53e54eaee349">lutok::state::get_global</a></div><div class="ttdeci">void get_global(const std::string &)</div><div class="ttdoc">Wrapper around lua_getglobal.</div><div class="ttdef"><b>Definition:</b> state.cpp:302</div></div> 193<div class="ttc" id="aa00919_html_a0d4f5204547cac3e4855e375f6bc64cb"><div class="ttname"><a href="a00919.html#a0d4f5204547cac3e4855e375f6bc64cb">lutok::state::get_metafield</a></div><div class="ttdeci">bool get_metafield(const int, const std::string &)</div><div class="ttdoc">Wrapper around luaL_getmetafield.</div><div class="ttdef"><b>Definition:</b> state.cpp:341</div></div> 194<div class="ttc" id="aa00919_html_a0d7c94591101c42e93726ef7999eb11d"><div class="ttname"><a href="a00919.html#a0d7c94591101c42e93726ef7999eb11d">lutok::state::to_userdata</a></div><div class="ttdeci">Type * to_userdata(const int)</div><div class="ttdoc">Wrapper around lua_touserdata.</div><div class="ttdef"><b>Definition:</b> state.ipp:59</div></div> 195<div class="ttc" id="aa00919_html_a0e5b1b04d7bdf606a7b013b83de433d1"><div class="ttname"><a href="a00919.html#a0e5b1b04d7bdf606a7b013b83de433d1">lutok::state::push_cxx_closure</a></div><div class="ttdeci">void push_cxx_closure(cxx_function, const int)</div><div class="ttdoc">Wrapper around lua_pushcclosure.</div><div class="ttdef"><b>Definition:</b> state.cpp:680</div></div> 196<div class="ttc" id="aa00919_html_a11e9a3235154ebf867298935f1f58ca5"><div class="ttname"><a href="a00919.html#a11e9a3235154ebf867298935f1f58ca5">lutok::state::push_boolean</a></div><div class="ttdeci">void push_boolean(const bool)</div><div class="ttdoc">Wrapper around lua_pushboolean.</div><div class="ttdef"><b>Definition:</b> state.cpp:666</div></div> 197<div class="ttc" id="aa00919_html_a1210a0875bde2a0452dd4813573b8865"><div class="ttname"><a href="a00919.html#a1210a0875bde2a0452dd4813573b8865">lutok::state::upvalue_index</a></div><div class="ttdeci">int upvalue_index(const int)</div><div class="ttdoc">Wrapper around lua_upvalueindex.</div><div class="ttdef"><b>Definition:</b> state.cpp:888</div></div> 198<div class="ttc" id="aa00919_html_a16c2f95e91f64c5ac89258ee5dcd34e2"><div class="ttname"><a href="a00919.html#a16c2f95e91f64c5ac89258ee5dcd34e2">lutok::state::close</a></div><div class="ttdeci">void close(void)</div><div class="ttdoc">Terminates this Lua session.</div><div class="ttdef"><b>Definition:</b> state.cpp:284</div></div> 199<div class="ttc" id="aa00919_html_a21c5f4f63cf89db0f16dd032f0612a78"><div class="ttname"><a href="a00919.html#a21c5f4f63cf89db0f16dd032f0612a78">lutok::state::is_nil</a></div><div class="ttdeci">bool is_nil(const int)</div><div class="ttdoc">Wrapper around lua_isnil.</div><div class="ttdef"><b>Definition:</b> state.cpp:430</div></div> 200<div class="ttc" id="aa00919_html_a2287f1dd03e6a72837ab020512927ee6"><div class="ttname"><a href="a00919.html#a2287f1dd03e6a72837ab020512927ee6">lutok::state::get_global_table</a></div><div class="ttdeci">void get_global_table(void)</div><div class="ttdoc">Pushes a reference to the global table onto the stack.</div><div class="ttdef"><b>Definition:</b> state.cpp:318</div></div> 201<div class="ttc" id="aa00919_html_a2b163a6db54c80d3ad1d8d324e7e7fe1"><div class="ttname"><a href="a00919.html#a2b163a6db54c80d3ad1d8d324e7e7fe1">lutok::state::~state</a></div><div class="ttdeci">~state(void)</div><div class="ttdoc">Destructor for the Lua state.</div><div class="ttdef"><b>Definition:</b> state.cpp:268</div></div> 202<div class="ttc" id="aa00919_html_a2b577a4a090b67aa5b9b7a3f0762ca18"><div class="ttname"><a href="a00919.html#a2b577a4a090b67aa5b9b7a3f0762ca18">lutok::state::raw_state</a></div><div class="ttdeci">void * raw_state(void)</div><div class="ttdoc">Gets the internal lua_State object.</div><div class="ttdef"><b>Definition:</b> state.cpp:901</div></div> 203<div class="ttc" id="aa00919_html_a307897e3501a5b5b08eb66f35f4d18df"><div class="ttname"><a href="a00919.html#a307897e3501a5b5b08eb66f35f4d18df">lutok::state::pcall</a></div><div class="ttdeci">void pcall(const int, const int, const int)</div><div class="ttdoc">Wrapper around lua_pcall.</div><div class="ttdef"><b>Definition:</b> state.cpp:643</div></div> 204<div class="ttc" id="aa00919_html_a32129410bd9c2cd170d60919d203a639"><div class="ttname"><a href="a00919.html#a32129410bd9c2cd170d60919d203a639">lutok::state::to_boolean</a></div><div class="ttdeci">bool to_boolean(const int)</div><div class="ttdoc">Wrapper around lua_toboolean.</div><div class="ttdef"><b>Definition:</b> state.cpp:825</div></div> 205<div class="ttc" id="aa00919_html_a4054e2df5af0cc5db61c7560637406ea"><div class="ttname"><a href="a00919.html#a4054e2df5af0cc5db61c7560637406ea">lutok::state::to_userdata_voidp</a></div><div class="ttdeci">void * to_userdata_voidp(const int)</div><div class="ttdoc">Wrapper around lua_touserdata.</div><div class="ttdef"><b>Definition:</b> state.cpp:856</div></div> 206<div class="ttc" id="aa00919_html_a468113870c8129430cbd773f5abb85fa"><div class="ttname"><a href="a00919.html#a468113870c8129430cbd773f5abb85fa">lutok::state::is_table</a></div><div class="ttdeci">bool is_table(const int)</div><div class="ttdoc">Wrapper around lua_istable.</div><div class="ttdef"><b>Definition:</b> state.cpp:466</div></div> 207<div class="ttc" id="aa00919_html_a46953d97b73c00aa13fb98d4f0bb28c5"><div class="ttname"><a href="a00919.html#a46953d97b73c00aa13fb98d4f0bb28c5">lutok::state::_pimpl</a></div><div class="ttdeci">std::shared_ptr< impl > _pimpl</div><div class="ttdoc">Pointer to the shared internal implementation.</div><div class="ttdef"><b>Definition:</b> state.hpp:75</div></div> 208<div class="ttc" id="aa00919_html_a48d4552a0e81c350b6ea1077018fc3fe"><div class="ttname"><a href="a00919.html#a48d4552a0e81c350b6ea1077018fc3fe">lutok::state::push_value</a></div><div class="ttdeci">void push_value(const int)</div><div class="ttdoc">Wrapper around lua_pushvalue.</div><div class="ttdef"><b>Definition:</b> state.cpp:739</div></div> 209<div class="ttc" id="aa00919_html_a493b3192ade9e2f32940b96fa9ef461b"><div class="ttname"><a href="a00919.html#a493b3192ade9e2f32940b96fa9ef461b">lutok::state::load_file</a></div><div class="ttdeci">void load_file(const std::string &)</div><div class="ttdoc">Wrapper around luaL_loadfile.</div><div class="ttdef"><b>Definition:</b> state.cpp:493</div></div> 210<div class="ttc" id="aa00919_html_a4efb903445d053766fe54800d36d4deb"><div class="ttname"><a href="a00919.html#a4efb903445d053766fe54800d36d4deb">lutok::state::is_boolean</a></div><div class="ttdeci">bool is_boolean(const int)</div><div class="ttdoc">Wrapper around lua_isboolean.</div><div class="ttdef"><b>Definition:</b> state.cpp:406</div></div> 211<div class="ttc" id="aa00919_html_a50d389a2c6d23214eda1e46e15ed20b5"><div class="ttname"><a href="a00919.html#a50d389a2c6d23214eda1e46e15ed20b5">lutok::state::new_table</a></div><div class="ttdeci">void new_table(void)</div><div class="ttdoc">Wrapper around lua_newtable.</div><div class="ttdef"><b>Definition:</b> state.cpp:521</div></div> 212<div class="ttc" id="aa00919_html_a5c5b08f88a143cb48a600c044e2e3a56"><div class="ttname"><a href="a00919.html#a5c5b08f88a143cb48a600c044e2e3a56">lutok::state::push_integer</a></div><div class="ttdeci">void push_integer(const int)</div><div class="ttdoc">Wrapper around lua_pushinteger.</div><div class="ttdef"><b>Definition:</b> state.cpp:709</div></div> 213<div class="ttc" id="aa00919_html_a5f2fa48408831695914e4a57acf85a7c"><div class="ttname"><a href="a00919.html#a5f2fa48408831695914e4a57acf85a7c">lutok::state::new_userdata_voidp</a></div><div class="ttdeci">void * new_userdata_voidp(const size_t)</div><div class="ttdoc">Wrapper around lua_newuserdata.</div><div class="ttdef"><b>Definition:</b> state.cpp:538</div></div> 214<div class="ttc" id="aa00919_html_a5ff9ef96d82c9cc497a8dfc1404a1c82"><div class="ttname"><a href="a00919.html#a5ff9ef96d82c9cc497a8dfc1404a1c82">lutok::state::load_string</a></div><div class="ttdeci">void load_string(const std::string &)</div><div class="ttdoc">Wrapper around luaL_loadstring.</div><div class="ttdef"><b>Definition:</b> state.cpp:510</div></div> 215<div class="ttc" id="aa00919_html_a69d7e97f6140c24382fbfd05aa16ad72"><div class="ttname"><a href="a00919.html#a69d7e97f6140c24382fbfd05aa16ad72">lutok::state::insert</a></div><div class="ttdeci">void insert(const int)</div><div class="ttdoc">Wrapper around lua_insert.</div><div class="ttdef"><b>Definition:</b> state.cpp:394</div></div> 216<div class="ttc" id="aa00919_html_a7e1219378038bf40f72533dd14946f63"><div class="ttname"><a href="a00919.html#a7e1219378038bf40f72533dd14946f63">lutok::state::push_nil</a></div><div class="ttdeci">void push_nil(void)</div><div class="ttdoc">Wrapper around lua_pushnil.</div><div class="ttdef"><b>Definition:</b> state.cpp:717</div></div> 217<div class="ttc" id="aa00919_html_a85db3b50e195e6ab7e81f9f51205d8c0"><div class="ttname"><a href="a00919.html#a85db3b50e195e6ab7e81f9f51205d8c0">lutok::state::open_string</a></div><div class="ttdeci">void open_string(void)</div><div class="ttdoc">Wrapper around luaopen_string.</div><div class="ttdef"><b>Definition:</b> state.cpp:603</div></div> 218<div class="ttc" id="aa00919_html_a8865c4d7ee8a5d9f9ffeff22b8819648"><div class="ttname"><a href="a00919.html#a8865c4d7ee8a5d9f9ffeff22b8819648">lutok::state::get_table</a></div><div class="ttdeci">void get_table(const int)</div><div class="ttdoc">Wrapper around lua_gettable.</div><div class="ttdef"><b>Definition:</b> state.cpp:368</div></div> 219<div class="ttc" id="aa00919_html_a8898b62799b3b8a70a2b6a049e531515"><div class="ttname"><a href="a00919.html#a8898b62799b3b8a70a2b6a049e531515">lutok::state::open_table</a></div><div class="ttdeci">void open_table(void)</div><div class="ttdoc">Wrapper around luaopen_table.</div><div class="ttdef"><b>Definition:</b> state.cpp:622</div></div> 220<div class="ttc" id="aa00919_html_a90859ee0fb17b13c3ebf4dfbfbee8c15"><div class="ttname"><a href="a00919.html#a90859ee0fb17b13c3ebf4dfbfbee8c15">lutok::state::push_string</a></div><div class="ttdeci">void push_string(const std::string &)</div><div class="ttdoc">Wrapper around lua_pushstring.</div><div class="ttdef"><b>Definition:</b> state.cpp:729</div></div> 221<div class="ttc" id="aa00919_html_a940ebd0fb37259360a63b7a669d8ca99"><div class="ttname"><a href="a00919.html#a940ebd0fb37259360a63b7a669d8ca99">lutok::state::open_all</a></div><div class="ttdeci">void open_all(void)</div><div class="ttdoc">Wrapper around luaL_openlibs.</div><div class="ttdef"><b>Definition:</b> state.cpp:577</div></div> 222<div class="ttc" id="aa00919_html_a9873b4860342a745a832f514ab803909"><div class="ttname"><a href="a00919.html#a9873b4860342a745a832f514ab803909">lutok::state::set_metatable</a></div><div class="ttdeci">void set_metatable(const int)</div><div class="ttdoc">Wrapper around lua_setmetatable.</div><div class="ttdef"><b>Definition:</b> state.cpp:792</div></div> 223<div class="ttc" id="aa00919_html_aa40dd851d1e2323c55356506922e7b60"><div class="ttname"><a href="a00919.html#aa40dd851d1e2323c55356506922e7b60">lutok::state::to_string</a></div><div class="ttdeci">std::string to_string(const int)</div><div class="ttdoc">Wrapper around lua_tostring.</div><div class="ttdef"><b>Definition:</b> state.cpp:871</div></div> 224<div class="ttc" id="aa00919_html_aa81b48420e6749c8f957af9039df0b37"><div class="ttname"><a href="a00919.html#aa81b48420e6749c8f957af9039df0b37">lutok::state::raw_set</a></div><div class="ttdeci">void raw_set(const int)</div><div class="ttdoc">Wrapper around lua_rawset.</div><div class="ttdef"><b>Definition:</b> state.cpp:762</div></div> 225<div class="ttc" id="aa00919_html_aaec7e57d4434f087cef8d38a221ae474"><div class="ttname"><a href="a00919.html#aaec7e57d4434f087cef8d38a221ae474">lutok::state::new_userdata</a></div><div class="ttdeci">Type * new_userdata(void)</div><div class="ttdoc">Wrapper around lua_newuserdata.</div><div class="ttdef"><b>Definition:</b> state.ipp:46</div></div> 226<div class="ttc" id="aa00919_html_ab454ca52fec8413fde1d46df003c19c0"><div class="ttname"><a href="a00919.html#ab454ca52fec8413fde1d46df003c19c0">lutok::state::is_function</a></div><div class="ttdeci">bool is_function(const int)</div><div class="ttdoc">Wrapper around lua_isfunction.</div><div class="ttdef"><b>Definition:</b> state.cpp:418</div></div> 227<div class="ttc" id="aa00919_html_abbbafa23bb49ccc04e0f32f47b629ae5"><div class="ttname"><a href="a00919.html#abbbafa23bb49ccc04e0f32f47b629ae5">lutok::state::get_metatable</a></div><div class="ttdeci">bool get_metatable(const int)</div><div class="ttdoc">Wrapper around lua_getmetatable.</div><div class="ttdef"><b>Definition:</b> state.cpp:353</div></div> 228<div class="ttc" id="aa00919_html_abbbcf3c19d7d29594ea2e61ece52b815"><div class="ttname"><a href="a00919.html#abbbcf3c19d7d29594ea2e61ece52b815">lutok::state::next</a></div><div class="ttdeci">bool next(const int)</div><div class="ttdoc">Wrapper around lua_next.</div><div class="ttdef"><b>Definition:</b> state.cpp:552</div></div> 229<div class="ttc" id="aa00919_html_abf68c04d96308868fec71a628741c712"><div class="ttname"><a href="a00919.html#abf68c04d96308868fec71a628741c712">lutok::state::open_base</a></div><div class="ttdeci">void open_base(void)</div><div class="ttdoc">Wrapper around luaopen_base.</div><div class="ttdef"><b>Definition:</b> state.cpp:589</div></div> 230<div class="ttc" id="aa00919_html_ac07258b143ef607dd9f6a9e24e495c20"><div class="ttname"><a href="a00919.html#ac07258b143ef607dd9f6a9e24e495c20">lutok::state::pop</a></div><div class="ttdeci">void pop(const int)</div><div class="ttdoc">Wrapper around lua_pop.</div><div class="ttdef"><b>Definition:</b> state.cpp:654</div></div> 231<div class="ttc" id="aa00919_html_ac2467d43a04babb717b4d6d384cf074c"><div class="ttname"><a href="a00919.html#ac2467d43a04babb717b4d6d384cf074c">lutok::state::set_table</a></div><div class="ttdeci">void set_table(const int)</div><div class="ttdoc">Wrapper around lua_settable.</div><div class="ttdef"><b>Definition:</b> state.cpp:807</div></div> 232<div class="ttc" id="aa00919_html_acd31e0953ee71c94903e5444bf451eb1"><div class="ttname"><a href="a00919.html#acd31e0953ee71c94903e5444bf451eb1">lutok::state::is_number</a></div><div class="ttdeci">bool is_number(const int)</div><div class="ttdoc">Wrapper around lua_isnumber.</div><div class="ttdef"><b>Definition:</b> state.cpp:442</div></div> 233<div class="ttc" id="aa00919_html_ad67d44dd8d7273cfce233731ad8f10d7"><div class="ttname"><a href="a00919.html#ad67d44dd8d7273cfce233731ad8f10d7">lutok::state::raw_get</a></div><div class="ttdeci">void raw_get(const int)</div><div class="ttdoc">Wrapper around lua_rawget.</div><div class="ttdef"><b>Definition:</b> state.cpp:749</div></div> 234<div class="ttc" id="aa00919_html_ad947a5fb78835427838e4e10b16cc34a"><div class="ttname"><a href="a00919.html#ad947a5fb78835427838e4e10b16cc34a">lutok::state::to_integer</a></div><div class="ttdeci">long to_integer(const int)</div><div class="ttdoc">Wrapper around lua_tointeger.</div><div class="ttdef"><b>Definition:</b> state.cpp:838</div></div> 235<div class="ttc" id="aa00919_html_adea141de47b0e6895e8ee9afe5c82a0e"><div class="ttname"><a href="a00919.html#adea141de47b0e6895e8ee9afe5c82a0e">lutok::state::is_userdata</a></div><div class="ttdeci">bool is_userdata(const int)</div><div class="ttdoc">Wrapper around lua_isuserdata.</div><div class="ttdef"><b>Definition:</b> state.cpp:478</div></div> 236<div class="ttc" id="aa00919_html_ae894e01dd1ff748aaf3f1a657363fe02"><div class="ttname"><a href="a00919.html#ae894e01dd1ff748aaf3f1a657363fe02">lutok::state::push_cxx_function</a></div><div class="ttdeci">void push_cxx_function(cxx_function)</div><div class="ttdoc">Wrapper around lua_pushcfunction.</div><div class="ttdef"><b>Definition:</b> state.cpp:696</div></div> 237<div class="ttc" id="aa00919_html_ae8b4f75bb99611707739772417c36e5a"><div class="ttname"><a href="a00919.html#ae8b4f75bb99611707739772417c36e5a">lutok::state::set_global</a></div><div class="ttdeci">void set_global(const std::string &)</div><div class="ttdoc">Wrapper around lua_setglobal.</div><div class="ttdef"><b>Definition:</b> state.cpp:777</div></div> 238<div class="ttc" id="aa00919_html_ae952d08c75d4d07eef07fc00a608c4b4"><div class="ttname"><a href="a00919.html#ae952d08c75d4d07eef07fc00a608c4b4">lutok::state::state</a></div><div class="ttdeci">state(void)</div><div class="ttdoc">Initializes the Lua state.</div><div class="ttdef"><b>Definition:</b> state.cpp:242</div></div> 239<div class="ttc" id="aa00919_html_af82c354bbcedaa5f7b2f8b8e6f6c69b5"><div class="ttname"><a href="a00919.html#af82c354bbcedaa5f7b2f8b8e6f6c69b5">lutok::state::is_string</a></div><div class="ttdeci">bool is_string(const int)</div><div class="ttdoc">Wrapper around lua_isstring.</div><div class="ttdef"><b>Definition:</b> state.cpp:454</div></div> 240<div class="ttc" id="aa00919_html_af8591bfdccb2e8732c147a8a6623b2e5"><div class="ttname"><a href="a00919.html#af8591bfdccb2e8732c147a8a6623b2e5">lutok::state::get_top</a></div><div class="ttdeci">int get_top(void)</div><div class="ttdoc">Wrapper around lua_gettop.</div><div class="ttdef"><b>Definition:</b> state.cpp:384</div></div> 241</div><!-- fragment --></div><!-- contents --> 242<!-- start footer part --> 243<hr class="footer"/><address class="footer"><small> 244Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.6 245</small></address> 246</body> 247</html> 248