diff options
author | neodarz <neodarz@neodarz.net> | 2018-08-11 20:21:34 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2018-08-11 20:21:34 +0200 |
commit | 0ea5fc66924303d1bf73ba283a383e2aadee02f2 (patch) | |
tree | 2568e71a7ccc44ec23b8bb3f0ff97fb6bf2ed709 /docs/doxygen/nel/opcode_8cpp-source.html | |
download | nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.tar.xz nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.zip |
Initial commit
Diffstat (limited to '')
-rw-r--r-- | docs/doxygen/nel/opcode_8cpp-source.html | 836 |
1 files changed, 836 insertions, 0 deletions
diff --git a/docs/doxygen/nel/opcode_8cpp-source.html b/docs/doxygen/nel/opcode_8cpp-source.html new file mode 100644 index 00000000..693317f0 --- /dev/null +++ b/docs/doxygen/nel/opcode_8cpp-source.html @@ -0,0 +1,836 @@ +<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> +<HTML> +<HEAD> + <TITLE>nevrax.org : docs</TITLE> + <LINK REL=stylesheet TYPE="text/css" HREF="http://www.nevrax.org/inc/css/nevrax.css"> + <link href="doxygen.css" rel="stylesheet" type="text/css"> +</HEAD> +<BODY MARGINHEIGHT="0" MARGINWIDTH="0"> + +<!-- uplinks --> +<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0> + <TR> + <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD WIDTH=140 BGCOLOR=#dddddd><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD><IMG width=6 height=14 SRC="http://www.nevrax.org/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle> <A CLASS=uplinks HREF=http://www.nevrax.org><b>Home</B></FONT></A> </TD> + <TD><IMG width=6 height=14 SRC="http://www.nevrax.org/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle> <A CLASS=uplinks HREF=http://www.nevrax.com><b>nevrax.com</B></FONT></A> </TD> + </TR> +</TABLE> + +<!-- banner Nevrax --> +<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%> + <TR><TD BGCOLOR="#000000" BACKGROUND="http://www.nevrax.org/inc/img/black_banner.jpg"><A HREF="http://www.nevrax.org"><IMG SRC="http://www.nevrax.org/inc/img/nevrax.gif" WIDTH="170" HEIGHT="45" BORDER=0 ALT="Nevrax" ></A></TD></TR> +</TABLE> + +<!-- main table --> +<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 height=100%> + <TR> + <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="10" BORDER=0 ALT=""></TD> + <TD WIDTH=140 BGCOLOR=#dddddd VALIGN=TOP ALIGN=middle><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="10" BORDER=0 ALT=""> + + <!------ Begin Box ------> + <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 BGCOLOR=black><TR><TD><TABLE border=0 cellspacing=2 cellpadding=0 width=120><tr><TD ALIGN=middle bgcolor=black> + <FONT COLOR=white FACE="sans-serif"><B>Nevrax.org</B></FONT></TD></TR><tr><td colspan=2 bgcolor=#FFFFFF> + <TABLE cellspacing=0 cellpadding=1 border=0> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/news/" TITLE="Rubrique news"><img width=13 height=15 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-news.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/news/" TITLE="News">News</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/mail/" TITLE="Rubrique mail"><img width=15 height=11 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-mail.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/mail/" TITLE="Mailing list archive">Mailing-list</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/docs/" TITLE="Rubrique docs"><img width=14 height=16 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-docs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/docs/" TITLE="Documentation">Documentation</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/cvs/" TITLE="Rubrique cvs"><img width=13 height=17 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-cvs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/cvs/" TITLE="CVS Web">CVS</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/bugs/" TITLE="Rubrique bugs"><img width=20 height=16 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-bugs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/bugs/" TITLE="Bugtracking">Bugs</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/GPL.php3" TITLE="Rubrique license"><img width=18 height=12 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-gpl.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/GPL.php3" TITLE="License">License</a></td></tr> + </TABLE> + </TD></TR></TABLE></TD></TR></TABLE> + <!------ End Box ------> + + </TD> + <TD WIDTH=15><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD ALIGN=left valign=top><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="10" BORDER=0 ALT=""> + +<!-- title --> +<TABLE background="http://www.nevrax.org/inc/img/redline.gif" CELLSPACING=0 CELLPADDING=0 BORDER=0 width=100%><tr><td> +<A HREF="http://www.nevrax.org/docs/"><img src="http://www.nevrax.org/inc/img/t_docs.gif" ALT="Docs" HEIGHT=20 BORDER=0></A> +</td><td><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="1" HEIGHT="1" BORDER=0 ALT=""> +</td></tr></table> + + +<!-- block --> +<TABLE bgcolor="#dddddd" CELLSPACING=0 CELLPADDING=0 BORDER=0 width=100%><tr><td width=1% valign=middle><img width=6 height=14 hspace=2 vspace=2 src="http://www.nevrax.org/inc/img/reddots.gif"></TD> + <TD><B>Documentation</B></TD> + <TD ALIGN=RIGHT> </td> +</tr></table> +<!-- Generated by Doxygen 1.2.14 --> +<center> +<a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="namespacemembers.html">Namespace Members</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> <a class="qindex" href="pages.html">Related Pages</a> <a class="qindexRef" doxygen="_cgi:http://www.nevrax.org/cgi-bin/nel-search.cgi" href="http://www.nevrax.org/cgi-bin/nel-search.cgi">Search</a> </center> +<hr><h1>opcode.cpp</h1><a href="opcode_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 +00006 <font class="comment">/* Copyright, 2000 Nevrax Ltd.</font> +00007 <font class="comment"> *</font> +00008 <font class="comment"> * This file is part of NEVRAX NEL.</font> +00009 <font class="comment"> * NEVRAX NEL is free software; you can redistribute it and/or modify</font> +00010 <font class="comment"> * it under the terms of the GNU General Public License as published by</font> +00011 <font class="comment"> * the Free Software Foundation; either version 2, or (at your option)</font> +00012 <font class="comment"> * any later version.</font> +00013 <font class="comment"></font> +00014 <font class="comment"> * NEVRAX NEL is distributed in the hope that it will be useful, but</font> +00015 <font class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</font> +00016 <font class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</font> +00017 <font class="comment"> * General Public License for more details.</font> +00018 <font class="comment"></font> +00019 <font class="comment"> * You should have received a copy of the GNU General Public License</font> +00020 <font class="comment"> * along with NEVRAX NEL; see the file COPYING. If not, write to the</font> +00021 <font class="comment"> * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,</font> +00022 <font class="comment"> * MA 02111-1307, USA.</font> +00023 <font class="comment"> */</font> +00024 <font class="preprocessor">#include <string></font> +00025 <font class="preprocessor">#include "<a class="code" href="compilateur_8h.html">nel/ai/script/compilateur.h</a>"</font> +00026 <font class="preprocessor">#include "<a class="code" href="agent__script_8h.html">nel/ai/agent/agent_script.h</a>"</font> +00027 <font class="preprocessor">#include "<a class="code" href="type__def_8h.html">nel/ai/script/type_def.h</a>"</font> +00028 <font class="preprocessor">#include "<a class="code" href="object__load_8h.html">nel/ai/script/object_load.h</a>"</font> +00029 +00030 +00031 <font class="keyword">namespace </font>NLAISCRIPT +00032 { +00033 +<a name="l00034"></a><a class="code" href="classNLAISCRIPT_1_1CNegOpCode.html#a1">00034</a> NLAIAGENT::TProcessStatement CNegOpCode::runOpCode(CCodeContext &context) +00035 { +00036 sint k = (int)context.Stack; +00037 <a class="code" href="classNLAIAGENT_1_1IObjetOp.html">NLAIAGENT::IObjetOp</a> *o = (<a class="code" href="classNLAIAGENT_1_1IObjetOp.html">NLAIAGENT::IObjetOp</a> *)context.Stack[k]; +00038 context.Stack[k] = o-><a class="code" href="classNLAIAGENT_1_1IObjetOp.html#a2">getNeg</a>(); +00039 o-><a class="code" href="classNLAIC_1_1IPointerGestion.html#a3">release</a>(); +00040 <font class="keywordflow">return</font> <a class="code" href="classNLAIAGENT_1_1IObjectIA.html#p2">NLAIAGENT::IObjectIA::ProcessIdle</a>; +00041 } +00042 +<a name="l00043"></a><a class="code" href="classNLAISCRIPT_1_1CNegOpCode.html#a2">00043</a> <font class="keywordtype">void</font> CNegOpCode::getDebugResult(std::string &str,CCodeContext &context)<font class="keyword"> const</font> +00044 <font class="keyword"> </font>{ +00045 std::string X; +00046 +00047 ((<a class="code" href="classNLAIAGENT_1_1IObjectIA.html">NLAIAGENT::IObjectIA</a> *)context.Stack)->getDebugString(X); +00048 str +=<font class="stringliteral">"-"</font>; +00049 str += X; +00050 } +00051 +00052 +<a name="l00053"></a><a class="code" href="classNLAISCRIPT_1_1CAddOpCode.html#a1">00053</a> NLAIAGENT::TProcessStatement CAddOpCode::runOpCode(CCodeContext &context) +00054 { +00055 sint k = (int)context.Stack; +00056 <a class="code" href="classNLAIAGENT_1_1IObjetOp.html">NLAIAGENT::IObjetOp</a> *a = (<a class="code" href="classNLAIAGENT_1_1IObjetOp.html">NLAIAGENT::IObjetOp</a> *)context.Stack[k - 1]; +00057 <a class="code" href="classNLAIAGENT_1_1IObjetOp.html">NLAIAGENT::IObjetOp</a> *b = (<a class="code" href="classNLAIAGENT_1_1IObjetOp.html">NLAIAGENT::IObjetOp</a> *)context.Stack[k]; +00058 +00059 context.Stack[k - 1] = (*a) + (b); +00060 +00061 context.Stack--; +00062 a-><a class="code" href="classNLAIC_1_1IPointerGestion.html#a3">release</a>(); +00063 <font class="keywordflow">return</font> <a class="code" href="classNLAIAGENT_1_1IObjectIA.html#p2">NLAIAGENT::IObjectIA::ProcessIdle</a>;; +00064 } +00065 +<a name="l00066"></a><a class="code" href="classNLAISCRIPT_1_1CAddOpCode.html#a2">00066</a> <font class="keywordtype">void</font> CAddOpCode::getDebugResult(std::string &str,CCodeContext &context)<font class="keyword"> const </font> +00067 <font class="keyword"> </font>{ +00068 std::string X,Y; +00069 context.Stack[(int)context.Stack - 1]->getDebugString(X); +00070 context.Stack[(int)context.Stack]->getDebugString(Y); +00071 +00072 str = X; +00073 str += <font class="stringliteral">" + "</font>; +00074 str += Y; +00075 } +00076 +<a name="l00077"></a><a class="code" href="classNLAISCRIPT_1_1CSubOpCode.html#a1">00077</a> NLAIAGENT::TProcessStatement CSubOpCode::runOpCode(CCodeContext &context) +00078 { +00079 sint k = (int)context.Stack; +00080 <a class="code" href="classNLAIAGENT_1_1IObjetOp.html">NLAIAGENT::IObjetOp</a> *a = (<a class="code" href="classNLAIAGENT_1_1IObjetOp.html">NLAIAGENT::IObjetOp</a> *)context.Stack[k - 1]; +00081 <a class="code" href="classNLAIAGENT_1_1IObjetOp.html">NLAIAGENT::IObjetOp</a> *b = (<a class="code" href="classNLAIAGENT_1_1IObjetOp.html">NLAIAGENT::IObjetOp</a> *)context.Stack[k]; +00082 +00083 context.Stack[k - 1] = (*a) - (b); +00084 +00085 context.Stack--; +00086 a-><a class="code" href="classNLAIC_1_1IPointerGestion.html#a3">release</a>(); +00087 <font class="keywordflow">return</font> <a class="code" href="classNLAIAGENT_1_1IObjectIA.html#p2">NLAIAGENT::IObjectIA::ProcessIdle</a>;; +00088 } +00089 +<a name="l00090"></a><a class="code" href="classNLAISCRIPT_1_1CSubOpCode.html#a2">00090</a> <font class="keywordtype">void</font> CSubOpCode::getDebugResult(std::string &str,CCodeContext &context)<font class="keyword"> const </font> +00091 <font class="keyword"> </font>{ +00092 std::string X,Y; +00093 context.Stack[(int)context.Stack - 1]->getDebugString(X); +00094 context.Stack[(int)context.Stack]->getDebugString(Y); +00095 +00096 str = X; +00097 str += <font class="stringliteral">" - "</font>; +00098 str += Y; +00099 } +00100 +<a name="l00101"></a><a class="code" href="classNLAISCRIPT_1_1CDivOpCode.html#a1">00101</a> NLAIAGENT::TProcessStatement CDivOpCode::runOpCode(CCodeContext &context) +00102 { +00103 sint k = (int)context.Stack; +00104 <a class="code" href="classNLAIAGENT_1_1IObjetOp.html">NLAIAGENT::IObjetOp</a> *a = (<a class="code" href="classNLAIAGENT_1_1IObjetOp.html">NLAIAGENT::IObjetOp</a> *)context.Stack[k - 1]; +00105 <a class="code" href="classNLAIAGENT_1_1IObjetOp.html">NLAIAGENT::IObjetOp</a> *b = (<a class="code" href="classNLAIAGENT_1_1IObjetOp.html">NLAIAGENT::IObjetOp</a> *)context.Stack[k]; +00106 +00107 context.Stack[k - 1] = (*a) / (b); +00108 +00109 context.Stack--; +00110 a-><a class="code" href="classNLAIC_1_1IPointerGestion.html#a3">release</a>(); +00111 <font class="keywordflow">return</font> <a class="code" href="classNLAIAGENT_1_1IObjectIA.html#p2">NLAIAGENT::IObjectIA::ProcessIdle</a>;; +00112 } +00113 +<a name="l00114"></a><a class="code" href="classNLAISCRIPT_1_1CDivOpCode.html#a2">00114</a> <font class="keywordtype">void</font> CDivOpCode::getDebugResult(std::string &str,CCodeContext &context)<font class="keyword"> const</font> +00115 <font class="keyword"> </font>{ +00116 std::string X,Y; +00117 context.Stack[(int)context.Stack - 1]->getDebugString(X); +00118 context.Stack[(int)context.Stack]->getDebugString(Y); +00119 +00120 str = X; +00121 str += <font class="stringliteral">" / "</font>; +00122 str += Y; +00123 } +00124 +00125 +<a name="l00126"></a><a class="code" href="classNLAISCRIPT_1_1CMulOpCode.html#a1">00126</a> NLAIAGENT::TProcessStatement CMulOpCode::runOpCode(CCodeContext &context) +00127 { +00128 sint k = (int)context.Stack; +00129 <a class="code" href="classNLAIAGENT_1_1IObjetOp.html">NLAIAGENT::IObjetOp</a> *a = (<a class="code" href="classNLAIAGENT_1_1IObjetOp.html">NLAIAGENT::IObjetOp</a> *)context.Stack[k - 1]; +00130 <a class="code" href="classNLAIAGENT_1_1IObjetOp.html">NLAIAGENT::IObjetOp</a> *b = (<a class="code" href="classNLAIAGENT_1_1IObjetOp.html">NLAIAGENT::IObjetOp</a> *)context.Stack[k]; +00131 +00132 context.Stack[k - 1] = (*a) * (b); +00133 +00134 context.Stack--; +00135 a-><a class="code" href="classNLAIC_1_1IPointerGestion.html#a3">release</a>(); +00136 <font class="keywordflow">return</font> <a class="code" href="classNLAIAGENT_1_1IObjectIA.html#p2">NLAIAGENT::IObjectIA::ProcessIdle</a>;; +00137 } +00138 +<a name="l00139"></a><a class="code" href="classNLAISCRIPT_1_1CMulOpCode.html#a2">00139</a> <font class="keywordtype">void</font> CMulOpCode::getDebugResult(std::string &str,CCodeContext &context)<font class="keyword"> const</font> +00140 <font class="keyword"> </font>{ +00141 std::string X,Y; +00142 context.Stack[(int)context.Stack - 1]->getDebugString(X); +00143 context.Stack[(int)context.Stack]->getDebugString(Y); +00144 +00145 str = X; +00146 str += <font class="stringliteral">" * "</font>; +00147 str += Y; +00148 } +00149 +<a name="l00150"></a><a class="code" href="classNLAISCRIPT_1_1CSupOpCode.html#a1">00150</a> NLAIAGENT::TProcessStatement CSupOpCode::runOpCode(CCodeContext &context) +00151 { +00152 sint k = (int)context.Stack; +00153 <a class="code" href="classNLAIAGENT_1_1IObjetOp.html">NLAIAGENT::IObjetOp</a> *a = (<a class="code" href="classNLAIAGENT_1_1IObjetOp.html">NLAIAGENT::IObjetOp</a> *)context.Stack[k - 1]; +00154 <a class="code" href="classNLAIAGENT_1_1IObjetOp.html">NLAIAGENT::IObjetOp</a> *b = (<a class="code" href="classNLAIAGENT_1_1IObjetOp.html">NLAIAGENT::IObjetOp</a> *)context.Stack[k]; +00155 +00156 context.Stack[k - 1] = (*a) > (*b); +00157 +00158 context.Stack--; +00159 a-><a class="code" href="classNLAIC_1_1IPointerGestion.html#a3">release</a>(); +00160 +00161 <font class="keywordflow">return</font> <a class="code" href="classNLAIAGENT_1_1IObjectIA.html#p2">NLAIAGENT::IObjectIA::ProcessIdle</a>;; +00162 } +00163 +<a name="l00164"></a><a class="code" href="classNLAISCRIPT_1_1CSupOpCode.html#a2">00164</a> <font class="keywordtype">void</font> CSupOpCode::getDebugResult(std::string &str,CCodeContext &context)<font class="keyword"> const</font> +00165 <font class="keyword"> </font>{ +00166 std::string X,Y; +00167 context.Stack[(int)context.Stack - 1]->getDebugString(X); +00168 context.Stack[(int)context.Stack]->getDebugString(Y); +00169 +00170 str = X; +00171 str += <font class="stringliteral">" > "</font>; +00172 str += Y; +00173 } +00174 +00175 +00176 +<a name="l00177"></a><a class="code" href="classNLAISCRIPT_1_1CInfOpCode.html#a1">00177</a> NLAIAGENT::TProcessStatement CInfOpCode::runOpCode(CCodeContext &context) +00178 { +00179 sint k = (int)context.Stack; +00180 <a class="code" href="classNLAIAGENT_1_1IObjetOp.html">NLAIAGENT::IObjetOp</a> *a = (<a class="code" href="classNLAIAGENT_1_1IObjetOp.html">NLAIAGENT::IObjetOp</a> *)context.Stack[k - 1]; +00181 <a class="code" href="classNLAIAGENT_1_1IObjetOp.html">NLAIAGENT::IObjetOp</a> *b = (<a class="code" href="classNLAIAGENT_1_1IObjetOp.html">NLAIAGENT::IObjetOp</a> *)context.Stack[k]; +00182 +00183 context.Stack[k - 1] = (*a) < (*b); +00184 +00185 context.Stack--; +00186 a-><a class="code" href="classNLAIC_1_1IPointerGestion.html#a3">release</a>(); +00187 +00188 <font class="keywordflow">return</font> <a class="code" href="classNLAIAGENT_1_1IObjectIA.html#p2">NLAIAGENT::IObjectIA::ProcessIdle</a>;; +00189 } +00190 +<a name="l00191"></a><a class="code" href="classNLAISCRIPT_1_1CInfOpCode.html#a2">00191</a> <font class="keywordtype">void</font> CInfOpCode::getDebugResult(std::string &str,CCodeContext &context)<font class="keyword"> const</font> +00192 <font class="keyword"> </font>{ +00193 std::string X,Y; +00194 context.Stack[(int)context.Stack - 1]->getDebugString(X); +00195 context.Stack[(int)context.Stack]->getDebugString(Y); +00196 +00197 str = X; +00198 str += <font class="stringliteral">" < "</font>; +00199 str += Y; +00200 } +00201 +<a name="l00202"></a><a class="code" href="classNLAISCRIPT_1_1CEqOpCode.html#a1">00202</a> NLAIAGENT::TProcessStatement CEqOpCode::runOpCode(CCodeContext &context) +00203 { +00204 sint k = (int)context.Stack; +00205 <a class="code" href="classNLAIAGENT_1_1IObjetOp.html">NLAIAGENT::IObjetOp</a> *a = (<a class="code" href="classNLAIAGENT_1_1IObjetOp.html">NLAIAGENT::IObjetOp</a> *)context.Stack[k - 1]; +00206 <a class="code" href="classNLAIAGENT_1_1IObjetOp.html">NLAIAGENT::IObjetOp</a> *b = (<a class="code" href="classNLAIAGENT_1_1IObjetOp.html">NLAIAGENT::IObjetOp</a> *)context.Stack[k]; +00207 +00208 context.Stack[k - 1] = (*a) == (*b); +00209 +00210 context.Stack--; +00211 a-><a class="code" href="classNLAIC_1_1IPointerGestion.html#a3">release</a>(); +00212 <font class="keywordflow">return</font> <a class="code" href="classNLAIAGENT_1_1IObjectIA.html#p2">NLAIAGENT::IObjectIA::ProcessIdle</a>;; +00213 } +00214 +<a name="l00215"></a><a class="code" href="classNLAISCRIPT_1_1CEqOpCode.html#a2">00215</a> <font class="keywordtype">void</font> CEqOpCode::getDebugResult(std::string &str,CCodeContext &context)<font class="keyword"> const</font> +00216 <font class="keyword"> </font>{ +00217 std::string X,Y; +00218 context.Stack[(int)context.Stack - 1]->getDebugString(X); +00219 context.Stack[(int)context.Stack]->getDebugString(Y); +00220 +00221 str = X; +00222 str += <font class="stringliteral">" = "</font>; +00223 str += Y; +00224 } +00225 +<a name="l00226"></a><a class="code" href="classNLAISCRIPT_1_1CSupEqOpCode.html#a1">00226</a> NLAIAGENT::TProcessStatement CSupEqOpCode::runOpCode(CCodeContext &context) +00227 { +00228 sint k = (int)context.Stack; +00229 <a class="code" href="classNLAIAGENT_1_1IObjetOp.html">NLAIAGENT::IObjetOp</a> *a = (<a class="code" href="classNLAIAGENT_1_1IObjetOp.html">NLAIAGENT::IObjetOp</a> *)context.Stack[k - 1]; +00230 <a class="code" href="classNLAIAGENT_1_1IObjetOp.html">NLAIAGENT::IObjetOp</a> *b = (<a class="code" href="classNLAIAGENT_1_1IObjetOp.html">NLAIAGENT::IObjetOp</a> *)context.Stack[k]; +00231 +00232 context.Stack[k - 1] = (*a) >= (*b); +00233 +00234 context.Stack--; +00235 a-><a class="code" href="classNLAIC_1_1IPointerGestion.html#a3">release</a>(); +00236 <font class="keywordflow">return</font> <a class="code" href="classNLAIAGENT_1_1IObjectIA.html#p2">NLAIAGENT::IObjectIA::ProcessIdle</a>;; +00237 } +00238 +<a name="l00239"></a><a class="code" href="classNLAISCRIPT_1_1CSupEqOpCode.html#a2">00239</a> <font class="keywordtype">void</font> CSupEqOpCode::getDebugResult(std::string &str,CCodeContext &context)<font class="keyword"> const</font> +00240 <font class="keyword"> </font>{ +00241 std::string X,Y; +00242 context.Stack[(int)context.Stack - 1]->getDebugString(X); +00243 context.Stack[(int)context.Stack]->getDebugString(Y); +00244 +00245 str = X; +00246 str += <font class="stringliteral">" >= "</font>; +00247 str += Y; +00248 } +00249 +<a name="l00250"></a><a class="code" href="classNLAISCRIPT_1_1CInfEqOpCode.html#a1">00250</a> NLAIAGENT::TProcessStatement CInfEqOpCode::runOpCode(CCodeContext &context) +00251 { +00252 sint k = (int)context.Stack; +00253 <a class="code" href="classNLAIAGENT_1_1IObjetOp.html">NLAIAGENT::IObjetOp</a> *a = (<a class="code" href="classNLAIAGENT_1_1IObjetOp.html">NLAIAGENT::IObjetOp</a> *)context.Stack[k - 1]; +00254 <a class="code" href="classNLAIAGENT_1_1IObjetOp.html">NLAIAGENT::IObjetOp</a> *b = (<a class="code" href="classNLAIAGENT_1_1IObjetOp.html">NLAIAGENT::IObjetOp</a> *)context.Stack[k]; +00255 +00256 context.Stack[k - 1] = (*a) <= (*b); +00257 +00258 context.Stack--; +00259 a-><a class="code" href="classNLAIC_1_1IPointerGestion.html#a3">release</a>(); +00260 <font class="keywordflow">return</font> <a class="code" href="classNLAIAGENT_1_1IObjectIA.html#p2">NLAIAGENT::IObjectIA::ProcessIdle</a>;; +00261 } +00262 +<a name="l00263"></a><a class="code" href="classNLAISCRIPT_1_1CInfEqOpCode.html#a2">00263</a> <font class="keywordtype">void</font> CInfEqOpCode::getDebugResult(std::string &str,CCodeContext &context)<font class="keyword"> const</font> +00264 <font class="keyword"> </font>{ +00265 std::string X,Y; +00266 context.Stack[(int)context.Stack - 1]->getDebugString(X); +00267 context.Stack[(int)context.Stack]->getDebugString(Y); +00268 +00269 str = X; +00270 str += <font class="stringliteral">" <= "</font>; +00271 str += Y; +00272 } +00273 +<a name="l00274"></a><a class="code" href="classNLAISCRIPT_1_1CDiffOpCode.html#a1">00274</a> NLAIAGENT::TProcessStatement CDiffOpCode::runOpCode(CCodeContext &context) +00275 { +00276 sint k = (int)context.Stack; +00277 <a class="code" href="classNLAIAGENT_1_1IObjetOp.html">NLAIAGENT::IObjetOp</a> *a = (<a class="code" href="classNLAIAGENT_1_1IObjetOp.html">NLAIAGENT::IObjetOp</a> *)context.Stack[k - 1]; +00278 <a class="code" href="classNLAIAGENT_1_1IObjetOp.html">NLAIAGENT::IObjetOp</a> *b = (<a class="code" href="classNLAIAGENT_1_1IObjetOp.html">NLAIAGENT::IObjetOp</a> *)context.Stack[k]; +00279 +00280 context.Stack[k - 1] = (*a) != (*b); +00281 +00282 context.Stack--; +00283 a-><a class="code" href="classNLAIC_1_1IPointerGestion.html#a3">release</a>(); +00284 +00285 <font class="keywordflow">return</font> <a class="code" href="classNLAIAGENT_1_1IObjectIA.html#p2">NLAIAGENT::IObjectIA::ProcessIdle</a>;; +00286 } +00287 +<a name="l00288"></a><a class="code" href="classNLAISCRIPT_1_1CDiffOpCode.html#a2">00288</a> <font class="keywordtype">void</font> CDiffOpCode::getDebugResult(std::string &str,CCodeContext &context)<font class="keyword"> const</font> +00289 <font class="keyword"> </font>{ +00290 std::string X,Y; +00291 context.Stack[(int)context.Stack - 1]->getDebugString(X); +00292 context.Stack[(int)context.Stack]->getDebugString(Y); +00293 +00294 str = X; +00295 str += <font class="stringliteral">" != "</font>; +00296 str += Y; +00297 } +00298 +<a name="l00299"></a><a class="code" href="classNLAISCRIPT_1_1CNotOpCode.html#a1">00299</a> NLAIAGENT::TProcessStatement CNotOpCode::runOpCode(CCodeContext &context) +00300 { +00301 +00302 <a class="code" href="classNLAIAGENT_1_1IObjetOp.html">NLAIAGENT::IObjetOp</a> *op = !*((<a class="code" href="classNLAIAGENT_1_1IObjetOp.html">NLAIAGENT::IObjetOp</a> *)((<a class="code" href="classNLAIAGENT_1_1IObjectIA.html">NLAIAGENT::IObjectIA</a> *)context.Stack)); +00303 context.Stack[(int)context.Stack]->release(); +00304 context.Stack[(int)context.Stack] = op; +00305 +00306 <font class="keywordflow">return</font> <a class="code" href="classNLAIAGENT_1_1IObjectIA.html#p2">NLAIAGENT::IObjectIA::ProcessIdle</a>; +00307 } +<a name="l00308"></a><a class="code" href="classNLAISCRIPT_1_1CNotOpCode.html#a2">00308</a> <font class="keywordtype">void</font> CNotOpCode::getDebugResult(std::string &str,CCodeContext &context)<font class="keyword"> const</font> +00309 <font class="keyword"> </font>{ +00310 std::string Y; +00311 context.Stack[(int)context.Stack]->getDebugString(Y); +00312 +00313 str = <font class="stringliteral">"!"</font>; +00314 str += Y; +00315 } +00316 +<a name="l00317"></a><a class="code" href="classNLAISCRIPT_1_1CAffMemberiOpCode.html#a1">00317</a> NLAIAGENT::TProcessStatement CAffMemberiOpCode::runOpCode(CCodeContext &context) +00318 { +00319 <a class="code" href="classNLAIAGENT_1_1IObjectIA.html">NLAIAGENT::IObjectIA</a> *a = ((<a class="code" href="classNLAIAGENT_1_1IObjectIA.html">NLAIAGENT::IObjectIA</a> *)context.Self); +00320 <a class="code" href="classstd_1_1list.html">std::list<sint32></a>::iterator i = <a class="code" href="classNLAISCRIPT_1_1CAffMemberiOpCode.html#o0">_I</a>.begin(); +00321 sint32 n = <a class="code" href="classNLAISCRIPT_1_1CAffMemberiOpCode.html#o0">_I</a>.size() - 1; +00322 <font class="keywordflow">while</font>(n --) +00323 { +00324 a = (<a class="code" href="classNLAIAGENT_1_1IObjectIA.html">NLAIAGENT::IObjectIA</a> *)a-><a class="code" href="classNLAIAGENT_1_1IObjectIA.html#a7">getStaticMember</a>(*i++); +00325 } +00326 <a class="code" href="classNLAIAGENT_1_1IObjectIA.html">NLAIAGENT::IObjectIA</a> *obj = ((<a class="code" href="classNLAIAGENT_1_1IObjectIA.html">NLAIAGENT::IObjectIA</a> *)context.Stack); +00327 +00328 <font class="keywordflow">if</font>(!a-><a class="code" href="classNLAIAGENT_1_1IObjectIA.html#a9">setStaticMember</a>(*i,obj)) +00329 obj-><a class="code" href="classNLAIC_1_1IPointerGestion.html#a2">incRef</a>(); +00330 context.Stack --; +00331 <font class="keywordflow">return</font> NLAIAGENT::processIdle; +00332 } +00333 +<a name="l00334"></a><a class="code" href="classNLAISCRIPT_1_1CAffMemberOpCode.html#a1">00334</a> NLAIAGENT::TProcessStatement CAffMemberOpCode::runOpCode(CCodeContext &context) +00335 { +00336 <a class="code" href="classNLAIAGENT_1_1IObjectIA.html">NLAIAGENT::IObjectIA</a> *a = ((<a class="code" href="classNLAIAGENT_1_1IObjectIA.html">NLAIAGENT::IObjectIA</a> *)context.Stack); +00337 +00338 <font class="keywordflow">if</font>(!((<a class="code" href="classNLAIAGENT_1_1IObjectIA.html">NLAIAGENT::IObjectIA</a> *)context.Self)->setStaticMember(<a class="code" href="classNLAISCRIPT_1_1CAffMemberOpCode.html#o0">_I</a>,a)) +00339 a-><a class="code" href="classNLAIC_1_1IPointerGestion.html#a2">incRef</a>(); +00340 context.Stack --; +00341 <font class="keywordflow">return</font> NLAIAGENT::processIdle; +00342 } +00343 +00344 <font class="comment">//*************************************</font> +00345 <font class="comment">// CLocAllocDebug</font> +00346 <font class="comment">//*************************************</font> +00347 +<a name="l00348"></a><a class="code" href="classNLAISCRIPT_1_1CLocAllocDebug.html#a0">00348</a> CLocAllocDebug::CLocAllocDebug() +00349 { +00350 } +00351 +<a name="l00352"></a><a class="code" href="classNLAISCRIPT_1_1CLocAllocDebug.html#a1">00352</a> CLocAllocDebug::~CLocAllocDebug() +00353 { +00354 } +00355 +<a name="l00356"></a><a class="code" href="classNLAISCRIPT_1_1CLocAllocDebug.html#a2">00356</a> NLAIAGENT::TProcessStatement CLocAllocDebug::runOpCode(CCodeContext &context) +00357 { +00358 <font class="comment">/*NLAIAGENT::iObjectIA *i = (NLAIAGENT::iObjectIA *)NLAIC::getRegistry()->createInstance(_b);</font> +00359 <font class="comment"> context.Heap[(sint32)context.Heap] = NULL;*/</font> +00360 context.Heap ++; +00361 context.ContextDebug.HeapDebug ++; +00362 <font class="comment">//context.ContextDebug->HeapDebug[context.ContextDebug->HeapDebug]</font> +00363 <font class="keywordflow">return</font> NLAIAGENT::processIdle; +00364 } +00365 +<a name="l00366"></a><a class="code" href="classNLAISCRIPT_1_1CLocAllocDebug.html#a3">00366</a> <font class="keywordtype">void</font> CLocAllocDebug::getDebugResult(std::string &str,CCodeContext &context)<font class="keyword"> const</font> +00367 <font class="keyword"> </font>{ +00368 str += <a class="code" href="namespaceNLAIC.html#a5">NLAIC::stringGetBuild</a>(<font class="stringliteral">"Reservation d'un espace memoir locale pour une variable à l'emplacement %d"</font>,(sint32)context.Heap); +00369 } +00370 +<a name="l00371"></a><a class="code" href="classNLAISCRIPT_1_1CLocAllocDebug.html#a4">00371</a> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1IBasicType.html">NLAIC::IBasicType</a> *CLocAllocDebug::clone()<font class="keyword"> const</font> +00372 <font class="keyword"> </font>{ +00373 <a class="code" href="classNLAIC_1_1IBasicType.html">NLAIC::IBasicType</a> *<a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a> = <font class="keyword">new</font> <a class="code" href="classNLAISCRIPT_1_1CLocAllocDebug.html#a0">CLocAllocDebug</a>(); +00374 <font class="keywordflow">return</font> x; +00375 } +<a name="l00376"></a><a class="code" href="classNLAISCRIPT_1_1CLocAllocDebug.html#a5">00376</a> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1IBasicType.html">NLAIC::IBasicType</a> *CLocAllocDebug::newInstance()<font class="keyword"> const </font> +00377 <font class="keyword"> </font>{ +00378 <font class="keywordflow">return</font> <a class="code" href="classNLAISCRIPT_1_1CLocAllocDebug.html#a4">clone</a>(); +00379 } +00380 +<a name="l00381"></a><a class="code" href="classNLAISCRIPT_1_1CLocAllocDebug.html#a6">00381</a> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1CIdentType.html">NLAIC::CIdentType</a> &CLocAllocDebug::getType()<font class="keyword"> const</font> +00382 <font class="keyword"> </font>{ +00383 <font class="keywordflow">return</font> <a class="code" href="classNLAISCRIPT_1_1CLocAllocDebug.html#p0">IdLocAllocDebug</a>; +00384 } +00385 +<a name="l00386"></a><a class="code" href="classNLAISCRIPT_1_1CLocAllocDebug.html#a7">00386</a> <font class="keywordtype">void</font> CLocAllocDebug::save(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &os) +00387 { +00388 +00389 } +00390 +<a name="l00391"></a><a class="code" href="classNLAISCRIPT_1_1CLocAllocDebug.html#a8">00391</a> <font class="keywordtype">void</font> CLocAllocDebug::load(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &is) +00392 { +00393 } +00394 +00395 <font class="comment">//*************************************</font> +00396 <font class="comment">// CAffOpCodeDebug</font> +00397 <font class="comment">//*************************************</font> +00398 +<a name="l00399"></a><a class="code" href="classNLAISCRIPT_1_1CAffOpCodeDebug.html#a0">00399</a> CAffOpCodeDebug::CAffOpCodeDebug(<font class="keywordtype">int</font> i, <font class="keyword">const</font> <font class="keywordtype">char</font>* varName): +00400 _I(i), +00401 _VarName(NULL) +00402 { +00403 <a class="code" href="classNLAISCRIPT_1_1CAffOpCodeDebug.html#o1">_VarName</a> = <font class="keyword">new</font> <font class="keywordtype">char</font>[strlen(varName)+1]; +00404 strcpy(<a class="code" href="classNLAISCRIPT_1_1CAffOpCodeDebug.html#o1">_VarName</a>, varName); +00405 } +00406 +<a name="l00407"></a><a class="code" href="classNLAISCRIPT_1_1CAffOpCodeDebug.html#a1">00407</a> CAffOpCodeDebug::~CAffOpCodeDebug() +00408 { +00409 <font class="keyword">delete</font>[] <a class="code" href="classNLAISCRIPT_1_1CAffOpCodeDebug.html#o1">_VarName</a>; +00410 } +00411 +00412 +<a name="l00413"></a><a class="code" href="classNLAISCRIPT_1_1CAffHeapMemberiOpCode.html#a1">00413</a> NLAIAGENT::TProcessStatement CAffHeapMemberiOpCode::runOpCode(CCodeContext &context) +00414 { +00415 +00416 <a class="code" href="classNLAIAGENT_1_1IObjectIA.html">NLAIAGENT::IObjectIA</a> *a = ((<a class="code" href="classNLAIAGENT_1_1IObjectIA.html">NLAIAGENT::IObjectIA</a> *)context.Heap[(int)<a class="code" href="classNLAISCRIPT_1_1CAffHeapMemberiOpCode.html#o1">_N</a>]); +00417 <a class="code" href="classstd_1_1list.html">std::list<sint32></a>::iterator i = <a class="code" href="classNLAISCRIPT_1_1CAffHeapMemberiOpCode.html#o0">_I</a>.begin(); +00418 sint32 n = <a class="code" href="classNLAISCRIPT_1_1CAffHeapMemberiOpCode.html#o0">_I</a>.size() - 1; +00419 <font class="keywordflow">while</font>(n --) +00420 { +00421 a = (<a class="code" href="classNLAIAGENT_1_1IObjectIA.html">NLAIAGENT::IObjectIA</a> *)a-><a class="code" href="classNLAIAGENT_1_1IObjectIA.html#a7">getStaticMember</a>(*i++); +00422 } +00423 <a class="code" href="classNLAIAGENT_1_1IObjectIA.html">NLAIAGENT::IObjectIA</a> *obj = ((<a class="code" href="classNLAIAGENT_1_1IObjectIA.html">NLAIAGENT::IObjectIA</a> *)context.Stack); +00424 +00425 <font class="keywordflow">if</font>(!a-><a class="code" href="classNLAIAGENT_1_1IObjectIA.html#a9">setStaticMember</a>(*i,obj)) +00426 obj-><a class="code" href="classNLAIC_1_1IPointerGestion.html#a2">incRef</a>(); +00427 context.Stack --; +00428 <font class="keywordflow">return</font> NLAIAGENT::processIdle; +00429 } +00430 +<a name="l00431"></a><a class="code" href="classNLAISCRIPT_1_1CAffHeapMemberiOpCode.html#a2">00431</a> <font class="keywordtype">void</font> CAffHeapMemberiOpCode::getDebugResult(std::string &str,CCodeContext &context)<font class="keyword"> const</font> +00432 <font class="keyword"> </font>{ +00433 std::string txt; +00434 std::string txtClass; +00435 ((<a class="code" href="classNLAIAGENT_1_1IObjectIA.html">NLAIAGENT::IObjectIA</a> *)context.Stack)->getDebugString(txt); +00436 ((<a class="code" href="classNLAIAGENT_1_1IObjectIA.html">NLAIAGENT::IObjectIA</a> *)context.Heap[(int)<a class="code" href="classNLAISCRIPT_1_1CAffHeapMemberiOpCode.html#o1">_N</a>])->getDebugString(txtClass); +00437 <a class="code" href="classstd_1_1list.html">std::list<sint32></a>::const_iterator i = <a class="code" href="classNLAISCRIPT_1_1CAffHeapMemberiOpCode.html#o0">_I</a>.begin(); +00438 sint32 n = <a class="code" href="classNLAISCRIPT_1_1CAffHeapMemberiOpCode.html#o0">_I</a>.size(); +00439 str += <a class="code" href="namespaceNLAIC.html#a5">NLAIC::stringGetBuild</a>(<font class="stringliteral">"Affecte le membre sur le heap : %s "</font>,txtClass.c_str()); +00440 <font class="keywordflow">while</font>(n --) +00441 { +00442 str += <a class="code" href="namespaceNLAIC.html#a5">NLAIC::stringGetBuild</a>(<font class="stringliteral">"%d"</font>,*i++); +00443 <font class="keywordflow">if</font>(n) str += <font class="stringliteral">"->"</font>; +00444 } +00445 str += <font class="stringliteral">" a la valeur: "</font>; +00446 str += txt; +00447 } +00448 +<a name="l00449"></a><a class="code" href="classNLAISCRIPT_1_1CAffOpCodeDebug.html#a2">00449</a> NLAIAGENT::TProcessStatement CAffOpCodeDebug::runOpCode(CCodeContext &context) +00450 { +00451 <font class="comment">/*NLAIAGENT::iObjectIA *i = (NLAIAGENT::iObjectIA *)NLAIC::getRegistry()->createInstance(_b);</font> +00452 <font class="comment"> context.Heap[(sint32)context.Heap] = i;</font> +00453 <font class="comment"> context.Heap ++;*/</font> +00454 +00455 <a class="code" href="classNLAIAGENT_1_1IObjectIA.html">NLAIAGENT::IObjectIA</a> *i = (<a class="code" href="classNLAIAGENT_1_1IObjectIA.html">NLAIAGENT::IObjectIA</a> *)context.Stack; +00456 <a class="code" href="classNLAIAGENT_1_1CStringVarName.html">NLAIAGENT::CStringVarName</a> vn(<a class="code" href="classNLAISCRIPT_1_1CAffOpCodeDebug.html#o1">_VarName</a>); +00457 <a class="code" href="classNLAIAGENT_1_1IObjectIA.html">NLAIAGENT::IObjectIA</a> *iD = (<a class="code" href="classNLAIAGENT_1_1IObjectIA.html">NLAIAGENT::IObjectIA</a> *) <font class="keyword">new</font> <a class="code" href="classNLAIAGENT_1_1CStringType.html">NLAIAGENT::CStringType</a>(vn); +00458 i-><a class="code" href="classNLAIC_1_1IPointerGestion.html#a2">incRef</a>(); +00459 <a class="code" href="classNLAIAGENT_1_1IObjectIA.html">NLAIAGENT::IObjectIA</a> *tmp = context.Heap[(int)<a class="code" href="classNLAISCRIPT_1_1CAffOpCodeDebug.html#o0">_I</a>]; +00460 <a class="code" href="classNLAIAGENT_1_1IObjectIA.html">NLAIAGENT::IObjectIA</a> *tmpD = context.ContextDebug.HeapDebug[(int)<a class="code" href="classNLAISCRIPT_1_1CAffOpCodeDebug.html#o0">_I</a>]; +00461 context.Heap[<a class="code" href="classNLAISCRIPT_1_1CAffOpCodeDebug.html#o0">_I</a>] = i; +00462 context.ContextDebug.HeapDebug[<a class="code" href="classNLAISCRIPT_1_1CAffOpCodeDebug.html#o0">_I</a>] = iD; +00463 <font class="keywordflow">if</font>(tmp) tmp-><a class="code" href="classNLAIC_1_1IPointerGestion.html#a3">release</a>(); +00464 <font class="keywordflow">if</font>(tmpD) tmpD-><a class="code" href="classNLAIC_1_1IPointerGestion.html#a3">release</a>(); +00465 <font class="comment">//context.Heap ++;</font> +00466 context.Stack --; +00467 <font class="keywordflow">return</font> NLAIAGENT::processIdle; +00468 } +00469 +<a name="l00470"></a><a class="code" href="classNLAISCRIPT_1_1CAffOpCodeDebug.html#a3">00470</a> <font class="keywordtype">void</font> CAffOpCodeDebug::getDebugResult(std::string &str,CCodeContext &context)<font class="keyword"> const</font> +00471 <font class="keyword"> </font>{ +00472 std::string Y; +00473 context.Stack[(int)context.Stack]->getDebugString(Y); +00474 str += <a class="code" href="namespaceNLAIC.html#a5">NLAIC::stringGetBuild</a>(<font class="stringliteral">"Affectation<%d> a %s"</font>,<a class="code" href="classNLAISCRIPT_1_1CAffOpCodeDebug.html#o0">_I</a>,Y.c_str()); +00475 } +00476 +<a name="l00477"></a><a class="code" href="classNLAISCRIPT_1_1CAffOpCodeDebug.html#a4">00477</a> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1IBasicType.html">NLAIC::IBasicType</a> *CAffOpCodeDebug::clone()<font class="keyword"> const</font> +00478 <font class="keyword"> </font>{ +00479 <a class="code" href="classNLAIC_1_1IBasicType.html">NLAIC::IBasicType</a> *<a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a> = <font class="keyword">new</font> <a class="code" href="classNLAISCRIPT_1_1CAffOpCodeDebug.html#a0">CAffOpCodeDebug</a>(<a class="code" href="classNLAISCRIPT_1_1CAffOpCodeDebug.html#o0">_I</a>, <a class="code" href="classNLAISCRIPT_1_1CAffOpCodeDebug.html#o1">_VarName</a>); +00480 <font class="keywordflow">return</font> x; +00481 } +<a name="l00482"></a><a class="code" href="classNLAISCRIPT_1_1CAffOpCodeDebug.html#a5">00482</a> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1IBasicType.html">NLAIC::IBasicType</a> *CAffOpCodeDebug::newInstance()<font class="keyword"> const </font> +00483 <font class="keyword"> </font>{ +00484 <font class="keywordflow">return</font> <a class="code" href="classNLAISCRIPT_1_1CAffOpCodeDebug.html#a4">clone</a>(); +00485 } +00486 +<a name="l00487"></a><a class="code" href="classNLAISCRIPT_1_1CAffOpCodeDebug.html#a6">00487</a> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1CIdentType.html">NLAIC::CIdentType</a> &CAffOpCodeDebug::getType()<font class="keyword"> const</font> +00488 <font class="keyword"> </font>{ +00489 <font class="keywordflow">return</font> <a class="code" href="classNLAISCRIPT_1_1CAffOpCodeDebug.html#p0">IdAffOpCodeDebug</a>; +00490 } +00491 +<a name="l00492"></a><a class="code" href="classNLAISCRIPT_1_1CAffOpCodeDebug.html#a7">00492</a> <font class="keywordtype">void</font> CAffOpCodeDebug::getDebugString(<font class="keywordtype">char</font> *)<font class="keyword"> const</font>{ } +00493 +<a name="l00494"></a><a class="code" href="classNLAISCRIPT_1_1CAffOpCodeDebug.html#a8">00494</a> <font class="keywordtype">void</font> CAffOpCodeDebug::save(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &os) +00495 { +00496 sint32 i = (sint32) <a class="code" href="classNLAISCRIPT_1_1CAffOpCodeDebug.html#o0">_I</a>; +00497 os.<a class="code" href="classNLMISC_1_1IStream.html#a5">serial</a>( i ); +00498 std::string <a class="code" href="driver__opengl__extension__def_8h.html#a383">s</a>(<a class="code" href="classNLAISCRIPT_1_1CAffOpCodeDebug.html#o1">_VarName</a>); +00499 os.<a class="code" href="classNLMISC_1_1IStream.html#a5">serial</a>(<a class="code" href="driver__opengl__extension__def_8h.html#a383">s</a>); +00500 } +00501 +<a name="l00502"></a><a class="code" href="classNLAISCRIPT_1_1CAffOpCodeDebug.html#a9">00502</a> <font class="keywordtype">void</font> CAffOpCodeDebug::load(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &is) +00503 { +00504 sint32 i; +00505 is.<a class="code" href="classNLMISC_1_1IStream.html#a5">serial</a>(i); +00506 <a class="code" href="classNLAISCRIPT_1_1CAffOpCodeDebug.html#o0">_I</a> = i; +00507 std::string varname; +00508 is.<a class="code" href="classNLMISC_1_1IStream.html#a5">serial</a>( varname ); +00509 <font class="keyword">delete</font> <a class="code" href="classNLAISCRIPT_1_1CAffOpCodeDebug.html#o1">_VarName</a>; +00510 <a class="code" href="classNLAISCRIPT_1_1CAffOpCodeDebug.html#o1">_VarName</a> = <font class="keyword">new</font> <font class="keywordtype">char</font>[varname.length()+1]; +00511 strcpy(<a class="code" href="classNLAISCRIPT_1_1CAffOpCodeDebug.html#o1">_VarName</a>, varname.c_str()); +00512 } +00513 +00514 <font class="comment">//*************************************</font> +00515 <font class="comment">// CFreeAllocDebug</font> +00516 <font class="comment">//*************************************</font> +00517 +<a name="l00518"></a><a class="code" href="classNLAISCRIPT_1_1CFreeAllocDebug.html#a0">00518</a> CFreeAllocDebug::CFreeAllocDebug() +00519 { +00520 } +00521 +<a name="l00522"></a><a class="code" href="classNLAISCRIPT_1_1CFreeAllocDebug.html#a2">00522</a> CFreeAllocDebug::~CFreeAllocDebug() +00523 { +00524 } +00525 +<a name="l00526"></a><a class="code" href="classNLAISCRIPT_1_1CFreeAllocDebug.html#a1">00526</a> NLAIAGENT::TProcessStatement CFreeAllocDebug::runOpCode(CCodeContext &context) +00527 { +00528 sint32 i = (sint32)context.Heap; +00529 i -= context.Heap.popMark(); +00530 context.Heap -= i; +00531 +00532 sint32 j = (sint32)context.ContextDebug.HeapDebug; +00533 <font class="comment">// j -= context.ContextDebug.HeapDebug.popMark();</font> +00534 context.ContextDebug.HeapDebug -= j; +00535 +00536 <font class="keywordflow">return</font> NLAIAGENT::processIdle; +00537 } +<a name="l00538"></a><a class="code" href="classNLAISCRIPT_1_1CFreeAllocDebug.html#a3">00538</a> <font class="keywordtype">void</font> CFreeAllocDebug::getDebugResult(std::string &str,CCodeContext &context)<font class="keyword"> const</font> +00539 <font class="keyword"> </font>{ +00540 str += <a class="code" href="namespaceNLAIC.html#a5">NLAIC::stringGetBuild</a>(<font class="stringliteral">"libere le bloc de memoire de %d à %d"</font>,(sint32)context.Heap.mark(),(sint32)context.Heap); +00541 } +00542 +<a name="l00543"></a><a class="code" href="classNLAISCRIPT_1_1CFreeAllocDebug.html#a4">00543</a> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1IBasicType.html">NLAIC::IBasicType</a> *CFreeAllocDebug::clone()<font class="keyword"> const</font> +00544 <font class="keyword"> </font>{ +00545 <a class="code" href="classNLAIC_1_1IBasicType.html">NLAIC::IBasicType</a> *<a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a> = <font class="keyword">new</font> <a class="code" href="classNLAISCRIPT_1_1CFreeAllocDebug.html#a0">CFreeAllocDebug</a>(); +00546 <font class="keywordflow">return</font> x; +00547 } +<a name="l00548"></a><a class="code" href="classNLAISCRIPT_1_1CFreeAllocDebug.html#a5">00548</a> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1IBasicType.html">NLAIC::IBasicType</a> *CFreeAllocDebug::newInstance()<font class="keyword"> const </font> +00549 <font class="keyword"> </font>{ +00550 <font class="keywordflow">return</font> <a class="code" href="classNLAISCRIPT_1_1CFreeAllocDebug.html#a4">clone</a>(); +00551 } +00552 +<a name="l00553"></a><a class="code" href="classNLAISCRIPT_1_1CFreeAllocDebug.html#a6">00553</a> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1CIdentType.html">NLAIC::CIdentType</a> &CFreeAllocDebug::getType()<font class="keyword"> const</font> +00554 <font class="keyword"> </font>{ +00555 <font class="keywordflow">return</font> <a class="code" href="classNLAISCRIPT_1_1CFreeAllocDebug.html#p0">IdFreeAllocDebug</a>; +00556 } +00557 +00558 +00559 +<a name="l00560"></a><a class="code" href="classNLAISCRIPT_1_1CFreeAllocDebug.html#a7">00560</a> <font class="keywordtype">void</font> CFreeAllocDebug::save(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &os) +00561 { +00562 } +00563 +<a name="l00564"></a><a class="code" href="classNLAISCRIPT_1_1CFreeAllocDebug.html#a8">00564</a> <font class="keywordtype">void</font> CFreeAllocDebug::load(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &is) +00565 { +00566 } +00567 +00568 <font class="comment">//*************************************</font> +00569 <font class="comment">// CMarkMsg</font> +00570 <font class="comment">//*************************************</font> +<a name="l00571"></a><a class="code" href="classNLAISCRIPT_1_1CMarkMsg.html#a2">00571</a> NLAIAGENT::TProcessStatement CMarkMsg::runOpCode(CCodeContext &context) +00572 { +00573 <a class="code" href="classNLAIAGENT_1_1IBaseGroupType.html">NLAIAGENT::IBaseGroupType</a> *<a class="code" href="driver__opengl__extension__def_8h.html#a382">param</a> = (<a class="code" href="classNLAIAGENT_1_1IBaseGroupType.html">NLAIAGENT::IBaseGroupType</a> *)context.Stack[(int)context.Stack]; +00574 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html">NLAIAGENT::IMessageBase</a> *msg = (<a class="code" href="classNLAIAGENT_1_1IMessageBase.html">NLAIAGENT::IMessageBase</a> *)param-><a class="code" href="classNLAIAGENT_1_1IBaseGroupType.html#z136_10">get</a>(); +00575 msg-><a class="code" href="classNLAIAGENT_1_1IMessageBase.html#z166_0">setMethodIndex</a>(<a class="code" href="classNLAISCRIPT_1_1CMarkMsg.html#o1">_Heritance</a>,<a class="code" href="classNLAISCRIPT_1_1CMarkMsg.html#o0">_I</a>); +00576 <font class="keywordflow">return</font> NLAIAGENT::processIdle; +00577 } +00578 +00579 <font class="comment">//*************************************</font> +00580 <font class="comment">// CFindRunMsg</font> +00581 <font class="comment">//*************************************</font> +00582 +<a name="l00583"></a><a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#a0">00583</a> CFindRunMsg::CFindRunMsg(<a class="code" href="classNLAIAGENT_1_1IBaseGroupType.html">NLAIAGENT::IBaseGroupType</a> *methodName,CParam *<a class="code" href="driver__opengl__extension__def_8h.html#a382">param</a>,IOpType *baseClass,ILoadObject *objectLoad) +00584 { +00585 <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o0">_Param</a> = <a class="code" href="driver__opengl__extension__def_8h.html#a382">param</a>; +00586 <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o1">_MethodName</a> = methodName; +00587 <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o2">_BaseClass</a> = baseClass; +00588 <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o3">_ObjectLoad</a> = objectLoad; +00589 } +00590 +<a name="l00591"></a><a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#a1">00591</a> CFindRunMsg::CFindRunMsg(<font class="keyword">const</font> <a class="code" href="classNLAIAGENT_1_1IBaseGroupType.html">NLAIAGENT::IBaseGroupType</a> &methodName,<font class="keyword">const</font> CParam &<a class="code" href="driver__opengl__extension__def_8h.html#a382">param</a>,<font class="keyword">const</font> IOpType &baseClass,<font class="keyword">const</font> ILoadObject &objectLoad) +00592 { +00593 <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o0">_Param</a> = (CParam *)<a class="code" href="driver__opengl__extension__def_8h.html#a382">param</a>.clone(); +00594 <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o1">_MethodName</a> = (<a class="code" href="classNLAIAGENT_1_1IBaseGroupType.html">NLAIAGENT::IBaseGroupType</a> *)methodName.<a class="code" href="classNLAIC_1_1IBasicType.html#a3">clone</a>(); +00595 <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o2">_BaseClass</a> = (IOpType *)baseClass.clone(); +00596 <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o3">_ObjectLoad</a> = (ILoadObject *)objectLoad.clone(); +00597 } +00598 +<a name="l00599"></a><a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#a2">00599</a> CFindRunMsg::~CFindRunMsg() +00600 { +00601 <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o0">_Param</a>->release(); +00602 <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o1">_MethodName</a>-><a class="code" href="classNLAIC_1_1IPointerGestion.html#a3">release</a>(); +00603 <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o2">_BaseClass</a>->release(); +00604 <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o3">_ObjectLoad</a>->release(); +00605 } +00606 +<a name="l00607"></a><a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#a3">00607</a> NLAIAGENT::TProcessStatement CFindRunMsg::runOpCode(CCodeContext &context) +00608 { +00609 <font class="keyword">const</font> <a class="code" href="classNLAIAGENT_1_1IObjectIA.html">NLAIAGENT::IObjectIA</a> *o = <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o3">_ObjectLoad</a>->getObject(context); +00610 <a class="code" href="classNLAIAGENT_1_1IBaseGroupType.html">NLAIAGENT::IBaseGroupType</a> *<a class="code" href="driver__opengl__extension__def_8h.html#a382">param</a> = (<a class="code" href="classNLAIAGENT_1_1IBaseGroupType.html">NLAIAGENT::IBaseGroupType</a> *)<a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o3">_ObjectLoad</a>->getParam(context); +00611 <a class="code" href="classNLAIAGENT_1_1CIteratorContener.html">NLAIAGENT::CIteratorContener</a> it = param-><a class="code" href="classNLAIAGENT_1_1IBaseGroupType.html#z136_6">getIterator</a>(); +00612 it ++; +00613 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html">NLAIAGENT::IMessageBase</a> *msg = (<a class="code" href="classNLAIAGENT_1_1IMessageBase.html">NLAIAGENT::IMessageBase</a> *)it++; +00614 +00615 <font class="keyword">const</font> <a class="code" href="classNLAIAGENT_1_1CStringType.html">NLAIAGENT::CStringType</a> *name = (<font class="keyword">const</font> <a class="code" href="classNLAIAGENT_1_1CStringType.html">NLAIAGENT::CStringType</a> *)<a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o1">_MethodName</a>-><a class="code" href="classNLAIAGENT_1_1IBaseGroupType.html#z136_10">get</a>(); +00616 +00617 NLAIAGENT::tQueue a = o-><a class="code" href="classNLAIAGENT_1_1IObjectIA.html#a12">isMember</a>(NULL,&name-><a class="code" href="classNLAIAGENT_1_1CStringType.html#a10">getStr</a>(),*<a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o0">_Param</a>); +00618 +00619 <font class="keywordflow">if</font>(a.size()) +00620 { +00621 <a class="code" href="structNLAIAGENT_1_1CIdMethod.html">NLAIAGENT::CIdMethod</a> m = a.top(); +00622 msg-><a class="code" href="classNLAIAGENT_1_1IMessageBase.html#z166_0">setMethodIndex</a>(0,m.<a class="code" href="structNLAIAGENT_1_1CIdMethod.html#m0">Index</a>); +00623 } +00624 +00625 <font class="keywordflow">return</font> NLAIAGENT::processIdle; +00626 } +00627 +<a name="l00628"></a><a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#a4">00628</a> <font class="keywordtype">void</font> CFindRunMsg::getDebugResult(std::string &str,CCodeContext &context)<font class="keyword"> const</font> +00629 <font class="keyword"> </font>{ +00630 std::string m; +00631 std::string p; +00632 <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o1">_MethodName</a>-><a class="code" href="classNLAIC_1_1IBasicType.html#a5">getDebugString</a>(m); +00633 <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o0">_Param</a>->getDebugString(p); +00634 str += <a class="code" href="namespaceNLAIC.html#a5">NLAIC::stringGetBuild</a>(<font class="stringliteral">"find '%s%s' for %s"</font>,m.c_str() ,p.c_str(), (<font class="keyword">const</font> <font class="keywordtype">char</font> *)context.Self->getType()); +00635 } +00636 +<a name="l00637"></a><a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#a5">00637</a> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1IBasicType.html">NLAIC::IBasicType</a> *CFindRunMsg::clone()<font class="keyword"> const</font> +00638 <font class="keyword"> </font>{ +00639 <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o0">_Param</a>->incRef(); +00640 <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o1">_MethodName</a>-><a class="code" href="classNLAIC_1_1IPointerGestion.html#a2">incRef</a>(); +00641 <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o2">_BaseClass</a>->incRef(); +00642 <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o3">_ObjectLoad</a>->incRef(); +00643 <a class="code" href="classNLAIC_1_1IBasicType.html">NLAIC::IBasicType</a> *<a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#a5">clone</a> = <font class="keyword">new</font> <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#a0">CFindRunMsg</a>(<a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o1">_MethodName</a>,<a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o0">_Param</a>,<a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o2">_BaseClass</a>,<a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o3">_ObjectLoad</a>); +00644 <font class="keywordflow">return</font> clone; +00645 } +00646 +<a name="l00647"></a><a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#a9">00647</a> <font class="keywordtype">void</font> CFindRunMsg::save(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &os) +00648 { +00649 os.<a class="code" href="classNLMISC_1_1IStream.html#a5">serial</a>( (<a class="code" href="classNLAIC_1_1CIdentType.html">NLAIC::CIdentType</a> &) <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o3">_ObjectLoad</a>->getType() ); +00650 <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o3">_ObjectLoad</a>->save(os); +00651 <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o2">_BaseClass</a>->serial(os); +00652 os.<a class="code" href="classNLMISC_1_1IStream.html#a5">serial</a>( (<a class="code" href="classNLAIC_1_1CIdentType.html">NLAIC::CIdentType</a> &) <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o0">_Param</a>->getType() ); +00653 <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o0">_Param</a>->save(os); +00654 os.<a class="code" href="classNLMISC_1_1IStream.html#a5">serial</a>( (<a class="code" href="classNLAIC_1_1CIdentType.html">NLAIC::CIdentType</a> &) <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o1">_MethodName</a>-><a class="code" href="classNLAIC_1_1IBasicType.html#a2">getType</a>() ); +00655 <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o1">_MethodName</a>-><a class="code" href="classNLAIC_1_1IBasicInterface.html#a4">save</a>(os); +00656 } +00657 +<a name="l00658"></a><a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#a10">00658</a> <font class="keywordtype">void</font> CFindRunMsg::load(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &is) +00659 { +00660 <a class="code" href="classNLAIC_1_1CIdentTypeAlloc.html">NLAIC::CIdentTypeAlloc</a> <a class="code" href="driver__opengl__extension__def_8h.html#a356">id</a>; +00661 is.<a class="code" href="classNLMISC_1_1IStream.html#a5">serial</a>( id ); +00662 <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o3">_ObjectLoad</a>->release(); +00663 <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o3">_ObjectLoad</a> = (ILoadObject *)id.<a class="code" href="classNLAIC_1_1CIdentTypeAlloc.html#a3">allocClass</a>(); +00664 <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o3">_ObjectLoad</a>->load(is); +00665 +00666 <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o2">_BaseClass</a>->release(); +00667 <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o2">_BaseClass</a> = (IOpType *)IOpType::loadIOpType(is); +00668 <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o0">_Param</a>->release(); +00669 <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o1">_MethodName</a>-><a class="code" href="classNLAIC_1_1IPointerGestion.html#a3">release</a>(); +00670 is.<a class="code" href="classNLMISC_1_1IStream.html#a5">serial</a>( id ); +00671 <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o0">_Param</a> = (CParam *)id.<a class="code" href="classNLAIC_1_1CIdentTypeAlloc.html#a3">allocClass</a>(); +00672 <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o0">_Param</a>->load(is); +00673 is.<a class="code" href="classNLMISC_1_1IStream.html#a5">serial</a>( id ); +00674 <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o1">_MethodName</a> = (<a class="code" href="classNLAIAGENT_1_1IBaseGroupType.html">NLAIAGENT::IBaseGroupType</a> *)id.<a class="code" href="classNLAIC_1_1CIdentTypeAlloc.html#a3">allocClass</a>(); +00675 <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o1">_MethodName</a>-><a class="code" href="classNLAIC_1_1IBasicInterface.html#a5">load</a>(is); +00676 } +00677 +00678 <font class="comment">//*************************************</font> +00679 <font class="comment">// CMsgSetSender</font> +00680 <font class="comment">//*************************************</font> +00681 +<a name="l00682"></a><a class="code" href="classNLAISCRIPT_1_1CMsgSetSender.html#a0">00682</a> NLAIAGENT::TProcessStatement CMsgSetSender::runOpCode(CCodeContext &context) +00683 { +00684 <a class="code" href="classNLAIAGENT_1_1IBaseGroupType.html">NLAIAGENT::IBaseGroupType</a> *a = (<a class="code" href="classNLAIAGENT_1_1IBaseGroupType.html">NLAIAGENT::IBaseGroupType</a> *)context.Stack[(int)context.Stack]; +00685 <a class="code" href="classNLAIAGENT_1_1CIteratorContener.html">NLAIAGENT::CIteratorContener</a> i = a-><a class="code" href="classNLAIAGENT_1_1IBaseGroupType.html#z136_6">getIterator</a>(); +00686 i++; +00687 <font class="keywordflow">if</font>(a-><a class="code" href="classNLAIAGENT_1_1IBaseGroupType.html#z136_12">size</a>() == 3) i++; +00688 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html">NLAIAGENT::IMessageBase</a> *msg = (<a class="code" href="classNLAIAGENT_1_1IMessageBase.html">NLAIAGENT::IMessageBase</a> *)i ++; +00689 <font class="comment">//((NLAIAGENT::IObjectIA *)context.Self)->incRef();</font> +00690 <font class="keywordflow">if</font>(!msg-><a class="code" href="classNLAIAGENT_1_1IMessageBase.html#z166_5">getProtcetSender</a>()) msg-><a class="code" href="classNLAIAGENT_1_1IMessageBase.html#z165_0">setSender</a>((<a class="code" href="classNLAIAGENT_1_1IObjectIA.html">NLAIAGENT::IObjectIA</a> *)context.Self); +00691 <font class="keywordflow">else</font> msg-><a class="code" href="classNLAIAGENT_1_1IMessageBase.html#z166_4">UnsetProtcetSender</a>(); +00692 +00693 +00694 <font class="keywordflow">return</font> NLAIAGENT::processIdle; +00695 } +00696 +<a name="l00697"></a><a class="code" href="classNLAISCRIPT_1_1CMsgSetSender.html#a6">00697</a> <font class="keywordtype">void</font> CMsgSetSender::save(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &os) +00698 { +00699 } +00700 +<a name="l00701"></a><a class="code" href="classNLAISCRIPT_1_1CMsgSetSender.html#a7">00701</a> <font class="keywordtype">void</font> CMsgSetSender::load(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &is) +00702 { +00703 } +00704 +<a name="l00705"></a><a class="code" href="classNLAISCRIPT_1_1CMsgSetSender.html#a1">00705</a> <font class="keywordtype">void</font> CMsgSetSender::getDebugResult(std::string &str,CCodeContext &context)<font class="keyword"> const</font> +00706 <font class="keyword"> </font>{ +00707 str += <font class="stringliteral">"MsgSetSender"</font>; +00708 } +00709 +00710 <font class="comment">//*************************************</font> +00711 <font class="comment">// CAddParamNameDebug</font> +00712 <font class="comment">//*************************************</font> +00713 +<a name="l00714"></a><a class="code" href="classNLAISCRIPT_1_1CAddParamNameDebug.html#a0">00714</a> CAddParamNameDebug::CAddParamNameDebug(<font class="keyword">const</font> <a class="code" href="classNLAIAGENT_1_1IBaseGroupType.html">NLAIAGENT::IBaseGroupType</a> &debugAttrib) +00715 { +00716 <a class="code" href="classNLAISCRIPT_1_1CAddParamNameDebug.html#o0">_DebugAttrib</a> = (<a class="code" href="classNLAIAGENT_1_1IBaseGroupType.html">NLAIAGENT::IBaseGroupType</a> *)debugAttrib.<a class="code" href="classNLAIC_1_1IBasicType.html#a3">clone</a>(); +00717 } +00718 +<a name="l00719"></a><a class="code" href="classNLAISCRIPT_1_1CAddParamNameDebug.html#a2">00719</a> CAddParamNameDebug::~CAddParamNameDebug() +00720 { +00721 <a class="code" href="classNLAISCRIPT_1_1CAddParamNameDebug.html#o0">_DebugAttrib</a>-><a class="code" href="classNLAIC_1_1IPointerGestion.html#a3">release</a>(); +00722 } +00723 +<a name="l00724"></a><a class="code" href="classNLAISCRIPT_1_1CAddParamNameDebug.html#a1">00724</a> NLAIAGENT::TProcessStatement CAddParamNameDebug::runOpCode(CCodeContext &context) +00725 { +00726 context.ContextDebug.Param.push_back(<a class="code" href="classNLAISCRIPT_1_1CAddParamNameDebug.html#o0">_DebugAttrib</a>); +00727 <a class="code" href="classNLAISCRIPT_1_1CAddParamNameDebug.html#o0">_DebugAttrib</a>-><a class="code" href="classNLAIC_1_1IPointerGestion.html#a2">incRef</a>(); +00728 <font class="keywordflow">return</font> NLAIAGENT::processIdle; +00729 } +00730 +<a name="l00731"></a><a class="code" href="classNLAISCRIPT_1_1CAddParamNameDebug.html#a3">00731</a> <font class="keywordtype">void</font> CAddParamNameDebug::getDebugResult(std::string &str,CCodeContext &context)<font class="keyword"> const</font> +00732 <font class="keyword"> </font>{ +00733 str = <font class="stringliteral">"Build a name liste that match the actual function parameters values."</font>; +00734 } +00735 +<a name="l00736"></a><a class="code" href="classNLAISCRIPT_1_1CAddParamNameDebug.html#a4">00736</a> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1IBasicType.html">NLAIC::IBasicType</a> *CAddParamNameDebug::clone()<font class="keyword"> const</font> +00737 <font class="keyword"> </font>{ +00738 <a class="code" href="classNLAIC_1_1IBasicType.html">NLAIC::IBasicType</a> *<a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a> = <font class="keyword">new</font> <a class="code" href="classNLAISCRIPT_1_1CAddParamNameDebug.html#a0">CAddParamNameDebug</a>(*<a class="code" href="classNLAISCRIPT_1_1CAddParamNameDebug.html#o0">_DebugAttrib</a>); +00739 <font class="keywordflow">return</font> x; +00740 } +00741 +<a name="l00742"></a><a class="code" href="classNLAISCRIPT_1_1CAddParamNameDebug.html#a5">00742</a> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1IBasicType.html">NLAIC::IBasicType</a> *CAddParamNameDebug::newInstance()<font class="keyword"> const </font> +00743 <font class="keyword"> </font>{ +00744 <font class="keywordflow">return</font> <a class="code" href="classNLAISCRIPT_1_1CAddParamNameDebug.html#a4">clone</a>(); +00745 } +00746 +<a name="l00747"></a><a class="code" href="classNLAISCRIPT_1_1CAddParamNameDebug.html#a6">00747</a> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1CIdentType.html">NLAIC::CIdentType</a> &CAddParamNameDebug::getType()<font class="keyword"> const</font> +00748 <font class="keyword"> </font>{ +00749 <font class="keywordflow">return</font> <a class="code" href="classNLAISCRIPT_1_1CAddParamNameDebug.html#p0">IdAddParamNameDebug</a>; +00750 } +00751 +<a name="l00752"></a><a class="code" href="classNLAISCRIPT_1_1CAddParamNameDebug.html#a7">00752</a> <font class="keywordtype">void</font> CAddParamNameDebug::save(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &os) +00753 { +00754 os.<a class="code" href="classNLMISC_1_1IStream.html#a5">serial</a>( (<a class="code" href="classNLAIC_1_1CIdentType.html">NLAIC::CIdentType</a> &) <a class="code" href="classNLAISCRIPT_1_1CAddParamNameDebug.html#o0">_DebugAttrib</a>-><a class="code" href="classNLAIC_1_1IBasicType.html#a2">getType</a>() ); +00755 <a class="code" href="classNLAISCRIPT_1_1CAddParamNameDebug.html#o0">_DebugAttrib</a>-><a class="code" href="classNLAIC_1_1IBasicInterface.html#a4">save</a>(os); +00756 } +00757 +<a name="l00758"></a><a class="code" href="classNLAISCRIPT_1_1CAddParamNameDebug.html#a8">00758</a> <font class="keywordtype">void</font> CAddParamNameDebug::load(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &is) +00759 { +00760 <a class="code" href="classNLAISCRIPT_1_1CAddParamNameDebug.html#o0">_DebugAttrib</a>-><a class="code" href="classNLAIC_1_1IPointerGestion.html#a3">release</a>(); +00761 <a class="code" href="classNLAIC_1_1CIdentTypeAlloc.html">NLAIC::CIdentTypeAlloc</a> <a class="code" href="driver__opengl__extension__def_8h.html#a356">id</a>; +00762 is.<a class="code" href="classNLMISC_1_1IStream.html#a5">serial</a>( id ); +00763 <a class="code" href="classNLAISCRIPT_1_1CAddParamNameDebug.html#o0">_DebugAttrib</a> = (<a class="code" href="classNLAIAGENT_1_1IBaseGroupType.html">NLAIAGENT::IBaseGroupType</a> *)id.<a class="code" href="classNLAIC_1_1CIdentTypeAlloc.html#a3">allocClass</a>(); +00764 <a class="code" href="classNLAISCRIPT_1_1CAddParamNameDebug.html#o0">_DebugAttrib</a>-><a class="code" href="classNLAIC_1_1IBasicInterface.html#a5">load</a>(is); +00765 } +00766 } +</pre></div> + +<!-- footer --> +<BR><FONT Size=+5> </FONT> +</TD> +<TD WIDTH=15><IMG SRC=http://www.nevrax.org/inc/img/pixel.gif WIDTH=15 HEIGHT=15 BORDER=0 ALT=""></TD> +</TR> +</TABLE> +</BODY> +</HTML> |