aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/fact_8cpp-source.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/doxygen/nel/fact_8cpp-source.html')
-rw-r--r--docs/doxygen/nel/fact_8cpp-source.html359
1 files changed, 359 insertions, 0 deletions
diff --git a/docs/doxygen/nel/fact_8cpp-source.html b/docs/doxygen/nel/fact_8cpp-source.html
new file mode 100644
index 00000000..4c273d40
--- /dev/null
+++ b/docs/doxygen/nel/fact_8cpp-source.html
@@ -0,0 +1,359 @@
+<!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>&nbsp;<A CLASS=uplinks HREF=http://www.nevrax.org><b>Home</B></FONT></A>&nbsp;&nbsp;&nbsp;</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>&nbsp;<A CLASS=uplinks HREF=http://www.nevrax.com><b>nevrax.com</B></FONT></A>&nbsp;&nbsp;&nbsp;</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>
+&nbsp;
+
+<!-- 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>&nbsp;</td>
+</tr></table>
+<!-- Generated by Doxygen 1.2.14 -->
+<center>
+<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="namespacemembers.html">Namespace Members</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; <a class="qindex" href="pages.html">Related Pages</a> &nbsp; <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> &nbsp; </center>
+<hr><h1>fact.cpp</h1><a href="fact_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <font class="comment">/* Copyright, 2000 Nevrax Ltd.</font>
+00002 <font class="comment"> *</font>
+00003 <font class="comment"> * This file is part of NEVRAX &lt;MODULE_NAME&gt;.</font>
+00004 <font class="comment"> * NEVRAX &lt;MODULE_NAME&gt; is free software; you can redistribute it and/or modify</font>
+00005 <font class="comment"> * it under the terms of the GNU General Public License as published by</font>
+00006 <font class="comment"> * the Free Software Foundation; either version 2, or (at your option)</font>
+00007 <font class="comment"> * any later version.</font>
+00008 <font class="comment"></font>
+00009 <font class="comment"> * NEVRAX &lt;MODULE_NAME&gt; is distributed in the hope that it will be useful, but</font>
+00010 <font class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</font>
+00011 <font class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</font>
+00012 <font class="comment"> * General Public License for more details.</font>
+00013 <font class="comment"></font>
+00014 <font class="comment"> * You should have received a copy of the GNU General Public License</font>
+00015 <font class="comment"> * along with NEVRAX &lt;MODULE_NAME&gt;; see the file COPYING. If not, write to the</font>
+00016 <font class="comment"> * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,</font>
+00017 <font class="comment"> * MA 02111-1307, USA.</font>
+00018 <font class="comment"> */</font>
+00019
+00020 <font class="preprocessor">#include "<a class="code" href="fact_8h.html">nel/ai/logic/fact.h</a>"</font>
+00021 <font class="preprocessor">#include "<a class="code" href="ai__assert_8h.html">nel/ai/logic/ai_assert.h</a>"</font>
+00022 <font class="preprocessor">#include "<a class="code" href="varset_8h.html">nel/ai/logic/varset.h</a>"</font>
+00023 <font class="preprocessor">#include "<a class="code" href="object__type_8h.html">nel/ai/agent/object_type.h</a>"</font>
+00024
+00025 <font class="keyword">namespace </font>NLAILOGIC
+00026 {
+00027 <font class="keyword">using</font> <font class="keyword">namespace </font>NLAIAGENT;
+00028
+<a name="l00029"></a><a class="code" href="classNLAILOGIC_1_1CFact.html#a0">00029</a> CFact::CFact() : CValueSet()
+00030 {
+00031 <a class="code" href="classNLAILOGIC_1_1CFact.html#o0">_Assert</a> = NULL;
+00032 <a class="code" href="classNLAILOGIC_1_1CFact.html#o1">_AssertName</a> = NULL;
+00033 }
+00034
+00035
+<a name="l00036"></a><a class="code" href="classNLAILOGIC_1_1CFact.html#a1">00036</a> CFact::CFact(IBaseAssert *a) : CValueSet(a-&gt;nbVars() )
+00037 {
+00038 <a class="code" href="classNLAILOGIC_1_1CFact.html#o0">_Assert</a> = a;
+00039 <a class="code" href="classNLAILOGIC_1_1CFact.html#o1">_AssertName</a> = NULL;
+00040 }
+00041
+<a name="l00042"></a><a class="code" href="classNLAILOGIC_1_1CFact.html#a3">00042</a> CFact::CFact(IBaseAssert *a, CValueSet *vals) : CValueSet( *vals )
+00043 {
+00044 <a class="code" href="classNLAILOGIC_1_1CFact.html#o0">_Assert</a> = a;
+00045 <a class="code" href="classNLAILOGIC_1_1CFact.html#o1">_AssertName</a> = NULL;
+00046 }
+00047
+<a name="l00048"></a><a class="code" href="classNLAILOGIC_1_1CFact.html#a2">00048</a> CFact::CFact(IBaseAssert *a, <font class="keywordtype">bool</font> <a class="code" href="driver__opengl__extension__def_8h.html#a246">v</a>) : CValueSet(1)
+00049 {
+00050 <a class="code" href="classNLAILOGIC_1_1CFact.html#o0">_Assert</a> = a;
+00051 <a class="code" href="classNLAILOGIC_1_1CValueSet.html#n0">_Values</a>[0] = <font class="keyword">new</font> CBoolType(<a class="code" href="driver__opengl__extension__def_8h.html#a246">v</a>);
+00052 <a class="code" href="classNLAILOGIC_1_1CFact.html#o1">_AssertName</a> = NULL;
+00053 }
+00054
+<a name="l00055"></a><a class="code" href="classNLAILOGIC_1_1CFact.html#a4">00055</a> CFact::CFact(IBaseAssert *a, CVarSet *vars) : CValueSet( vars-&gt;size() )
+00056 {
+00057 <a class="code" href="classstd_1_1list.html">std::list&lt;IObjetOp *&gt;</a> *vals = vars-&gt;getValues();
+00058 <a class="code" href="classstd_1_1list.html">std::list&lt;IObjetOp *&gt;</a>::iterator it_v = vals-&gt;begin();
+00059 <font class="keywordflow">while</font> ( it_v != vals-&gt;end() )
+00060 {
+00061 vals-&gt;push_back( *it_v );
+00062 it_v++;
+00063 }
+00064 <font class="keyword">delete</font> vals;
+00065 <a class="code" href="classNLAILOGIC_1_1CFact.html#o0">_Assert</a> = a;
+00066 <a class="code" href="classNLAILOGIC_1_1CFact.html#o1">_AssertName</a> = NULL;
+00067 }
+00068
+00069
+<a name="l00070"></a><a class="code" href="classNLAILOGIC_1_1CFact.html#a7">00070</a> CFact::CFact(<a class="code" href="classNLAIAGENT_1_1IVarName.html">NLAIAGENT::IVarName</a> &amp;name) : CValueSet()
+00071 {
+00072 <a class="code" href="classNLAILOGIC_1_1CFact.html#o1">_AssertName</a> = (<a class="code" href="classNLAIAGENT_1_1IVarName.html">NLAIAGENT::IVarName</a> *) name.<a class="code" href="classNLAIC_1_1IBasicType.html#a3">clone</a>();
+00073 <a class="code" href="classNLAILOGIC_1_1CFact.html#o0">_Assert</a> = NULL;
+00074 }
+00075
+<a name="l00076"></a><a class="code" href="classNLAILOGIC_1_1CFact.html#a6">00076</a> CFact::CFact(<a class="code" href="types__nl_8h.html#a9">sint32</a> i,<a class="code" href="classNLAIAGENT_1_1IVarName.html">NLAIAGENT::IVarName</a> *a) : CValueSet(i )
+00077 {
+00078 <font class="comment">//_Assert = a;</font>
+00079 <a class="code" href="classNLAILOGIC_1_1CFact.html#o1">_AssertName</a> = (<a class="code" href="classNLAIAGENT_1_1IVarName.html">NLAIAGENT::IVarName</a> *) a;
+00080 <a class="code" href="classNLAILOGIC_1_1CFact.html#o0">_Assert</a> = NULL;
+00081 }
+00082
+<a name="l00083"></a><a class="code" href="classNLAILOGIC_1_1CFact.html#a9">00083</a> CFact::CFact(<a class="code" href="classNLAIAGENT_1_1IVarName.html">NLAIAGENT::IVarName</a> &amp;a, CValueSet *vals) : CValueSet( *vals )
+00084 {
+00085 <a class="code" href="classNLAILOGIC_1_1CFact.html#o1">_AssertName</a> = (<a class="code" href="classNLAIAGENT_1_1IVarName.html">NLAIAGENT::IVarName</a> *) a.<a class="code" href="classNLAIC_1_1IBasicType.html#a3">clone</a>();
+00086 <a class="code" href="classNLAILOGIC_1_1CFact.html#o0">_Assert</a> = NULL;
+00087 }
+00088
+<a name="l00089"></a><a class="code" href="classNLAILOGIC_1_1CFact.html#a8">00089</a> CFact::CFact(<a class="code" href="classNLAIAGENT_1_1IVarName.html">NLAIAGENT::IVarName</a> &amp;a, <font class="keywordtype">bool</font> <a class="code" href="driver__opengl__extension__def_8h.html#a246">v</a>) : CValueSet(1)
+00090 {
+00091 <a class="code" href="classNLAILOGIC_1_1CValueSet.html#n0">_Values</a>[0] = <font class="keyword">new</font> CBoolType(<a class="code" href="driver__opengl__extension__def_8h.html#a246">v</a>);
+00092 <a class="code" href="classNLAILOGIC_1_1CFact.html#o1">_AssertName</a> = (<a class="code" href="classNLAIAGENT_1_1IVarName.html">NLAIAGENT::IVarName</a> *) a.<a class="code" href="classNLAIC_1_1IBasicType.html#a3">clone</a>();
+00093 <a class="code" href="classNLAILOGIC_1_1CFact.html#o0">_Assert</a> = NULL;
+00094 }
+00095
+<a name="l00096"></a><a class="code" href="classNLAILOGIC_1_1CFact.html#a10">00096</a> CFact::CFact(<a class="code" href="classNLAIAGENT_1_1IVarName.html">NLAIAGENT::IVarName</a> &amp;a, CVarSet *vars) : CValueSet( vars-&gt;size() )
+00097 {
+00098 <a class="code" href="classNLAILOGIC_1_1CFact.html#o0">_Assert</a> = NULL;
+00099 <a class="code" href="classstd_1_1list.html">std::list&lt;IObjetOp *&gt;</a> *vals = vars-&gt;getValues();
+00100 <a class="code" href="classstd_1_1list.html">std::list&lt;IObjetOp *&gt;</a>::iterator it_v = vals-&gt;begin();
+00101 <font class="keywordflow">while</font> ( it_v != vals-&gt;end() )
+00102 {
+00103 vals-&gt;push_back( *it_v );
+00104 it_v++;
+00105 }
+00106 <font class="keyword">delete</font> vals;
+00107 <a class="code" href="classNLAILOGIC_1_1CFact.html#o1">_AssertName</a> = (<a class="code" href="classNLAIAGENT_1_1IVarName.html">NLAIAGENT::IVarName</a> *) a.<a class="code" href="classNLAIC_1_1IBasicType.html#a3">clone</a>();
+00108 }
+00109
+<a name="l00110"></a><a class="code" href="classNLAILOGIC_1_1CFact.html#a5">00110</a> CFact::~CFact()
+00111 {
+00112 <font class="keywordflow">if</font>(<a class="code" href="classNLAILOGIC_1_1CFact.html#o1">_AssertName</a> != NULL) <a class="code" href="classNLAILOGIC_1_1CFact.html#o1">_AssertName</a>-&gt;<a class="code" href="classNLAIC_1_1IPointerGestion.html#a3">release</a>();
+00113 <font class="comment">/* if ( _Assert != NULL )</font>
+00114 <font class="comment"> _Assert-&gt;release();</font>
+00115 <font class="comment"> */</font>
+00116 }
+00117
+00118
+<a name="l00119"></a><a class="code" href="classNLAILOGIC_1_1CFact.html#a14">00119</a> IBaseAssert *CFact::getAssert()
+00120 {
+00121 <font class="keywordflow">return</font> <a class="code" href="classNLAILOGIC_1_1CFact.html#o0">_Assert</a>;
+00122 }
+00123
+<a name="l00124"></a><a class="code" href="classNLAILOGIC_1_1CFact.html#a15">00124</a> <a class="code" href="classNLAIAGENT_1_1IVarName.html">NLAIAGENT::IVarName</a> &amp;CFact::getAssertName()
+00125 {
+00126 <font class="keywordflow">return</font> *<a class="code" href="classNLAILOGIC_1_1CFact.html#o1">_AssertName</a>;
+00127 }
+00128
+<a name="l00129"></a><a class="code" href="classNLAILOGIC_1_1CFact.html#a16">00129</a> <font class="keywordtype">void</font> CFact::getDebugString(std::string &amp;txt)<font class="keyword"> const</font>
+00130 <font class="keyword"> </font>{
+00131 std::string buf;
+00132 <font class="keywordflow">if</font>(<a class="code" href="classNLAILOGIC_1_1CFact.html#o0">_Assert</a> != NULL) <a class="code" href="classNLAILOGIC_1_1CFact.html#o0">_Assert</a>-&gt;getDebugString(buf);
+00133 <font class="keywordflow">else</font> buf = <font class="stringliteral">"NULL"</font>;
+00134 txt += <a class="code" href="namespaceNLAIC.html#a5">NLAIC::stringGetBuild</a>(<font class="stringliteral">"&lt;CFact&gt; %s\n"</font>, buf.c_str());
+00135 <font class="keywordflow">for</font> (<a class="code" href="types__nl_8h.html#a9">sint32</a> i = 0; i &lt; <a class="code" href="classNLAILOGIC_1_1CValueSet.html#n1">_NbValues</a>; i++ )
+00136 {
+00137 txt += <font class="stringliteral">" , "</font>;
+00138 <font class="keywordflow">if</font> ( <a class="code" href="classNLAILOGIC_1_1CValueSet.html#n0">_Values</a>[i] )
+00139 {
+00140 <a class="code" href="classNLAILOGIC_1_1CValueSet.html#n0">_Values</a>[i]-&gt;<a class="code" href="classNLAIC_1_1IBasicType.html#a5">getDebugString</a>( buf );
+00141
+00142 txt += buf;
+00143 }
+00144 <font class="keywordflow">else</font> txt += <font class="stringliteral">"NULL"</font>;
+00145 }
+00146 }
+00147
+<a name="l00148"></a><a class="code" href="classNLAILOGIC_1_1CFact.html#a17">00148</a> <font class="keywordtype">void</font> CFact::propagate()
+00149 {
+00150 <font class="keywordflow">if</font> ( _Assert )
+00151 <a class="code" href="classNLAILOGIC_1_1CFact.html#o0">_Assert</a>-&gt;addFact( <font class="keyword">this</font> );
+00152 }
+00153
+<a name="l00154"></a><a class="code" href="classNLAILOGIC_1_1CFact.html#a18">00154</a> <font class="keywordtype">bool</font> CFact::operator== (<font class="keyword">const</font> IBasicObjectIA &amp;a)<font class="keyword"> const</font>
+00155 <font class="keyword"> </font>{
+00156 <font class="keywordflow">if</font> ( ! (<a class="code" href="classNLAILOGIC_1_1CFact.html#o0">_Assert</a>-&gt;getName() == ( (<a class="code" href="classNLAILOGIC_1_1CFact.html#a0">CFact</a> &amp;)a )._Assert-&gt;getName() ) )
+00157 <font class="keywordflow">return</font> <font class="keyword">false</font>;
+00158
+00159 <font class="keywordflow">if</font>( ((<a class="code" href="classNLAILOGIC_1_1CFact.html#a0">CFact</a> &amp;) a)._NbValues != <a class="code" href="classNLAILOGIC_1_1CValueSet.html#n1">_NbValues</a> )
+00160 <font class="keywordflow">return</font> <font class="keyword">false</font>;
+00161
+00162 <font class="keywordflow">for</font> (<a class="code" href="types__nl_8h.html#a9">sint32</a> i = 0; i &lt; <a class="code" href="classNLAILOGIC_1_1CValueSet.html#n1">_NbValues</a>; i++ )
+00163 {
+00164 <font class="comment">/* IObjetOp *test = (*_Values[i]) == *((CValueSet &amp;)a).getValue(i);</font>
+00165 <font class="comment"> bool test_result = test-&gt;isTrue();</font>
+00166 <font class="comment"> test-&gt;release();</font>
+00167 <font class="comment"> if ( test_result )</font>
+00168 <font class="comment"> return false;</font>
+00169 <font class="comment"> */</font>
+00170
+00171 <font class="keywordflow">if</font> ( ! ( (*<a class="code" href="classNLAILOGIC_1_1CValueSet.html#n0">_Values</a>[i]) == *((<a class="code" href="classNLAILOGIC_1_1CValueSet.html#a0">CValueSet</a> &amp;)a).getValue(i) ) )
+00172 <font class="keywordflow">return</font> <font class="keyword">false</font>;
+00173 }
+00174 <font class="keywordflow">return</font> <font class="keyword">true</font>;
+00175 }
+00176
+<a name="l00177"></a><a class="code" href="classNLAILOGIC_1_1CFact.html#a19">00177</a> CValueSet *CFact::asValueSet()
+00178 {
+00179 <a class="code" href="classNLAILOGIC_1_1CValueSet.html#a0">CValueSet</a> *result = <font class="keyword">new</font> <a class="code" href="classNLAILOGIC_1_1CValueSet.html#a0">CValueSet</a>( <a class="code" href="classNLAILOGIC_1_1CValueSet.html#n1">_NbValues</a> );
+00180 <font class="keywordflow">for</font> (<a class="code" href="types__nl_8h.html#a9">sint32</a> i = 0; i &lt; <a class="code" href="classNLAILOGIC_1_1CValueSet.html#n1">_NbValues</a>; i++ )
+00181 {
+00182 result-&gt;setValue(i, <a class="code" href="classNLAILOGIC_1_1CValueSet.html#n0">_Values</a>[i] );
+00183 <a class="code" href="classNLAILOGIC_1_1CValueSet.html#n0">_Values</a>[i]-&gt;<a class="code" href="classNLAIC_1_1IPointerGestion.html#a2">incRef</a>();
+00184 }
+00185 <font class="keywordflow">return</font> result;
+00186 }
+00187
+<a name="l00188"></a><a class="code" href="classNLAILOGIC_1_1CFact.html#a20">00188</a> NLAIAGENT::tQueue CFact::isMember(<font class="keyword">const</font> <a class="code" href="classNLAIAGENT_1_1IVarName.html">NLAIAGENT::IVarName</a> *className,<font class="keyword">const</font> <a class="code" href="classNLAIAGENT_1_1IVarName.html">NLAIAGENT::IVarName</a> *funcName,<font class="keyword">const</font> <a class="code" href="classNLAIAGENT_1_1IObjectIA.html">NLAIAGENT::IObjectIA</a> &amp;<a class="code" href="driver__opengl__extension__def_8h.html#a235">params</a>)<font class="keyword"> const</font>
+00189 <font class="keyword"> </font>{
+00190
+00191 <font class="preprocessor">#ifdef NL_DEBUG </font>
+00192 <font class="preprocessor"></font> std::string nameP;
+00193 std::string nameM;
+00194 funcName-&gt;<a class="code" href="classNLAIC_1_1IBasicType.html#a5">getDebugString</a>(nameM);
+00195 params.<a class="code" href="classNLAIC_1_1IBasicType.html#a5">getDebugString</a>(nameP);
+00196
+00197 <font class="keyword">const</font> <font class="keywordtype">char</font> *dbg_class_name = (<font class="keyword">const</font> <font class="keywordtype">char</font> *) <a class="code" href="classNLAILOGIC_1_1CFact.html#z896_3">getType</a>();
+00198 <font class="preprocessor">#endif</font>
+00199 <font class="preprocessor"></font> NLAIAGENT::tQueue <a class="code" href="driver__opengl__extension__def_8h.html#a262">r</a>;
+00200 <font class="keywordflow">if</font>(className == NULL)
+00201 {
+00202 <font class="keywordflow">if</font>( (*funcName) == <a class="code" href="classNLAIAGENT_1_1CStringVarName.html">NLAIAGENT::CStringVarName</a>( <font class="stringliteral">"Constructor"</font> ) )
+00203 {
+00204 <a class="code" href="classNLAIAGENT_1_1CObjectType.html">NLAIAGENT::CObjectType</a> *c = <font class="keyword">new</font> <a class="code" href="classNLAIAGENT_1_1CObjectType.html">NLAIAGENT::CObjectType</a>( <font class="keyword">new</font> <a class="code" href="classNLAIC_1_1CIdentType.html">NLAIC::CIdentType</a>( CFact::IdFact ) );
+00205 <a class="code" href="driver__opengl__extension__def_8h.html#a262">r</a>.push( <a class="code" href="structNLAIAGENT_1_1CIdMethod.html">NLAIAGENT::CIdMethod</a>( 0 + CValueSet::getMethodIndexSize(), 0.0, NULL, c) );
+00206 }
+00207 }
+00208
+00209 <font class="keywordflow">if</font> ( <a class="code" href="driver__opengl__extension__def_8h.html#a262">r</a>.empty() )
+00210 <font class="keywordflow">return</font> CValueSet::isMember(className, funcName, params);
+00211 <font class="keywordflow">else</font>
+00212 <font class="keywordflow">return</font> <a class="code" href="driver__opengl__extension__def_8h.html#a262">r</a>;
+00213 }
+00214
+00216
+<a name="l00217"></a><a class="code" href="classNLAILOGIC_1_1CFact.html#z896_0">00217</a> <a class="code" href="structNLAIAGENT_1_1IObjectIA_1_1CProcessResult.html">NLAIAGENT::IObjectIA::CProcessResult</a> CFact::runMethodeMember(<a class="code" href="types__nl_8h.html#a9">sint32</a>, <a class="code" href="types__nl_8h.html#a9">sint32</a>, <a class="code" href="classNLAIAGENT_1_1IObjectIA.html">NLAIAGENT::IObjectIA</a> *)
+00218 {
+00219 <font class="keywordflow">return</font> IObjectIA::CProcessResult();
+00220 }
+00221
+<a name="l00222"></a><a class="code" href="classNLAILOGIC_1_1CFact.html#z896_1">00222</a> <a class="code" href="structNLAIAGENT_1_1IObjectIA_1_1CProcessResult.html">NLAIAGENT::IObjectIA::CProcessResult</a> CFact::runMethodeMember(<a class="code" href="types__nl_8h.html#a9">sint32</a> <a class="code" href="driver__opengl__extension__def_8h.html#a236">index</a>, <a class="code" href="classNLAIAGENT_1_1IObjectIA.html">NLAIAGENT::IObjectIA</a> *p)
+00223 {
+00224 <a class="code" href="classNLAIAGENT_1_1IBaseGroupType.html">NLAIAGENT::IBaseGroupType</a> *param = (<a class="code" href="classNLAIAGENT_1_1IBaseGroupType.html">NLAIAGENT::IBaseGroupType</a> *)p;
+00225
+00226 <font class="keywordflow">switch</font>(<a class="code" href="driver__opengl__extension__def_8h.html#a236">index</a> - CValueSet::getMethodIndexSize())
+00227 {
+00228 <font class="keywordflow">case</font> 0:
+00229 {
+00230
+00231 <a class="code" href="classNLAIAGENT_1_1CStringType.html">NLAIAGENT::CStringType</a> *name = (<a class="code" href="classNLAIAGENT_1_1CStringType.html">NLAIAGENT::CStringType</a> *) param-&gt;<a class="code" href="classNLAIAGENT_1_1IBaseGroupType.html#z130_11">getFront</a>()-&gt;clone();
+00232 param-&gt;<a class="code" href="classNLAIAGENT_1_1IBaseGroupType.html#z130_9">popFront</a>();
+00233 <font class="preprocessor">#ifdef NL_DEBUG</font>
+00234 <font class="preprocessor"></font> <font class="keyword">const</font> <font class="keywordtype">char</font> *dbg_name = name-&gt;<a class="code" href="classNLAIAGENT_1_1CStringType.html#a10">getStr</a>().getString();
+00235 <font class="preprocessor">#endif</font>
+00236 <font class="preprocessor"></font> <font class="comment">// If the constructor() function is explicitely called and the object has already been initialised</font>
+00237 <font class="keywordflow">if</font> ( _AssertName )
+00238 <a class="code" href="classNLAILOGIC_1_1CFact.html#o1">_AssertName</a>-&gt;<a class="code" href="classNLAIC_1_1IPointerGestion.html#a3">release</a>();
+00239 <font class="comment">// _Args.clear();</font>
+00240
+00241 <a class="code" href="classNLAILOGIC_1_1CFact.html#o1">_AssertName</a> = (<a class="code" href="classNLAIAGENT_1_1IVarName.html">NLAIAGENT::IVarName</a> *) name-&gt;<a class="code" href="classNLAIAGENT_1_1CStringType.html#a10">getStr</a>().clone();
+00242 <font class="comment">/* std::list&lt;const NLAIAGENT::IObjectIA *&gt; args;</font>
+00243 <font class="comment"> while ( param-&gt;size() )</font>
+00244 <font class="comment"> {</font>
+00245 <font class="comment"> _Args.push_back( (NLAIAGENT::IObjectIA *) param-&gt;getFront() );</font>
+00246 <font class="comment"> param-&gt;popFront();</font>
+00247 <font class="comment"> }</font>
+00248 <font class="comment"> */</font>
+00249 <font class="keywordflow">return</font> IObjectIA::CProcessResult();
+00250 }
+00251 <font class="keywordflow">break</font>;
+00252 }
+00253
+00254 <font class="keywordflow">return</font> IObjectIA::CProcessResult();
+00255 }
+00256
+<a name="l00257"></a><a class="code" href="classNLAILOGIC_1_1CFact.html#z896_2">00257</a> <a class="code" href="types__nl_8h.html#a9">sint32</a> CFact::getMethodIndexSize()<font class="keyword"> const</font>
+00258 <font class="keyword"> </font>{
+00259 <font class="keywordflow">return</font> CValueSet::getMethodIndexSize() + 1;
+00260 }
+00261
+<a name="l00262"></a><a class="code" href="classNLAILOGIC_1_1CFact.html#z896_3">00262</a> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1CIdentType.html">NLAIC::CIdentType</a> &amp;CFact::getType()<font class="keyword"> const</font>
+00263 <font class="keyword"> </font>{
+00264 <font class="keywordflow">return</font> <a class="code" href="classNLAILOGIC_1_1CFact.html#p0">IdFact</a>;
+00265 }
+00266
+00268
+<a name="l00269"></a><a class="code" href="classNLAILOGIC_1_1CFact.html#a11">00269</a> CFact::CFact(<font class="keyword">const</font> CFact &amp;fact) : CValueSet(fact)
+00270 {
+00271 <font class="keywordflow">if</font> ( fact._AssertName != NULL )
+00272 <a class="code" href="classNLAILOGIC_1_1CFact.html#o1">_AssertName</a> = (<a class="code" href="classNLAIAGENT_1_1IVarName.html">NLAIAGENT::IVarName</a> *) fact._AssertName-&gt;<a class="code" href="classNLAIC_1_1IBasicType.html#a3">clone</a>();
+00273 <font class="keywordflow">else</font>
+00274 <a class="code" href="classNLAILOGIC_1_1CFact.html#o1">_AssertName</a> = NULL;
+00275 <a class="code" href="classNLAILOGIC_1_1CFact.html#o0">_Assert</a> = fact._Assert;
+00276 }
+00277
+<a name="l00278"></a><a class="code" href="classNLAILOGIC_1_1CFact.html#a12">00278</a> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1IBasicType.html">NLAIC::IBasicType</a> *CFact::clone()<font class="keyword"> const</font>
+00279 <font class="keyword"> </font>{
+00280 <font class="keywordflow">return</font> <font class="keyword">new</font> <a class="code" href="classNLAILOGIC_1_1CFact.html#a0">CFact</a>( *<font class="keyword">this</font> );
+00281 }
+00282
+<a name="l00283"></a><a class="code" href="classNLAILOGIC_1_1CFact.html#a13">00283</a> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1IBasicType.html">NLAIC::IBasicType</a> *CFact::newInstance()<font class="keyword"> const</font>
+00284 <font class="keyword"> </font>{
+00285 <font class="keywordflow">return</font> <font class="keyword">new</font> <a class="code" href="classNLAILOGIC_1_1CFact.html#a0">CFact</a>();
+00286 }
+00287 }
+</pre></div>
+
+<!-- footer -->
+<BR><FONT Size=+5>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </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>