Files
openmw.github.io/classCompiler_1_1Extensions.html
Travis CI 1afc571f3d Deploy code docs to GitHub Pages Travis build: 4489
Commit: 6e51b4ff57f622c4e11205ec444ffac21e73bbf7
2017-01-24 02:13:55 +00:00

632 lines
33 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>OpenMW: Compiler::Extensions Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
jax: ["input/TeX","output/HTML-CSS"],
});
</script><script src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">OpenMW
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&#160;List</span></a></li>
<li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&#160;Members</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Properties</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(11)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(12)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(13)"><span class="SelectionMark">&#160;</span>Pages</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespaceCompiler.html">Compiler</a></li><li class="navelem"><a class="el" href="classCompiler_1_1Extensions.html">Extensions</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="classCompiler_1_1Extensions-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">Compiler::Extensions Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>Collection of compiler extensions.
<a href="classCompiler_1_1Extensions.html#details">More...</a></p>
<p><code>#include &lt;<a class="el" href="components_2compiler_2extensions_8hpp_source.html">extensions.hpp</a>&gt;</code></p>
<div class="dynheader">
Collaboration diagram for Compiler::Extensions:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classCompiler_1_1Extensions__coll__graph.svg" width="1022" height="835"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structCompiler_1_1Extensions_1_1Function.html">Function</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structCompiler_1_1Extensions_1_1Instruction.html">Instruction</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:af22603dce0c212b97dae9bec197a9966"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCompiler_1_1Extensions.html#af22603dce0c212b97dae9bec197a9966">Extensions</a> ()</td></tr>
<tr class="separator:af22603dce0c212b97dae9bec197a9966"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a00cf7c5bb421ef8ba5b1a773698c9115"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classint.html">int</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCompiler_1_1Extensions.html#a00cf7c5bb421ef8ba5b1a773698c9115">searchKeyword</a> (const std::string &amp;keyword) const </td></tr>
<tr class="separator:a00cf7c5bb421ef8ba5b1a773698c9115"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab0f9e21a9535d83e50177594076033cb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbool.html">bool</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCompiler_1_1Extensions.html#ab0f9e21a9535d83e50177594076033cb">isFunction</a> (<a class="el" href="classint.html">int</a> keyword, <a class="el" href="namespaceCompiler.html#ab096e60f163b1fd8212cd5ad63d10f5e">ScriptReturn</a> &amp;returnType, <a class="el" href="namespaceCompiler.html#abc30201df8e1ee2ca8638f8b87a843fb">ScriptArgs</a> &amp;argumentType, <a class="el" href="classbool.html">bool</a> &amp;explicitReference) const </td></tr>
<tr class="separator:ab0f9e21a9535d83e50177594076033cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9f54ee7757a19b8da437a94738cf526a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbool.html">bool</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCompiler_1_1Extensions.html#a9f54ee7757a19b8da437a94738cf526a">isInstruction</a> (<a class="el" href="classint.html">int</a> keyword, <a class="el" href="namespaceCompiler.html#abc30201df8e1ee2ca8638f8b87a843fb">ScriptArgs</a> &amp;argumentType, <a class="el" href="classbool.html">bool</a> &amp;explicitReference) const </td></tr>
<tr class="separator:a9f54ee7757a19b8da437a94738cf526a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6f2954221dd0f9d98c3ba4c5606df54d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCompiler_1_1Extensions.html#a6f2954221dd0f9d98c3ba4c5606df54d">registerFunction</a> (const std::string &amp;keyword, <a class="el" href="namespaceCompiler.html#ab096e60f163b1fd8212cd5ad63d10f5e">ScriptReturn</a> returnType, const <a class="el" href="namespaceCompiler.html#abc30201df8e1ee2ca8638f8b87a843fb">ScriptArgs</a> &amp;argumentType, <a class="el" href="classint.html">int</a> <a class="el" href="crashcatcher_8cpp.html#a45a5b7c00a796a23f01673cef1dbe0a9">code</a>, <a class="el" href="classint.html">int</a> codeExplicit=-1)</td></tr>
<tr class="separator:a6f2954221dd0f9d98c3ba4c5606df54d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab5a9f063eba2118b1d52aa99b21c3f4e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCompiler_1_1Extensions.html#ab5a9f063eba2118b1d52aa99b21c3f4e">registerInstruction</a> (const std::string &amp;keyword, const <a class="el" href="namespaceCompiler.html#abc30201df8e1ee2ca8638f8b87a843fb">ScriptArgs</a> &amp;argumentType, <a class="el" href="classint.html">int</a> <a class="el" href="crashcatcher_8cpp.html#a45a5b7c00a796a23f01673cef1dbe0a9">code</a>, <a class="el" href="classint.html">int</a> codeExplicit=-1)</td></tr>
<tr class="separator:ab5a9f063eba2118b1d52aa99b21c3f4e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac64db5a47bec3fe0ed5e48b3adae75b8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCompiler_1_1Extensions.html#ac64db5a47bec3fe0ed5e48b3adae75b8">generateFunctionCode</a> (<a class="el" href="classint.html">int</a> keyword, std::vector&lt; <a class="el" href="namespaceInterpreter.html#a4e3835dc7f60eb2ebfe308342e61b152">Interpreter::Type_Code</a> &gt; &amp;<a class="el" href="crashcatcher_8cpp.html#a45a5b7c00a796a23f01673cef1dbe0a9">code</a>, <a class="el" href="classCompiler_1_1Literals.html">Literals</a> &amp;literals, const std::string &amp;id, <a class="el" href="classint.html">int</a> optionalArguments) const </td></tr>
<tr class="memdesc:ac64db5a47bec3fe0ed5e48b3adae75b8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Append code for function to <em>code</em>. <a href="#ac64db5a47bec3fe0ed5e48b3adae75b8">More...</a><br/></td></tr>
<tr class="separator:ac64db5a47bec3fe0ed5e48b3adae75b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8b1b332773415d11bf221b52af03fc74"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCompiler_1_1Extensions.html#a8b1b332773415d11bf221b52af03fc74">generateInstructionCode</a> (<a class="el" href="classint.html">int</a> keyword, std::vector&lt; <a class="el" href="namespaceInterpreter.html#a4e3835dc7f60eb2ebfe308342e61b152">Interpreter::Type_Code</a> &gt; &amp;<a class="el" href="crashcatcher_8cpp.html#a45a5b7c00a796a23f01673cef1dbe0a9">code</a>, <a class="el" href="classCompiler_1_1Literals.html">Literals</a> &amp;literals, const std::string &amp;id, <a class="el" href="classint.html">int</a> optionalArguments) const </td></tr>
<tr class="memdesc:a8b1b332773415d11bf221b52af03fc74"><td class="mdescLeft">&#160;</td><td class="mdescRight">Append code for function to <em>code</em>. <a href="#a8b1b332773415d11bf221b52af03fc74">More...</a><br/></td></tr>
<tr class="separator:a8b1b332773415d11bf221b52af03fc74"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e3bf30d7d2b3442e15a906c72e76516"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCompiler_1_1Extensions.html#a5e3bf30d7d2b3442e15a906c72e76516">listKeywords</a> (std::vector&lt; std::string &gt; &amp;keywords) const </td></tr>
<tr class="memdesc:a5e3bf30d7d2b3442e15a906c72e76516"><td class="mdescLeft">&#160;</td><td class="mdescRight">Append all known keywords to <em>kaywords</em>. <a href="#a5e3bf30d7d2b3442e15a906c72e76516">More...</a><br/></td></tr>
<tr class="separator:a5e3bf30d7d2b3442e15a906c72e76516"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a8b4bc38279fe1e3073979d167a0a601f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classint.html">int</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCompiler_1_1Extensions.html#a8b4bc38279fe1e3073979d167a0a601f">mNextKeywordIndex</a></td></tr>
<tr class="separator:a8b4bc38279fe1e3073979d167a0a601f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad1f73833b60261be30108513ee422a0f"><td class="memItemLeft" align="right" valign="top">std::map&lt; std::string, <a class="el" href="classint.html">int</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCompiler_1_1Extensions.html#ad1f73833b60261be30108513ee422a0f">mKeywords</a></td></tr>
<tr class="separator:ad1f73833b60261be30108513ee422a0f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a498f5061da3e70e2ce4b479fa1e0f6e9"><td class="memItemLeft" align="right" valign="top">std::map&lt; <a class="el" href="classint.html">int</a>, <a class="el" href="structCompiler_1_1Extensions_1_1Function.html">Function</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCompiler_1_1Extensions.html#a498f5061da3e70e2ce4b479fa1e0f6e9">mFunctions</a></td></tr>
<tr class="separator:a498f5061da3e70e2ce4b479fa1e0f6e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a46e17b4bfe65a4c31a5f282ca9aff264"><td class="memItemLeft" align="right" valign="top">std::map&lt; <a class="el" href="classint.html">int</a>, <a class="el" href="structCompiler_1_1Extensions_1_1Instruction.html">Instruction</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCompiler_1_1Extensions.html#a46e17b4bfe65a4c31a5f282ca9aff264">mInstructions</a></td></tr>
<tr class="separator:a46e17b4bfe65a4c31a5f282ca9aff264"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Collection of compiler extensions. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="af22603dce0c212b97dae9bec197a9966"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Compiler::Extensions::Extensions </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="ac64db5a47bec3fe0ed5e48b3adae75b8"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Compiler::Extensions::generateFunctionCode </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classint.html">int</a>&#160;</td>
<td class="paramname"><em>keyword</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">std::vector&lt; <a class="el" href="namespaceInterpreter.html#a4e3835dc7f60eb2ebfe308342e61b152">Interpreter::Type_Code</a> &gt; &amp;&#160;</td>
<td class="paramname"><em>code</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classCompiler_1_1Literals.html">Literals</a> &amp;&#160;</td>
<td class="paramname"><em>literals</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const std::string &amp;&#160;</td>
<td class="paramname"><em>id</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classint.html">int</a>&#160;</td>
<td class="paramname"><em>optionalArguments</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Append code for function to <em>code</em>. </p>
<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classCompiler_1_1Extensions_ac64db5a47bec3fe0ed5e48b3adae75b8_cgraph.svg" width="843" height="312"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>
</div>
</div>
<a class="anchor" id="a8b1b332773415d11bf221b52af03fc74"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Compiler::Extensions::generateInstructionCode </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classint.html">int</a>&#160;</td>
<td class="paramname"><em>keyword</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">std::vector&lt; <a class="el" href="namespaceInterpreter.html#a4e3835dc7f60eb2ebfe308342e61b152">Interpreter::Type_Code</a> &gt; &amp;&#160;</td>
<td class="paramname"><em>code</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classCompiler_1_1Literals.html">Literals</a> &amp;&#160;</td>
<td class="paramname"><em>literals</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const std::string &amp;&#160;</td>
<td class="paramname"><em>id</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classint.html">int</a>&#160;</td>
<td class="paramname"><em>optionalArguments</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Append code for function to <em>code</em>. </p>
<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classCompiler_1_1Extensions_a8b1b332773415d11bf221b52af03fc74_cgraph.svg" width="856" height="312"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>
</div>
</div>
<a class="anchor" id="ab0f9e21a9535d83e50177594076033cb"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classbool.html">bool</a> Compiler::Extensions::isFunction </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classint.html">int</a>&#160;</td>
<td class="paramname"><em>keyword</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="namespaceCompiler.html#ab096e60f163b1fd8212cd5ad63d10f5e">ScriptReturn</a> &amp;&#160;</td>
<td class="paramname"><em>returnType</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="namespaceCompiler.html#abc30201df8e1ee2ca8638f8b87a843fb">ScriptArgs</a> &amp;&#160;</td>
<td class="paramname"><em>argumentType</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classbool.html">bool</a> &amp;&#160;</td>
<td class="paramname"><em>explicitReference</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Is this keyword registered with a function? If yes, return return and argument types. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">explicitReference</td><td>In: has explicit reference; Out: set to false, if explicit reference is not available for this instruction. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a9f54ee7757a19b8da437a94738cf526a"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classbool.html">bool</a> Compiler::Extensions::isInstruction </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classint.html">int</a>&#160;</td>
<td class="paramname"><em>keyword</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="namespaceCompiler.html#abc30201df8e1ee2ca8638f8b87a843fb">ScriptArgs</a> &amp;&#160;</td>
<td class="paramname"><em>argumentType</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classbool.html">bool</a> &amp;&#160;</td>
<td class="paramname"><em>explicitReference</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Is this keyword registered with a function? If yes, return argument types. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">explicitReference</td><td>In: has explicit reference; Out: set to false, if explicit reference is not available for this instruction. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a5e3bf30d7d2b3442e15a906c72e76516"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Compiler::Extensions::listKeywords </td>
<td>(</td>
<td class="paramtype">std::vector&lt; std::string &gt; &amp;&#160;</td>
<td class="paramname"><em>keywords</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Append all known keywords to <em>kaywords</em>. </p>
<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classCompiler_1_1Extensions_a5e3bf30d7d2b3442e15a906c72e76516_icgraph.svg" width="1080" height="51"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>
</div>
</div>
<a class="anchor" id="a6f2954221dd0f9d98c3ba4c5606df54d"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Compiler::Extensions::registerFunction </td>
<td>(</td>
<td class="paramtype">const std::string &amp;&#160;</td>
<td class="paramname"><em>keyword</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="namespaceCompiler.html#ab096e60f163b1fd8212cd5ad63d10f5e">ScriptReturn</a>&#160;</td>
<td class="paramname"><em>returnType</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="namespaceCompiler.html#abc30201df8e1ee2ca8638f8b87a843fb">ScriptArgs</a> &amp;&#160;</td>
<td class="paramname"><em>argumentType</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classint.html">int</a>&#160;</td>
<td class="paramname"><em>code</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classint.html">int</a>&#160;</td>
<td class="paramname"><em>codeExplicit</em> = <code>-1</code>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Register a custom function</p>
<ul>
<li>keyword must be all lower case.</li>
<li>keyword must be unique</li>
<li>if explicit references are not supported, segment5codeExplicit must be set to -1 <dl class="section note"><dt>Note</dt><dd>Currently only segment 3 and segment 5 opcodes are supported. </dd></dl>
</li>
</ul>
<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classCompiler_1_1Extensions_a6f2954221dd0f9d98c3ba4c5606df54d_icgraph.svg" width="958" height="664"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>
</div>
</div>
<a class="anchor" id="ab5a9f063eba2118b1d52aa99b21c3f4e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Compiler::Extensions::registerInstruction </td>
<td>(</td>
<td class="paramtype">const std::string &amp;&#160;</td>
<td class="paramname"><em>keyword</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="namespaceCompiler.html#abc30201df8e1ee2ca8638f8b87a843fb">ScriptArgs</a> &amp;&#160;</td>
<td class="paramname"><em>argumentType</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classint.html">int</a>&#160;</td>
<td class="paramname"><em>code</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classint.html">int</a>&#160;</td>
<td class="paramname"><em>codeExplicit</em> = <code>-1</code>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Register a custom instruction</p>
<ul>
<li>keyword must be all lower case.</li>
<li>keyword must be unique</li>
<li>if explicit references are not supported, segment5codeExplicit must be set to -1 <dl class="section note"><dt>Note</dt><dd>Currently only segment 3 and segment 5 opcodes are supported. </dd></dl>
</li>
</ul>
<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classCompiler_1_1Extensions_ab5a9f063eba2118b1d52aa99b21c3f4e_icgraph.svg" width="958" height="795"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>
</div>
</div>
<a class="anchor" id="a00cf7c5bb421ef8ba5b1a773698c9115"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classint.html">int</a> Compiler::Extensions::searchKeyword </td>
<td>(</td>
<td class="paramtype">const std::string &amp;&#160;</td>
<td class="paramname"><em>keyword</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Return extension keyword code, that is assigned to the string <em>keyword</em>.</p>
<ul>
<li>if no match is found 0 is returned.</li>
<li>keyword must be all lower case. </li>
</ul>
<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classCompiler_1_1Extensions_a00cf7c5bb421ef8ba5b1a773698c9115_icgraph.svg" width="2502" height="1638"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="a498f5061da3e70e2ce4b479fa1e0f6e9"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">std::map&lt;<a class="el" href="classint.html">int</a>, <a class="el" href="structCompiler_1_1Extensions_1_1Function.html">Function</a>&gt; Compiler::Extensions::mFunctions</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a46e17b4bfe65a4c31a5f282ca9aff264"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">std::map&lt;<a class="el" href="classint.html">int</a>, <a class="el" href="structCompiler_1_1Extensions_1_1Instruction.html">Instruction</a>&gt; Compiler::Extensions::mInstructions</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="ad1f73833b60261be30108513ee422a0f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">std::map&lt;std::string, <a class="el" href="classint.html">int</a>&gt; Compiler::Extensions::mKeywords</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a8b4bc38279fe1e3073979d167a0a601f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classint.html">int</a> Compiler::Extensions::mNextKeywordIndex</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>/home/travis/build/OpenMW/openmw/components/compiler/<a class="el" href="components_2compiler_2extensions_8hpp_source.html">extensions.hpp</a></li>
<li>/home/travis/build/OpenMW/openmw/components/compiler/<a class="el" href="components_2compiler_2extensions_8cpp.html">extensions.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Jan 24 2017 02:05:56 for OpenMW by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>