diff options
Diffstat (limited to 'docs/doxygen/nel/constraint_8h-source.html')
-rw-r--r-- | docs/doxygen/nel/constraint_8h-source.html | 362 |
1 files changed, 362 insertions, 0 deletions
diff --git a/docs/doxygen/nel/constraint_8h-source.html b/docs/doxygen/nel/constraint_8h-source.html new file mode 100644 index 00000000..bd67006d --- /dev/null +++ b/docs/doxygen/nel/constraint_8h-source.html @@ -0,0 +1,362 @@ +<!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>constraint.h</h1><a href="constraint_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 +00007 <font class="comment">/* Copyright, 2000 Nevrax Ltd.</font> +00008 <font class="comment"> *</font> +00009 <font class="comment"> * This file is part of NEVRAX NEL.</font> +00010 <font class="comment"> * NEVRAX NEL is free software; you can redistribute it and/or modify</font> +00011 <font class="comment"> * it under the terms of the GNU General Public License as published by</font> +00012 <font class="comment"> * the Free Software Foundation; either version 2, or (at your option)</font> +00013 <font class="comment"> * any later version.</font> +00014 <font class="comment"></font> +00015 <font class="comment"> * NEVRAX NEL is distributed in the hope that it will be useful, but</font> +00016 <font class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</font> +00017 <font class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</font> +00018 <font class="comment"> * General Public License for more details.</font> +00019 <font class="comment"></font> +00020 <font class="comment"> * You should have received a copy of the GNU General Public License</font> +00021 <font class="comment"> * along with NEVRAX NEL; see the file COPYING. If not, write to the</font> +00022 <font class="comment"> * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,</font> +00023 <font class="comment"> * MA 02111-1307, USA.</font> +00024 <font class="comment"> */</font> +00025 +00026 <font class="preprocessor">#ifndef NL_CONSTRAINT_H</font> +00027 <font class="preprocessor"></font><font class="preprocessor">#define NL_CONSTRAINT_H</font> +00028 <font class="preprocessor"></font> +00029 <font class="preprocessor">#include "<a class="code" href="interpret__methodes_8h.html">nel/ai/script/interpret_methodes.h</a>"</font> +00030 +00031 <font class="keyword">namespace </font>NLAISCRIPT +00032 { +00033 <font class="keyword">class </font>CCompilateur; +00034 <font class="keyword">class </font>CCodeBrancheRun; +00035 <font class="keyword">class </font>CMethodeName; +00036 <font class="keyword">class </font>IClassInterpret; +00037 <font class="keyword">class </font>IOpCode; +00038 +<a name="l00049"></a><a class="code" href="structNLAISCRIPT_1_1CFunctionTag.html">00049</a> <font class="keyword">struct </font>CFunctionTag +00050 { +<a name="l00052"></a><a class="code" href="structNLAISCRIPT_1_1CFunctionTag.html#m0">00052</a> sint32 <a class="code" href="structNLAISCRIPT_1_1CFunctionTag.html#m0">Inheritance</a>; +<a name="l00054"></a><a class="code" href="structNLAISCRIPT_1_1CFunctionTag.html#m1">00054</a> sint32 <a class="code" href="structNLAISCRIPT_1_1CFunctionTag.html#m1">MethodNum</a>; +<a name="l00056"></a><a class="code" href="structNLAISCRIPT_1_1CFunctionTag.html#m2">00056</a> CMethodeName *<a class="code" href="structNLAISCRIPT_1_1CFunctionTag.html#m2">Method</a>; +<a name="l00058"></a><a class="code" href="structNLAISCRIPT_1_1CFunctionTag.html#m3">00058</a> <font class="keyword">const</font> <a class="code" href="classNLAIAGENT_1_1IObjectIA.html">NLAIAGENT::IObjectIA</a> *<a class="code" href="structNLAISCRIPT_1_1CFunctionTag.html#m3">Object</a>; +<a name="l00060"></a><a class="code" href="structNLAISCRIPT_1_1CFunctionTag.html#m4">00060</a> <font class="keyword">const</font> <a class="code" href="classNLAIAGENT_1_1IVarName.html">NLAIAGENT::IVarName</a> *<a class="code" href="structNLAISCRIPT_1_1CFunctionTag.html#m4">MethodName</a>; +<a name="l00062"></a><a class="code" href="structNLAISCRIPT_1_1CFunctionTag.html#m5">00062</a> <a class="code" href="classstd_1_1list.html">std::list<sint32></a> <a class="code" href="structNLAISCRIPT_1_1CFunctionTag.html#m5">Member</a>; +<a name="l00064"></a><a class="code" href="structNLAISCRIPT_1_1CFunctionTag.html#m6">00064</a> <a class="code" href="classNLAIAGENT_1_1IObjectIA.html">NLAIAGENT::IObjectIA</a> *<a class="code" href="structNLAISCRIPT_1_1CFunctionTag.html#m6">ReturnType</a>; +00065 +<a name="l00067"></a><a class="code" href="structNLAISCRIPT_1_1CFunctionTag.html#a0">00067</a> <a class="code" href="structNLAISCRIPT_1_1CFunctionTag.html#a0">CFunctionTag</a>() +00068 { +00069 <a class="code" href="structNLAISCRIPT_1_1CFunctionTag.html#m2">Method</a> = NULL; +00070 Object = NULL; +00071 ReturnType = NULL; +00072 MethodName = NULL; +00073 } +00074 +<a name="l00076"></a><a class="code" href="structNLAISCRIPT_1_1CFunctionTag.html#a1">00076</a> <a class="code" href="structNLAISCRIPT_1_1CFunctionTag.html#a0">CFunctionTag</a>(<font class="keyword">const</font> <a class="code" href="structNLAISCRIPT_1_1CFunctionTag.html#a0">CFunctionTag</a> &c) +00077 { +00078 <a class="code" href="structNLAISCRIPT_1_1CFunctionTag.html#m0">Inheritance</a> = c.Inheritance; +00079 <a class="code" href="structNLAISCRIPT_1_1CFunctionTag.html#m1">MethodNum</a> = c.MethodNum; +00080 <a class="code" href="structNLAISCRIPT_1_1CFunctionTag.html#m2">Method</a> = c.Method; +00081 Object = c.Object; +00082 MethodName = c.MethodName; +00083 Member = c.Member; +00084 ReturnType = c.ReturnType; +00085 <font class="keywordflow">if</font>(ReturnType) ReturnType-><a class="code" href="classNLAIC_1_1IPointerGestion.html#a2">incRef</a>(); +00086 } +00087 +<a name="l00089"></a><a class="code" href="structNLAISCRIPT_1_1CFunctionTag.html#a2">00089</a> <font class="keyword">const</font> <a class="code" href="structNLAISCRIPT_1_1CFunctionTag.html#a0">CFunctionTag</a> &<a class="code" href="structNLAISCRIPT_1_1CFunctionTag.html#a2">operator = </a>(<font class="keyword">const</font> <a class="code" href="structNLAISCRIPT_1_1CFunctionTag.html#a0">CFunctionTag</a> &c) +00090 { +00091 <a class="code" href="structNLAISCRIPT_1_1CFunctionTag.html#m0">Inheritance</a> = c.Inheritance; +00092 <a class="code" href="structNLAISCRIPT_1_1CFunctionTag.html#m1">MethodNum</a> = c.MethodNum; +00093 <a class="code" href="structNLAISCRIPT_1_1CFunctionTag.html#m2">Method</a> = c.Method; +00094 Object = c.Object; +00095 MethodName = c.MethodName; +00096 Member = c.Member; +00097 <font class="keywordflow">if</font>(ReturnType) ReturnType-><a class="code" href="classNLAIC_1_1IPointerGestion.html#a3">release</a>(); +00098 ReturnType = c.ReturnType; +00099 <font class="keywordflow">if</font>(ReturnType) ReturnType-><a class="code" href="classNLAIC_1_1IPointerGestion.html#a2">incRef</a>(); +00100 <font class="keywordflow">return</font> *<font class="keyword">this</font>; +00101 } +00102 +00103 +<a name="l00105"></a><a class="code" href="structNLAISCRIPT_1_1CFunctionTag.html#a3">00105</a> <font class="keywordtype">void</font> <a class="code" href="structNLAISCRIPT_1_1CFunctionTag.html#a3">setTypeObject</a>(<a class="code" href="classNLAIAGENT_1_1IObjectIA.html">NLAIAGENT::IObjectIA</a> *o) +00106 { +00107 <font class="keywordflow">if</font>(ReturnType) ReturnType-><a class="code" href="classNLAIC_1_1IPointerGestion.html#a3">release</a>(); +00108 ReturnType = o; +00109 ReturnType-><a class="code" href="classNLAIC_1_1IPointerGestion.html#a2">incRef</a>(); +00110 } +00111 +<a name="l00112"></a><a class="code" href="structNLAISCRIPT_1_1CFunctionTag.html#a4">00112</a> <font class="keyword">virtual</font> <a class="code" href="structNLAISCRIPT_1_1CFunctionTag.html#a4">~CFunctionTag</a>() +00113 { +00114 <font class="keywordflow">if</font>(ReturnType) ReturnType-><a class="code" href="classNLAIC_1_1IPointerGestion.html#a3">release</a>(); +00115 } +00116 +00117 }; +00118 +<a name="l00129"></a><a class="code" href="classNLAISCRIPT_1_1IConstraint.html">00129</a> <font class="keyword">class </font>IConstraint : <font class="keyword">public</font> NLAIC::IPointerGestion +00130 { +00131 <font class="keyword">public</font>: +<a name="l00138"></a><a class="code" href="classNLAISCRIPT_1_1IConstraint.html#s13">00138</a> <font class="keyword">enum</font> <a class="code" href="classNLAISCRIPT_1_1IConstraint.html#s13">ConstraintTypeEnum</a> +00139 { +00141 <a class="code" href="classNLAISCRIPT_1_1IConstraint.html#s13s0">constraintMethode</a>, +00143 <a class="code" href="classNLAISCRIPT_1_1IConstraint.html#s13s1">constraintChkMethodeType</a>, +00145 <a class="code" href="classNLAISCRIPT_1_1IConstraint.html#s13s2">operandSimple</a>, +00147 <a class="code" href="classNLAISCRIPT_1_1IConstraint.html#s13s3">operandSimpleListOr</a>, +00149 <a class="code" href="classNLAISCRIPT_1_1IConstraint.html#s13s4">operandAnyObject</a>, +00151 <a class="code" href="classNLAISCRIPT_1_1IConstraint.html#s13s5">operandVoid</a>, +00153 <a class="code" href="classNLAISCRIPT_1_1IConstraint.html#s13s6">operandUnknown</a>, +00155 <a class="code" href="classNLAISCRIPT_1_1IConstraint.html#s13s7">operationType</a>, +00157 <a class="code" href="classNLAISCRIPT_1_1IConstraint.html#s13s8">operationTypeGD</a>, +00159 <a class="code" href="classNLAISCRIPT_1_1IConstraint.html#s13s9">operandListType</a>, +00161 <a class="code" href="classNLAISCRIPT_1_1IConstraint.html#s13s10">constraintStackComp</a>, +00163 <a class="code" href="classNLAISCRIPT_1_1IConstraint.html#s13s11">constraintDebug</a>, +00165 <a class="code" href="classNLAISCRIPT_1_1IConstraint.html#s13s12">constraintFindRun</a> +00166 }; +00167 +00168 <font class="keyword">private</font>: +<a name="l00170"></a><a class="code" href="classNLAISCRIPT_1_1IConstraint.html#o0">00170</a> <a class="code" href="classstd_1_1list.html">std::list<IConstraint *></a> <a class="code" href="classNLAISCRIPT_1_1IConstraint.html#o0">_ConstraintList</a>; +00171 +00172 <font class="keyword">public</font>: +<a name="l00173"></a><a class="code" href="classNLAISCRIPT_1_1IConstraint.html#a0">00173</a> <a class="code" href="classNLAISCRIPT_1_1IConstraint.html#a0">IConstraint</a>() {} +00174 +00176 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAISCRIPT_1_1IConstraint.html#a1">run</a>(CCompilateur &) = 0; +00178 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAISCRIPT_1_1IConstraint.html#a1">run</a>(<a class="code" href="classNLAISCRIPT_1_1IConstraint.html#a0">IConstraint</a> *) = 0; +00180 <font class="keyword">virtual</font> <font class="keywordtype">bool</font> <a class="code" href="classNLAISCRIPT_1_1IConstraint.html#a3">satisfied</a>() = 0; +00184 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAISCRIPT_1_1IConstraint.html#a4">addIndex</a>(<font class="keywordtype">int</font> n,CCodeBrancheRun *opcodePtr) = 0; +00186 <font class="keyword">virtual</font> <a class="code" href="classNLAISCRIPT_1_1IConstraint.html#s13">ConstraintTypeEnum</a> <a class="code" href="classNLAISCRIPT_1_1IConstraint.html#a5">getTypeOfClass</a>() <font class="keyword">const</font> = 0; +00188 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAISCRIPT_1_1IConstraint.html#a6">getError</a>(<font class="keywordtype">char</font> *) <font class="keyword">const</font> = 0; +00189 +00191 <font class="keyword">virtual</font> <font class="keywordtype">int</font> <a class="code" href="classNLAISCRIPT_1_1IConstraint.html#a7">getLine</a>() <font class="keyword">const</font> = 0; +00193 <font class="keyword">virtual</font> <font class="keywordtype">int</font> <a class="code" href="classNLAISCRIPT_1_1IConstraint.html#a8">getColone</a>() <font class="keyword">const</font> = 0; +00194 +00195 <font class="keyword">virtual</font> <font class="keywordtype">bool</font> <a class="code" href="classNLAISCRIPT_1_1IConstraint.html#a9">operator == </a>(<font class="keyword">const</font> <a class="code" href="classNLAISCRIPT_1_1IConstraint.html#a0">IConstraint</a> &) <font class="keyword">const</font> = 0; +00196 +00198 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1CIdentType.html">NLAIC::CIdentType</a> *<a class="code" href="classNLAISCRIPT_1_1IConstraint.html#a10">getConstraintTypeOf</a>() = 0; +00200 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="classNLAISCRIPT_1_1IConstraint.html#a0">IConstraint</a> *<a class="code" href="classNLAISCRIPT_1_1IConstraint.html#a11">clone</a>() <font class="keyword">const</font> = 0; +00202 <font class="keyword">virtual</font> <font class="keyword">const</font> <font class="keywordtype">char</font> *<a class="code" href="classNLAISCRIPT_1_1IConstraint.html#a12">getInfo</a>() = 0; +00204 <font class="keyword">virtual</font> <font class="keywordtype">bool</font> <a class="code" href="classNLAISCRIPT_1_1IConstraint.html#a13">dependOn</a>(<font class="keyword">const</font> <a class="code" href="classNLAISCRIPT_1_1IConstraint.html#a0">IConstraint</a> *) <font class="keyword">const</font> = 0; +00205 +<a name="l00207"></a><a class="code" href="classNLAISCRIPT_1_1IConstraint.html#a14">00207</a> <font class="keywordtype">void</font> <a class="code" href="classNLAISCRIPT_1_1IConstraint.html#a14">addConstraint</a>(<a class="code" href="classNLAISCRIPT_1_1IConstraint.html#a0">IConstraint</a> *c) +00208 { +00209 _ConstraintList.push_back(c); +00210 } +00212 <font class="keywordtype">void</font> <a class="code" href="classNLAISCRIPT_1_1IConstraint.html#a15">popConstraint</a>(<a class="code" href="classNLAISCRIPT_1_1IConstraint.html#a0">IConstraint</a> *c); +<a name="l00214"></a><a class="code" href="classNLAISCRIPT_1_1IConstraint.html#a16">00214</a> <font class="keywordtype">void</font> <a class="code" href="classNLAISCRIPT_1_1IConstraint.html#a16">runConnexcion</a>() +00215 { +00216 <font class="keywordflow">while</font>(_ConstraintList.size()) +00217 { +00218 <a class="code" href="classNLAISCRIPT_1_1IConstraint.html#a0">IConstraint</a> *a = _ConstraintList.back(); +00219 _ConstraintList.pop_back(); +00220 a->run(<font class="keyword">this</font>); +00221 } +00222 } +00223 +<a name="l00224"></a><a class="code" href="classNLAISCRIPT_1_1IConstraint.html#a17">00224</a> <font class="keyword">virtual</font> <a class="code" href="classNLAISCRIPT_1_1IConstraint.html#a17">~IConstraint</a>() +00225 { +00226 } +00227 +00228 }; +00229 <font class="keyword">class </font>IClassInterpret; +00230 +00231 +<a name="l00241"></a><a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html">00241</a> <font class="keyword">class </font>CConstraintMethode: <font class="keyword">public</font> IConstraint +00242 { +00243 +00244 <font class="keyword">public</font>: +<a name="l00249"></a><a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#s5">00249</a> <font class="keyword">enum</font> <a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#s5">TCallTypeOpCode</a>{ +00251 <a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#s5s0">normalCall</a>, +00253 <a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#s5s1">stackCall</a>, +00255 <a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#s5s2">heapCall</a>, +00257 <a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#s5s3">newCall</a>, +00259 <a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#s5s4">searchCall</a> +00260 }; +00261 <font class="keyword">protected</font>: +<a name="l00263"></a><a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#n0">00263</a> <a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#s5">TCallTypeOpCode</a> <a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#n0">_CallType</a>; +<a name="l00265"></a><a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#n1">00265</a> <a class="code" href="classNLAISCRIPT_1_1IConstraint.html#a0">IConstraint</a> *<a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#n1">_BaseClass</a>; +<a name="l00267"></a><a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#n2">00267</a> <a class="code" href="classNLAIAGENT_1_1IBaseGroupType.html">NLAIAGENT::IBaseGroupType</a> *<a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#n2">_MethodName</a>; +<a name="l00269"></a><a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#n3">00269</a> CParam *<a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#n3">_Param</a>; +<a name="l00270"></a><a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#n4">00270</a> <font class="keywordtype">bool</font> <a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#n4">_Satisfied</a>; +<a name="l00271"></a><a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#n5">00271</a> <font class="keywordtype">int</font> <a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#n5">_Lin</a>; +<a name="l00272"></a><a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#n6">00272</a> <font class="keywordtype">int</font> <a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#n6">_Col</a>; +<a name="l00273"></a><a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#n7">00273</a> <a class="code" href="classstd_1_1list.html">std::list<std::pair<int, CCodeBrancheRun *></a> > <a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#n7">_Code</a>; +<a name="l00274"></a><a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#n8">00274</a> <font class="keywordtype">char</font> *<a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#n8">_Txt</a>; +<a name="l00275"></a><a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#n9">00275</a> <a class="code" href="classNLAISCRIPT_1_1IConstraint.html#a0">IConstraint</a> *<a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#n9">_Type</a>; +<a name="l00276"></a><a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#n10">00276</a> <font class="keywordtype">char</font> *<a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#n10">_TxtInfo</a>; +<a name="l00277"></a><a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#n11">00277</a> <font class="keywordtype">int</font> <a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#n11">_PosHeap</a>; +<a name="l00278"></a><a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#n12">00278</a> <font class="keywordtype">bool</font> <a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#n12">_DelCType</a>; +<a name="l00279"></a><a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#n13">00279</a> CFunctionTag <a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#n13">_M</a>; +00280 +00281 <font class="keyword">public</font>: +<a name="l00282"></a><a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#a0">00282</a> <a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#a0">CConstraintMethode</a>(<a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#s5">TCallTypeOpCode</a> callType,<font class="keywordtype">int</font> posHeap,<a class="code" href="classNLAISCRIPT_1_1IConstraint.html#a0">IConstraint</a> *baseClass,<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>,<font class="keywordtype">int</font> lin,<font class="keywordtype">int</font> col): +00283 <a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#n0">_CallType</a>(callType),_BaseClass(baseClass),_MethodName(methodName),<a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#n3">_Param</a>(<a class="code" href="driver__opengl__extension__def_8h.html#a382">param</a>),<a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#n4">_Satisfied</a>(false),<a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#n5">_Lin</a>(lin),<a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#n6">_Col</a>(col),<a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#n11">_PosHeap</a>(posHeap) +00284 { +00285 <a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#n8">_Txt</a> = NULL; +00286 _Type = NULL; +00287 std::string txt; +00288 std::string m; +00289 std::string p; +00290 _MethodName-><a class="code" href="classNLAIC_1_1IBasicType.html#a5">getDebugString</a>(m); +00291 <a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#n3">_Param</a>->getDebugString(p); +00292 txt = <font class="stringliteral">"constraint<CConstraintMethode> for"</font>; +00293 txt += m; +00294 txt += p; +00295 txt += <a class="code" href="namespaceNLAIC.html#a5">NLAIC::stringGetBuild</a>(<font class="stringliteral">" at line %d"</font>,<a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#n5">_Lin</a>); +00296 <a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#n10">_TxtInfo</a> = <font class="keyword">new</font> <font class="keywordtype">char</font> [strlen(txt.c_str()) + 1]; +00297 strcpy(<a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#n10">_TxtInfo</a>,txt.c_str()); +00298 <a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#n12">_DelCType</a> = <font class="keyword">false</font>; +00299 } +00301 +00302 +<a name="l00303"></a><a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#z214_0">00303</a> <font class="keyword">const</font> <font class="keywordtype">char</font> *<a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#z214_0">getInfo</a>() +00304 { +00305 <font class="keywordflow">return</font> <a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#n10">_TxtInfo</a>; +00306 } +00307 +00308 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#z214_1">run</a>(CCompilateur &); +00309 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#z214_1">run</a>(<a class="code" href="classNLAISCRIPT_1_1IConstraint.html#a0">IConstraint</a> *); +00310 +<a name="l00311"></a><a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#z214_3">00311</a> <font class="keywordtype">bool</font> <a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#z214_3">satisfied</a>() +00312 { +00313 <font class="keywordflow">return</font> <a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#n4">_Satisfied</a>; +00314 } +00315 +<a name="l00316"></a><a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#z214_4">00316</a> <font class="keywordtype">bool</font> <a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#z214_4">dependOn</a>(<font class="keyword">const</font> <a class="code" href="classNLAISCRIPT_1_1IConstraint.html#a0">IConstraint</a> *c)<font class="keyword"> const</font> +00317 <font class="keyword"> </font>{ +00318 <font class="keywordflow">if</font>( c == _Type || c == _BaseClass || c == <font class="keyword">this</font>) <font class="keywordflow">return</font> <font class="keyword">true</font>; +00319 <font class="keywordflow">return</font> <font class="keyword">false</font>; +00320 } +00321 +<a name="l00322"></a><a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#z214_5">00322</a> <font class="keywordtype">bool</font> <a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#z214_5">operator == </a>(<font class="keyword">const</font> <a class="code" href="classNLAISCRIPT_1_1IConstraint.html#a0">IConstraint</a> &c)<font class="keyword"> const</font> +00323 <font class="keyword"> </font>{ +00324 <font class="keywordflow">if</font>(<a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#z214_12">getTypeOfClass</a>() == c.getTypeOfClass() && +00325 ((<font class="keyword">const</font> <a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#a0">CConstraintMethode</a> &)c)._CallType == <a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#n0">_CallType</a> && +00326 ((<font class="keyword">const</font> <a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#a0">CConstraintMethode</a> &)c)._BaseClass == _BaseClass && +00327 ((<font class="keyword">const</font> <a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#a0">CConstraintMethode</a> &)c).isEqual(*_MethodName,*<a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#n3">_Param</a>)) +00328 { +00329 <font class="keywordflow">return</font> <font class="keyword">true</font>; +00330 } +00331 <font class="keywordflow">return</font> <font class="keyword">false</font>; +00332 } +00333 +<a name="l00334"></a><a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#z214_6">00334</a> <font class="keywordtype">void</font> <a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#z214_6">addIndex</a>(<font class="keywordtype">int</font> i,CCodeBrancheRun *c) +00335 { +00336 _Code.push_back(std::pair<sint32, CCodeBrancheRun *>(i,c)); +00337 } +00338 +00339 <font class="keywordtype">void</font> <a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#z214_7">getError</a>(<font class="keywordtype">char</font> *) <font class="keyword">const</font>; +00340 +00341 <font class="keyword">const</font> <a class="code" href="classNLAISCRIPT_1_1IConstraint.html#a0">IConstraint</a> *<a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#z214_8">clone</a>() <font class="keyword">const</font>; +00342 +00343 <font class="keywordtype">bool</font> <a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#z214_9">isEqual</a>(<font class="keyword">const</font> <a class="code" href="classNLAIAGENT_1_1IBaseGroupType.html">NLAIAGENT::IBaseGroupType</a> &,<font class="keyword">const</font> CParam &) <font class="keyword">const</font>; +00344 +00345 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#z214_10">setOpCode</a>(CCompilateur &comp,IOpCode *<a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a>,<a class="code" href="classNLAISCRIPT_1_1IConstraint.html#a0">IConstraint</a> *cType,<font class="keywordtype">bool</font> del); +00346 +<a name="l00347"></a><a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#z214_11">00347</a> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1CIdentType.html">NLAIC::CIdentType</a> *<a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#z214_11">getConstraintTypeOf</a>() +00348 { +00349 <font class="keywordflow">return</font> _Type == NULL ? NULL : _Type->getConstraintTypeOf(); +00350 } +00351 +<a name="l00352"></a><a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#z214_12">00352</a> <font class="keyword">virtual</font> <a class="code" href="classNLAISCRIPT_1_1IConstraint.html#s13">ConstraintTypeEnum</a> <a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#z214_12">getTypeOfClass</a>()<font class="keyword"> const</font> +00353 <font class="keyword"> </font>{ +00354 <font class="keywordflow">return</font> <a class="code" href="classNLAISCRIPT_1_1IConstraint.html#s13s0">constraintMethode</a>; +00355 } +00356 +<a name="l00357"></a><a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#z214_13">00357</a> <font class="keyword">const</font> CFunctionTag &<a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#z214_13">getfunctionTag</a>()<font class="keyword"> const</font> +00358 <font class="keyword"> </font>{ +00359 <font class="keywordflow">return</font> _M; +00360 } +00361 +<a name="l00362"></a><a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#z214_14">00362</a> <font class="keywordtype">int</font> <a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#z214_14">getLine</a>()<font class="keyword"> const</font> +00363 <font class="keyword"> </font>{ +00364 <font class="keywordflow">return</font> <a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#n5">_Lin</a>; +00365 } +<a name="l00366"></a><a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#z214_15">00366</a> <font class="keywordtype">int</font> <a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#z214_15">getColone</a>()<font class="keyword"> const</font> +00367 <font class="keyword"> </font>{ +00368 <font class="keywordflow">return</font> <a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#n6">_Col</a>; +00369 } +00371 +<a name="l00372"></a><a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#a1">00372</a> <font class="keyword">virtual</font> <a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#a1">~CConstraintMethode</a>() +00373 { +00374 _MethodName-><a class="code" href="classNLAIC_1_1IPointerGestion.html#a3">release</a>(); +00375 <a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#n3">_Param</a>->release(); +00376 <font class="keywordflow">if</font>(_BaseClass)_BaseClass->release(); +00377 <font class="keywordflow">if</font>(<a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#n8">_Txt</a> != NULL) <font class="keyword">delete</font> <a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#n8">_Txt</a>; +00378 <font class="keyword">delete</font> <a class="code" href="classNLAISCRIPT_1_1CConstraintMethode.html#n10">_TxtInfo</a>; +00379 <font class="keywordflow">if</font>(_DelCType) _Type->release(); +00380 } +00381 +00382 }; +00383 } +00384 <font class="preprocessor">#include "<a class="code" href="constraint__type_8h.html">nel/ai/script/constraint_type.h</a>"</font> +00385 <font class="preprocessor">#endif</font> +</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> |