aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/opcode_8cpp-source.html
blob: 997f09df5c1581491bec3ea4969db3663985d326 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
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="/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="/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD>
        <TD WIDTH=140 BGCOLOR=#dddddd><IMG  SRC="/inc/img/pixel.gif" WIDTH="140" HEIGHT="16" BORDER=0 ALT=""></TD>
        <TD WIDTH=16><IMG  SRC="/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD>
        <TD><IMG width=6 height=14 SRC="/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle>&nbsp;<A CLASS=uplinks HREF=><b>Home</B></FONT></A>&nbsp;&nbsp;&nbsp;</TD>
        <TD><IMG  width=6 height=14  SRC="/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle>&nbsp;<A CLASS=uplinks HREF=><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="/inc/img/black_banner.jpg"><A HREF=""><IMG  SRC="/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="/inc/img/pixel.gif" WIDTH="16" HEIGHT="10" BORDER=0 ALT=""></TD>
	<TD WIDTH=140   BGCOLOR=#dddddd VALIGN=TOP ALIGN=middle><IMG  SRC="/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="/news/" TITLE="Rubrique news"><img width=13 height=15  hspace=5 border=0 src=/inc/img/picto-news.gif ALT=#></A></td><td><a  class='linkbox' href="/news/" TITLE="News">News</a></td></tr>
			<tr><td ALIGN=middle><a  class='linkbox' href="/mail/" TITLE="Rubrique mail"><img width=15 height=11  hspace=5 border=0 src=/inc/img/picto-mail.gif ALT=#></A></td><td><a  class='linkbox' href="/mail/" TITLE="Mailing list archive">Mailing-list</a></td></tr>
			<tr><td ALIGN=middle><a  class='linkbox' href="/docs/" TITLE="Rubrique docs"><img width=14 height=16  hspace=5 border=0 src=/inc/img/picto-docs.gif ALT=#></A></td><td><a  class='linkbox' href="/docs/" TITLE="Documentation">Documentation</a></td></tr>
			<tr><td ALIGN=middle><a  class='linkbox' href="/cvs/" TITLE="Rubrique cvs"><img width=13 height=17  hspace=5 border=0 src=/inc/img/picto-cvs.gif ALT=#></A></td><td><a  class='linkbox' href="/cvs/" TITLE="CVS Web">CVS</a></td></tr>
			<tr><td ALIGN=middle><a  class='linkbox' href="/bugs/" TITLE="Rubrique bugs"><img width=20 height=16  hspace=5 border=0 src=/inc/img/picto-bugs.gif ALT=#></A></td><td><a  class='linkbox' href="/bugs/" TITLE="Bugtracking">Bugs</a></td></tr>
			<tr><td ALIGN=middle><a  class='linkbox' href="/GPL.php3" TITLE="Rubrique license"><img  width=18 height=12   hspace=5 border=0 src=/inc/img/picto-gpl.gif ALT=#></A></td><td><a  class='linkbox' href="/GPL.php3" TITLE="License">License</a></td></tr>
		</TABLE>
		</TD></TR></TABLE></TD></TR></TABLE>
		<!------ End Box  ------>

	</TD>
	<TD WIDTH=15><IMG  SRC="/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD>
	<TD ALIGN=left valign=top><IMG  SRC="/inc/img/pixel.gif" WIDTH="140" HEIGHT="10" BORDER=0 ALT="">

