aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/a05912.html
blob: e8252f2efded01077be9a3cf680772599680cd07 (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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>NeL: list_manager.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.6 -->
<div class="qindex">  <form class="search" action="search.php" method="get">
<a class="qindex" href="main.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a>  | <span class="search"><u>S</u>earch&nbsp;for&nbsp;<input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div>
<h1>list_manager.h</h1><a href="a04489.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 
00007 <span class="comment">/* Copyright, 2000 Nevrax Ltd.</span>
00008 <span class="comment"> *</span>
00009 <span class="comment"> * This file is part of NEVRAX NEL.</span>
00010 <span class="comment"> * NEVRAX NEL is free software; you can redistribute it and/or modify</span>
00011 <span class="comment"> * it under the terms of the GNU General Public License as published by</span>
00012 <span class="comment"> * the Free Software Foundation; either version 2, or (at your option)</span>
00013 <span class="comment"> * any later version.</span>
00014 <span class="comment"></span>
00015 <span class="comment"> * NEVRAX NEL is distributed in the hope that it will be useful, but</span>
00016 <span class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</span>
00017 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
00018 <span class="comment"> * General Public License for more details.</span>
00019 <span class="comment"></span>
00020 <span class="comment"> * You should have received a copy of the GNU General Public License</span>
00021 <span class="comment"> * along with NEVRAX NEL; see the file COPYING. If not, write to the</span>
00022 <span class="comment"> * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,</span>
00023 <span class="comment"> * MA 02111-1307, USA.</span>
00024 <span class="comment"> */</span>
00025 <span class="preprocessor">#ifndef NL_LIST_MANAGER_H</span>
00026 <span class="preprocessor"></span><span class="preprocessor">#define NL_LIST_MANAGER_H</span>
00027 <span class="preprocessor"></span>
00028 <span class="preprocessor">#include "<a class="code" href="a03984.html">nel/ai/agent/agent_object.h</a>"</span>
00029 
00030 <span class="keyword">namespace </span>NLAIAGENT
00031 {
00032         <span class="keyword">class </span>CObjectIdent;
00033 
<a name="l00039"></a><a class="code" href="a02324.html">00039</a>         <span class="keyword">class </span><a class="code" href="a02324.html">IListBasicManager</a> : <span class="keyword">public</span> <a class="code" href="a02327.html">IBaseGroupType</a>
00040         {
00041         <span class="keyword">protected</span>:
<a name="l00042"></a><a class="code" href="a02324.html#NLAIAGENT_1_1IMessageBasep0">00042</a>                 <a class="code" href="a02327.html">IBaseGroupType</a> *_List;
00043         <span class="keyword">public</span>:
00044                 <a class="code" href="a02324.html#NLAIAGENT_1_1IListBasicManagera14">IListBasicManager</a>();
00045                 <a class="code" href="a02324.html#NLAIAGENT_1_1IListBasicManagera14">IListBasicManager</a>(<a class="code" href="a02327.html">IBaseGroupType</a> *);
00046                 <a class="code" href="a02324.html#NLAIAGENT_1_1IListBasicManagera14">IListBasicManager</a>(<span class="keyword">const</span> <a class="code" href="a02324.html">IListBasicManager</a> &amp;);
00047                 <span class="keyword">virtual</span> <a class="code" href="a02324.html#NLAIAGENT_1_1IListBasicManagera40">~IListBasicManager</a>();
00048 
00049 
00051 
00052                 <span class="keyword">virtual</span> <a class="code" href="a02147.html">IObjetOp</a> &amp;<a class="code" href="a02324.html#NLAIAGENT_1_1IMessageBasez1705_14">operator += </a>(<span class="keyword">const</span> <a class="code" href="a02147.html">IObjetOp</a> &amp;a);
00053                 <span class="keyword">virtual</span> <a class="code" href="a02147.html">IObjetOp</a> &amp;<a class="code" href="a02324.html#NLAIAGENT_1_1IMessageBasez1705_15">operator -= </a>(<span class="keyword">const</span> <a class="code" href="a02147.html">IObjetOp</a> &amp;a);
00054                 <span class="keyword">virtual</span> <a class="code" href="a02149.html">IObjectIA</a> &amp;<a class="code" href="a02324.html#NLAIAGENT_1_1IListBasicManagerz1705_21">operator = </a>(<span class="keyword">const</span> <a class="code" href="a02149.html">IObjectIA</a> &amp;a);
00055 
00056                 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="a02149.html">IObjectIA</a> *<a class="code" href="a02324.html#NLAIAGENT_1_1IMessageBasez1705_16">operator[] </a>(<a class="code" href="a04558.html#a10">sint32</a>) <span class="keyword">const</span>;
00057 
<a name="l00058"></a><a class="code" href="a02324.html#NLAIAGENT_1_1IMessageBasez1705_22">00058</a>                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a02324.html#NLAIAGENT_1_1IMessageBasez1705_22">set</a>(<span class="keywordtype">int</span> i,<a class="code" href="a02149.html">IObjectIA</a> *o)
00059                 {
00060                         _List-&gt;<a class="code" href="a02327.html#NLAIAGENT_1_1IBaseGroupTypez1654_17">set</a>(i,o);
00061                 }
00062 
00063                 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="a02324.html#NLAIAGENT_1_1IMessageBasez1705_12">isTrue</a>() <span class="keyword">const</span>;
00064 
00065                 <span class="keyword">virtual</span> <a class="code" href="a02147.html">IObjetOp</a> *<a class="code" href="a02324.html#NLAIAGENT_1_1IMessageBasez1705_13">operator ! </a>() <span class="keyword">const</span>;
00066                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a02324.html#NLAIAGENT_1_1IMessageBasez1705_19">push</a>(<span class="keyword">const</span> <a class="code" href="a02149.html">IObjectIA</a> *o);
00067                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a02324.html#NLAIAGENT_1_1IMessageBasez1705_20">pushFront</a>(<span class="keyword">const</span> <a class="code" href="a02149.html">IObjectIA</a> *o);
<a name="l00068"></a><a class="code" href="a02324.html#NLAIAGENT_1_1IMessageBasez1705_11">00068</a>                 <span class="keyword">virtual</span> <a class="code" href="a02692.html">CIteratorContener</a> <a class="code" href="a02324.html#NLAIAGENT_1_1IMessageBasez1705_11">getIterator</a>()
00069                 {
00070                         <span class="keywordflow">return</span> _List-&gt;<a class="code" href="a02327.html#NLAIAGENT_1_1IBaseGroupTypez1654_10">getIterator</a>();
00071                 }
00072 
<a name="l00073"></a><a class="code" href="a02324.html#NLAIAGENT_1_1IMessageBasez1705_9">00073</a>                 <span class="keyword">virtual</span> <a class="code" href="a02403.html">CConstIteratorContener</a> <a class="code" href="a02324.html#NLAIAGENT_1_1IMessageBasez1705_9">getConstIterator</a>()<span class="keyword"> const</span>
00074 <span class="keyword">                </span>{
00075                         <span class="keywordflow">return</span> _List-&gt;<a class="code" href="a02327.html#NLAIAGENT_1_1IBaseGroupTypez1654_8">getConstIterator</a>();
00076                 }
00077                 
00078                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a02324.html#NLAIAGENT_1_1IMessageBasez1705_1">cpy</a>(<span class="keyword">const</span> <a class="code" href="a02149.html">IObjectIA</a> &amp;o);
00079                 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="a02149.html">IObjectIA</a> *<a class="code" href="a02324.html#NLAIAGENT_1_1IMessageBasez1705_17">pop</a>();
00080                 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="a02149.html">IObjectIA</a> *<a class="code" href="a02324.html#NLAIAGENT_1_1IMessageBasez1705_8">get</a>() <span class="keyword">const</span>;
00081                 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="a02149.html">IObjectIA</a> *<a class="code" href="a02324.html#NLAIAGENT_1_1IMessageBasez1705_18">popFront</a>();
00082                 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="a02149.html">IObjectIA</a> *<a class="code" href="a02324.html#NLAIAGENT_1_1IMessageBasez1705_10">getFront</a>() <span class="keyword">const</span>;
00083                 <span class="keyword">virtual</span> <a class="code" href="a04558.html#a10">sint32</a> <a class="code" href="a02324.html#NLAIAGENT_1_1IMessageBasez1705_23">size</a>() <span class="keyword">const</span>;
00084                 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="a02149.html">IObjectIA</a> *<a class="code" href="a02324.html#NLAIAGENT_1_1IMessageBasez1705_7">find</a>(<span class="keyword">const</span> <a class="code" href="a02149.html">IObjectIA</a> &amp;obj) <span class="keyword">const</span>;
00085                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a02324.html#NLAIAGENT_1_1IMessageBasez1705_6">eraseFirst</a>(<span class="keyword">const</span> <a class="code" href="a02149.html">IObjectIA</a> &amp;obj);
00086                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a02324.html#NLAIAGENT_1_1IMessageBasez1705_5">eraseAll</a>(<span class="keyword">const</span> <a class="code" href="a02149.html">IObjectIA</a> &amp;obj); 
00087                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a02324.html#NLAIAGENT_1_1IMessageBasez1705_4">erase</a>(<span class="keyword">const</span> <a class="code" href="a02149.html">IObjectIA</a> *o); 
00088                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a02324.html#NLAIAGENT_1_1IMessageBasez1705_4">erase</a>(<span class="keyword">const</span> <a class="code" href="a02149.html">IObjectIA</a> &amp;obj);
00089                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a02324.html#NLAIAGENT_1_1IMessageBasez1705_4">erase</a>(std::list&lt;const IObjectIA *&gt; &amp;l);
00090                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a02324.html#NLAIAGENT_1_1IMessageBasez1705_0">clear</a>();
00091 
00092                 <span class="keyword">virtual</span> <a class="code" href="a04558.html#a10">sint32</a> <a class="code" href="a02324.html#NLAIAGENT_1_1IListManagerz1705_13">getMethodIndexSize</a>() <span class="keyword">const</span>;
00093                 <span class="keyword">virtual</span> <a class="code" href="a05364.html#a31">TQueue</a> <a class="code" href="a02324.html#NLAIAGENT_1_1IListManagerz1705_14">isMember</a>(<span class="keyword">const</span> <a class="code" href="a02661.html">IVarName</a> *className,<span class="keyword">const</span> <a class="code" href="a02661.html">IVarName</a> *methodName,<span class="keyword">const</span> <a class="code" href="a02149.html">IObjectIA</a> &amp;p) <span class="keyword">const</span>;
00094                 <span class="keyword">virtual</span> <a class="code" href="a03869.html">IObjectIA::CProcessResult</a> <a class="code" href="a02324.html#NLAIAGENT_1_1IListManagerz1705_27">runMethodeMember</a>(<a class="code" href="a04558.html#a10">sint32</a>, <a class="code" href="a04558.html#a10">sint32</a>,<a class="code" href="a02149.html">IObjectIA</a> *);
00095                 <span class="keyword">virtual</span> <a class="code" href="a03869.html">IObjectIA::CProcessResult</a> <a class="code" href="a02324.html#NLAIAGENT_1_1IListManagerz1705_27">runMethodeMember</a>(<a class="code" href="a04558.html#a10">sint32</a>,<a class="code" href="a02149.html">IObjectIA</a> *);
00096 
00097 
<a name="l00098"></a><a class="code" href="a02324.html#NLAIAGENT_1_1IMessageBasez1705_21">00098</a>                 <span class="keyword">virtual</span> <span class="keyword">const</span> CProcessResult &amp;<a class="code" href="a02324.html#NLAIAGENT_1_1IMessageBasez1705_21">run</a>(){<span class="keywordflow">return</span> IObjectIA::ProcessRun;}
00099                 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="a02324.html#NLAIAGENT_1_1IListBasicManagerz1705_14">isEqual</a>(<span class="keyword">const</span> <a class="code" href="a02153.html">IBasicObjectIA</a> &amp;a) <span class="keyword">const</span>;
00100 
00101                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a02324.html#NLAIAGENT_1_1IListManagerz1705_28">save</a>(<a class="code" href="a02270.html">NLMISC::IStream</a> &amp;os);
00102                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a02324.html#NLAIAGENT_1_1IListManagerz1705_16">load</a>(<a class="code" href="a02270.html">NLMISC::IStream</a> &amp;is);
00103                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a02324.html#NLAIAGENT_1_1IListManagerz1705_10">getDebugString</a>(std::string &amp;<a class="code" href="a04223.html#a627">t</a>) <span class="keyword">const</span>;
00105 
<a name="l00107"></a><a class="code" href="a02324.html#NLAIAGENT_1_1IMessageBasea29">00107</a>                 <a class="code" href="a02324.html#NLAIAGENT_1_1IMessageBasea29">operator const IBaseGroupType *</a>()<span class="keyword"> const</span>
00108 <span class="keyword">                </span>{
00109                         <span class="keywordflow">return</span> _List;
00110                 }
00111         };
00112 
00113 
<a name="l00117"></a><a class="code" href="a03666.html">00117</a>         <span class="keyword">class </span><a class="code" href="a03666.html">IListManager</a> : <span class="keyword">public</span> <a class="code" href="a02324.html">IListBasicManager</a>
00118         {       
00119         <span class="keyword">public</span>:
00120                 <a class="code" href="a03666.html#NLAIAGENT_1_1IListManagera14">IListManager</a>(<a class="code" href="a02327.html">IBaseGroupType</a> *);
00121                 <a class="code" href="a03666.html#NLAIAGENT_1_1IListManagera14">IListManager</a>(<span class="keyword">const</span> <a class="code" href="a03666.html">IListManager</a> &amp;);
00122                         
00123 
00124                 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="a03666.html#NLAIAGENT_1_1IListManagera17">isEqual</a>(<span class="keyword">const</span> <a class="code" href="a02153.html">IBasicObjectIA</a> &amp;a) <span class="keyword">const</span>;            
00125                 <span class="keyword">virtual</span> CProcessResult <a class="code" href="a03666.html#NLAIAGENT_1_1IListManagera37">sendMessage</a>(<a class="code" href="a02149.html">IObjectIA</a> *);
00126 
00127 
00128                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a03666.html#NLAIAGENT_1_1IListManagera41">trie</a>() = 0;
00129                 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="a02149.html">IObjectIA</a> *<a class="code" href="a03666.html#NLAIAGENT_1_1IListManagera6">getObject</a>(<span class="keyword">const</span> <a class="code" href="a02997.html">CObjectIdent</a> &amp;) <span class="keyword">const</span> = 0;
00130                 
00131                 <span class="keyword">virtual</span> <a class="code" href="a03666.html#NLAIAGENT_1_1IListManagera42">~IListManager</a>();
00132 
00133         };
00134 
<a name="l00138"></a><a class="code" href="a03665.html">00138</a>         <span class="keyword">class </span><a class="code" href="a03665.html">CVectorGroupManager</a>: <span class="keyword">public</span> <a class="code" href="a03666.html">IListManager</a>
00139         {
00140         <span class="keyword">public</span>:
00141                 <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="a02650.html">NLAIC::CIdentType</a> <a class="code" href="a03665.html#NLAIAGENT_1_1CVectorGroupManagers1">IdVectorGroupManager</a>;
00142 
00143         <span class="keyword">public</span>:
00144                 <a class="code" href="a03665.html#NLAIAGENT_1_1CVectorGroupManagera3">CVectorGroupManager</a>(<a class="code" href="a04558.html#a10">sint32</a>);
00145                 <a class="code" href="a03665.html#NLAIAGENT_1_1CVectorGroupManagera3">CVectorGroupManager</a>();
00146                 <a class="code" href="a03665.html#NLAIAGENT_1_1CVectorGroupManagera3">CVectorGroupManager</a>(<span class="keyword">const</span> <a class="code" href="a03665.html">CVectorGroupManager</a> &amp;);
00147                 
00148                 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="a02650.html">NLAIC::CIdentType</a> &amp;<a class="code" href="a03665.html#NLAIAGENT_1_1CVectorGroupManagera15">getType</a>() <span class="keyword">const</span>;               
00149                 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="a02151.html">NLAIC::IBasicType</a> *<a class="code" href="a03665.html#NLAIAGENT_1_1CVectorGroupManagera1">clone</a>() <span class="keyword">const</span>;
00150                 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="a02151.html">NLAIC::IBasicType</a> *<a class="code" href="a03665.html#NLAIAGENT_1_1CVectorGroupManagera20">newInstance</a>() <span class="keyword">const</span>;
00151                 
00152                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a03665.html#NLAIAGENT_1_1CVectorGroupManagera42">trie</a>();
00153                 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="a02149.html">IObjectIA</a> *<a class="code" href="a03665.html#NLAIAGENT_1_1CVectorGroupManagera9">getObject</a>(<span class="keyword">const</span> <a class="code" href="a02997.html">CObjectIdent</a> &amp;) <span class="keyword">const</span>;
00154 
00155                 <span class="keyword">virtual</span> <a class="code" href="a03665.html#NLAIAGENT_1_1CVectorGroupManagera43">~CVectorGroupManager</a>();
00156         };
00157         
00158 }
00159 <span class="preprocessor">#endif</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 06:27:45 2004 for NeL by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 > 
</a>1.3.6 </small></address>
</body>
</html>