<!-- title -->
<TABLE  background="/inc/img/redline.gif" CELLSPACING=0 CELLPADDING=0  BORDER=0 width=100%><tr><td>
<A HREF="/docs/"><img src="/inc/img/t_docs.gif" ALT="Docs" HEIGHT=20 BORDER=0></A>
</td><td><IMG  SRC="/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="/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:/cgi-bin/nel-search.cgi" href="/cgi-bin/nel-search.cgi">Search</a> &nbsp; </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 &lt;string&gt;</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 &amp;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-&gt;<a class="code" href="classNLAIAGENT_1_1IObjetOp.html#a2">getNeg</a>();
00039                 o-&gt;<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 &amp;str,CCodeContext &amp;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)-&gt;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 &amp;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-&gt;<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 &amp;str,CCodeContext &amp;context)<font class="keyword"> const </font>
00067 <font class="keyword">        </font>{
00068                 std::string X,Y;
00069                 context.Stack[(int)context.Stack - 1]-&gt;getDebugString(X);
00070                 context.Stack[(int)context.Stack]-&gt;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 &amp;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-&gt;<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 &amp;str,CCodeContext &amp;context)<font class="keyword"> const </font>
00091 <font class="keyword">        </font>{
00092                 std::string X,Y;
00093                 context.Stack[(int)context.Stack - 1]-&gt;getDebugString(X);
00094                 context.Stack[(int)context.Stack]-&gt;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 &amp;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-&gt;<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 &amp;str,CCodeContext &amp;context)<font class="keyword"> const</font>
00115 <font class="keyword">        </font>{
00116                 std::string X,Y;
00117                 context.Stack[(int)context.Stack - 1]-&gt;getDebugString(X);
00118                 context.Stack[(int)context.Stack]-&gt;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 &amp;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-&gt;<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 &amp;str,CCodeContext &amp;context)<font class="keyword"> const</font>
00140 <font class="keyword">        </font>{
00141                 std::string X,Y;
00142                 context.Stack[(int)context.Stack - 1]-&gt;getDebugString(X);
00143                 context.Stack[(int)context.Stack]-&gt;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 &amp;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) &gt; (*b);
00157                 
00158                 context.Stack--;
00159                 a-&gt;<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 &amp;str,CCodeContext &amp;context)<font class="keyword"> const</font>
00165 <font class="keyword">        </font>{
00166                 std::string X,Y;
00167                 context.Stack[(int)context.Stack - 1]-&gt;getDebugString(X);
00168                 context.Stack[(int)context.Stack]-&gt;getDebugString(Y);
00169                 
00170                 str = X;
00171                 str += <font class="stringliteral">" &gt; "</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 &amp;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) &lt; (*b);
00184                 
00185                 context.Stack--;
00186                 a-&gt;<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 &amp;str,CCodeContext &amp;context)<font class="keyword"> const</font>
00192 <font class="keyword">        </font>{
00193                 std::string X,Y;
00194                 context.Stack[(int)context.Stack - 1]-&gt;getDebugString(X);
00195                 context.Stack[(int)context.Stack]-&gt;getDebugString(Y);
00196                 
00197                 str = X;
00198                 str += <font class="stringliteral">" &lt; "</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 &amp;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-&gt;<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 &amp;str,CCodeContext &amp;context)<font class="keyword"> const</font>
00216 <font class="keyword">        </font>{
00217                 std::string X,Y;
00218                 context.Stack[(int)context.Stack - 1]-&gt;getDebugString(X);
00219                 context.Stack[(int)context.Stack]-&gt;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 &amp;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) &gt;= (*b);
00233                 
00234                 context.Stack--;
00235                 a-&gt;<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 &amp;str,CCodeContext &amp;context)<font class="keyword"> const</font>
00240 <font class="keyword">        </font>{
00241                 std::string X,Y;
00242                 context.Stack[(int)context.Stack - 1]-&gt;getDebugString(X);
00243                 context.Stack[(int)context.Stack]-&gt;getDebugString(Y);
00244                 
00245                 str = X;
00246                 str += <font class="stringliteral">" &gt;= "</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 &amp;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) &lt;= (*b);
00257                 
00258                 context.Stack--;
00259                 a-&gt;<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 &amp;str,CCodeContext &amp;context)<font class="keyword"> const</font>
00264 <font class="keyword">        </font>{
00265                 std::string X,Y;
00266                 context.Stack[(int)context.Stack - 1]-&gt;getDebugString(X);
00267                 context.Stack[(int)context.Stack]-&gt;getDebugString(Y);
00268                 
00269                 str = X;
00270                 str += <font class="stringliteral">" &lt;= "</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 &amp;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-&gt;<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 &amp;str,CCodeContext &amp;context)<font class="keyword"> const</font>
00289 <font class="keyword">        </font>{
00290                 std::string X,Y;
00291                 context.Stack[(int)context.Stack - 1]-&gt;getDebugString(X);
00292                 context.Stack[(int)context.Stack]-&gt;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 &amp;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]-&gt;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 &amp;str,CCodeContext &amp;context)<font class="keyword"> const</font>
00309 <font class="keyword">        </font>{
00310                 std::string Y;
00311                 context.Stack[(int)context.Stack]-&gt;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 &amp;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&lt;sint32&gt;</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-&gt;<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-&gt;<a class="code" href="classNLAIAGENT_1_1IObjectIA.html#a9">setStaticMember</a>(*i,obj))
00329                                                                 obj-&gt;<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 &amp;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)-&gt;setStaticMember(<a class="code" href="classNLAISCRIPT_1_1CAffMemberOpCode.html#o0">_I</a>,a))
00339                                                                                                                                         a-&gt;<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 &amp;context)
00357         {                               
00358                 <font class="comment">/*NLAIAGENT::iObjectIA *i = (NLAIAGENT::iObjectIA *)NLAIC::getRegistry()-&gt;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-&gt;HeapDebug[context.ContextDebug-&gt;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 &amp;str,CCodeContext &amp;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> &amp;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> &amp;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> &amp;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 &amp;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&lt;sint32&gt;</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-&gt;<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-&gt;<a class="code" href="classNLAIAGENT_1_1IObjectIA.html#a9">setStaticMember</a>(*i,obj))
00426                                                                         obj-&gt;<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 &amp;str,CCodeContext &amp;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)-&gt;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>])-&gt;getDebugString(txtClass);
00437                 <a class="code" href="classstd_1_1list.html">std::list&lt;sint32&gt;</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">"-&gt;"</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 &amp;context)
00450         {       
00451                 <font class="comment">/*NLAIAGENT::iObjectIA *i = (NLAIAGENT::iObjectIA *)NLAIC::getRegistry()-&gt;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-&gt;<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-&gt;<a class="code" href="classNLAIC_1_1IPointerGestion.html#a3">release</a>();
00464                 <font class="keywordflow">if</font>(tmpD) tmpD-&gt;<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 &amp;str,CCodeContext &amp;context)<font class="keyword"> const</font>
00471 <font class="keyword">        </font>{
00472                 std::string Y;
00473                 context.Stack[(int)context.Stack]-&gt;getDebugString(Y);
00474                 str += <a class="code" href="namespaceNLAIC.html#a5">NLAIC::stringGetBuild</a>(<font class="stringliteral">"Affectation&lt;%d&gt; 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> &amp;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> &amp;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> &amp;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 &amp;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 &amp;str,CCodeContext &amp;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> &amp;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> &amp;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> &amp;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 &amp;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-&gt;<a class="code" href="classNLAIAGENT_1_1IBaseGroupType.html#z136_10">get</a>();
00575                 msg-&gt;<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> &amp;methodName,<font class="keyword">const</font> CParam &amp;<a class="code" href="driver__opengl__extension__def_8h.html#a382">param</a>,<font class="keyword">const</font> IOpType &amp;baseClass,<font class="keyword">const</font> ILoadObject &amp;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>-&gt;release();
00602                 <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o1">_MethodName</a>-&gt;<a class="code" href="classNLAIC_1_1IPointerGestion.html#a3">release</a>();
00603                 <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o2">_BaseClass</a>-&gt;release();
00604                 <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o3">_ObjectLoad</a>-&gt;release();
00605         }
00606 
<a name="l00607"></a><a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#a3">00607</a>         NLAIAGENT::TProcessStatement CFindRunMsg::runOpCode(CCodeContext &amp;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>-&gt;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>-&gt;getParam(context);
00611                 <a class="code" href="classNLAIAGENT_1_1CIteratorContener.html">NLAIAGENT::CIteratorContener</a> it = param-&gt;<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>-&gt;<a class="code" href="classNLAIAGENT_1_1IBaseGroupType.html#z136_10">get</a>();
00616 
00617                 NLAIAGENT::tQueue a = o-&gt;<a class="code" href="classNLAIAGENT_1_1IObjectIA.html#a12">isMember</a>(NULL,&amp;name-&gt;<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-&gt;<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 &amp;str,CCodeContext &amp;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>-&gt;<a class="code" href="classNLAIC_1_1IBasicType.html#a5">getDebugString</a>(m);
00633                 <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o0">_Param</a>-&gt;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-&gt;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>-&gt;incRef();
00640                 <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o1">_MethodName</a>-&gt;<a class="code" href="classNLAIC_1_1IPointerGestion.html#a2">incRef</a>();
00641                 <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o2">_BaseClass</a>-&gt;incRef();
00642                 <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o3">_ObjectLoad</a>-&gt;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> &amp;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> &amp;) <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o3">_ObjectLoad</a>-&gt;getType() );
00650                 <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o3">_ObjectLoad</a>-&gt;save(os);
00651                 <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o2">_BaseClass</a>-&gt;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> &amp;) <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o0">_Param</a>-&gt;getType() );
00653                 <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o0">_Param</a>-&gt;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> &amp;) <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o1">_MethodName</a>-&gt;<a class="code" href="classNLAIC_1_1IBasicType.html#a2">getType</a>() );
00655                 <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o1">_MethodName</a>-&gt;<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> &amp;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>-&gt;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>-&gt;load(is);
00665 
00666                 <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o2">_BaseClass</a>-&gt;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>-&gt;release();
00669                 <a class="code" href="classNLAISCRIPT_1_1CFindRunMsg.html#o1">_MethodName</a>-&gt;<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>-&gt;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>-&gt;<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 &amp;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-&gt;<a class="code" href="classNLAIAGENT_1_1IBaseGroupType.html#z136_6">getIterator</a>();
00686                 i++;
00687                 <font class="keywordflow">if</font>(a-&gt;<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)-&gt;incRef();</font>
00690                 <font class="keywordflow">if</font>(!msg-&gt;<a class="code" href="classNLAIAGENT_1_1IMessageBase.html#z166_5">getProtcetSender</a>()) msg-&gt;<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-&gt;<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> &amp;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> &amp;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 &amp;str,CCodeContext &amp;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> &amp;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>-&gt;<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 &amp;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>-&gt;<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 &amp;str,CCodeContext &amp;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> &amp;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> &amp;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> &amp;) <a class="code" href="classNLAISCRIPT_1_1CAddParamNameDebug.html#o0">_DebugAttrib</a>-&gt;<a class="code" href="classNLAIC_1_1IBasicType.html#a2">getType</a>() );
00755                 <a class="code" href="classNLAISCRIPT_1_1CAddParamNameDebug.html#o0">_DebugAttrib</a>-&gt;<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> &amp;is) 
00759         {                               
00760                 <a class="code" href="classNLAISCRIPT_1_1CAddParamNameDebug.html#o0">_DebugAttrib</a>-&gt;<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>-&gt;<a class="code" href="classNLAIC_1_1IBasicInterface.html#a5">load</a>(is);
00765         }       
00766 }
</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=/inc/img/pixel.gif WIDTH=15 HEIGHT=15 BORDER=0 ALT=""></TD>
</TR>
</TABLE>
</BODY>
</HTML>