diff options
author | neodarz <neodarz@neodarz.net> | 2018-08-11 20:21:34 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2018-08-11 20:21:34 +0200 |
commit | 0ea5fc66924303d1bf73ba283a383e2aadee02f2 (patch) | |
tree | 2568e71a7ccc44ec23b8bb3f0ff97fb6bf2ed709 /docs/doxygen/nel/list__manager_8cpp-source.html | |
download | nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.tar.xz nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.zip |
Initial commit
Diffstat (limited to 'docs/doxygen/nel/list__manager_8cpp-source.html')
-rw-r--r-- | docs/doxygen/nel/list__manager_8cpp-source.html | 413 |
1 files changed, 413 insertions, 0 deletions
diff --git a/docs/doxygen/nel/list__manager_8cpp-source.html b/docs/doxygen/nel/list__manager_8cpp-source.html new file mode 100644 index 00000000..224b1d78 --- /dev/null +++ b/docs/doxygen/nel/list__manager_8cpp-source.html @@ -0,0 +1,413 @@ +<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> +<HTML> +<HEAD> + <TITLE>nevrax.org : docs</TITLE> + <LINK REL=stylesheet TYPE="text/css" HREF="http://www.nevrax.org/inc/css/nevrax.css"> + <link href="doxygen.css" rel="stylesheet" type="text/css"> +</HEAD> +<BODY MARGINHEIGHT="0" MARGINWIDTH="0"> + +<!-- uplinks --> +<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0> + <TR> + <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD WIDTH=140 BGCOLOR=#dddddd><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD><IMG width=6 height=14 SRC="http://www.nevrax.org/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle> <A CLASS=uplinks HREF=http://www.nevrax.org><b>Home</B></FONT></A> </TD> + <TD><IMG width=6 height=14 SRC="http://www.nevrax.org/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle> <A CLASS=uplinks HREF=http://www.nevrax.com><b>nevrax.com</B></FONT></A> </TD> + </TR> +</TABLE> + +<!-- banner Nevrax --> +<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%> + <TR><TD BGCOLOR="#000000" BACKGROUND="http://www.nevrax.org/inc/img/black_banner.jpg"><A HREF="http://www.nevrax.org"><IMG SRC="http://www.nevrax.org/inc/img/nevrax.gif" WIDTH="170" HEIGHT="45" BORDER=0 ALT="Nevrax" ></A></TD></TR> +</TABLE> + +<!-- main table --> +<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 height=100%> + <TR> + <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="10" BORDER=0 ALT=""></TD> + <TD WIDTH=140 BGCOLOR=#dddddd VALIGN=TOP ALIGN=middle><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="10" BORDER=0 ALT=""> + + <!------ Begin Box ------> + <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 BGCOLOR=black><TR><TD><TABLE border=0 cellspacing=2 cellpadding=0 width=120><tr><TD ALIGN=middle bgcolor=black> + <FONT COLOR=white FACE="sans-serif"><B>Nevrax.org</B></FONT></TD></TR><tr><td colspan=2 bgcolor=#FFFFFF> + <TABLE cellspacing=0 cellpadding=1 border=0> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/news/" TITLE="Rubrique news"><img width=13 height=15 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-news.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/news/" TITLE="News">News</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/mail/" TITLE="Rubrique mail"><img width=15 height=11 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-mail.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/mail/" TITLE="Mailing list archive">Mailing-list</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/docs/" TITLE="Rubrique docs"><img width=14 height=16 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-docs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/docs/" TITLE="Documentation">Documentation</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/cvs/" TITLE="Rubrique cvs"><img width=13 height=17 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-cvs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/cvs/" TITLE="CVS Web">CVS</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/bugs/" TITLE="Rubrique bugs"><img width=20 height=16 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-bugs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/bugs/" TITLE="Bugtracking">Bugs</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/GPL.php3" TITLE="Rubrique license"><img width=18 height=12 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-gpl.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/GPL.php3" TITLE="License">License</a></td></tr> + </TABLE> + </TD></TR></TABLE></TD></TR></TABLE> + <!------ End Box ------> + + </TD> + <TD WIDTH=15><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD ALIGN=left valign=top><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="10" BORDER=0 ALT=""> + +<!-- title --> +<TABLE background="http://www.nevrax.org/inc/img/redline.gif" CELLSPACING=0 CELLPADDING=0 BORDER=0 width=100%><tr><td> +<A HREF="http://www.nevrax.org/docs/"><img src="http://www.nevrax.org/inc/img/t_docs.gif" ALT="Docs" HEIGHT=20 BORDER=0></A> +</td><td><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="1" HEIGHT="1" BORDER=0 ALT=""> +</td></tr></table> + + +<!-- block --> +<TABLE bgcolor="#dddddd" CELLSPACING=0 CELLPADDING=0 BORDER=0 width=100%><tr><td width=1% valign=middle><img width=6 height=14 hspace=2 vspace=2 src="http://www.nevrax.org/inc/img/reddots.gif"></TD> + <TD><B>Documentation</B></TD> + <TD ALIGN=RIGHT> </td> +</tr></table> +<!-- Generated by Doxygen 1.2.14 --> +<center> +<a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="namespacemembers.html">Namespace Members</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> <a class="qindex" href="pages.html">Related Pages</a> <a class="qindexRef" doxygen="_cgi:http://www.nevrax.org/cgi-bin/nel-search.cgi" href="http://www.nevrax.org/cgi-bin/nel-search.cgi">Search</a> </center> +<hr><h1>list_manager.cpp</h1><a href="list__manager_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 +00025 <font class="preprocessor">#include "<a class="code" href="agent_8h.html">nel/ai/agent/agent.h</a>"</font> +00026 <font class="preprocessor">#include "<a class="code" href="agent__object_8h.html">nel/ai/agent/agent_object.h</a>"</font> +00027 <font class="preprocessor">#include "<a class="code" href="list__manager_8h.html">nel/ai/agent/list_manager.h</a>"</font> +00028 +00029 <font class="keyword">namespace </font>NLAIAGENT +00030 { +00031 +00032 <font class="comment">/*</font> +00033 <font class="comment"> ########################</font> +00034 <font class="comment"> class IListBasicManager</font> +00035 <font class="comment"> ########################</font> +00036 <font class="comment">*/</font> +<a name="l00037"></a><a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#a0">00037</a> IListBasicManager::IListBasicManager():_List(NULL) +00038 { +00039 } +<a name="l00040"></a><a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#a1">00040</a> IListBasicManager::IListBasicManager(IBaseGroupType *<a class="code" href="namespaceNLAISCRIPT.html#a20">l</a>):_List(<a class="code" href="namespaceNLAISCRIPT.html#a20">l</a>) +00041 { +00042 +00043 } +00044 +<a name="l00045"></a><a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#a2">00045</a> IListBasicManager::IListBasicManager(<font class="keyword">const</font> IListBasicManager &<a class="code" href="namespaceNLAISCRIPT.html#a20">l</a>):_List(<a class="code" href="namespaceNLAISCRIPT.html#a20">l</a>._List) +00046 { +00047 <a class="code" href="namespaceNLAISCRIPT.html#a20">l</a>._List->incRef(); +00048 } +00049 +<a name="l00050"></a><a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#a3">00050</a> IListBasicManager::~IListBasicManager() +00051 { +00052 <font class="keywordflow">if</font>(<a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#n0">_List</a> != NULL) <a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#n0">_List</a>->release(); +00053 } +00054 +<a name="l00055"></a><a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#z161_30">00055</a> <font class="keywordtype">void</font> IListBasicManager::save(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &os) +00056 { +00057 os.<a class="code" href="classNLMISC_1_1IStream.html#a5">serial</a>( (<a class="code" href="classNLAIC_1_1CIdentType.html">NLAIC::CIdentType</a> &) <a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#n0">_List</a>->getType() ); +00058 os.<a class="code" href="classNLMISC_1_1IStream.html#a5">serial</a>( *<a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#n0">_List</a> ); +00059 } +00060 +<a name="l00061"></a><a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#z161_31">00061</a> <font class="keywordtype">void</font> IListBasicManager::load(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &is) +00062 { +00063 <a class="code" href="classNLAIC_1_1CIdentTypeAlloc.html">NLAIC::CIdentTypeAlloc</a> <a class="code" href="driver__opengl__extension__def_8h.html#a356">id</a>; +00064 is.<a class="code" href="classNLMISC_1_1IStream.html#a5">serial</a>( id ); +00065 <font class="keywordflow">if</font>(<a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#n0">_List</a> != NULL) <a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#n0">_List</a>->release(); +00066 <a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#n0">_List</a> = (<a class="code" href="classNLAIAGENT_1_1IBaseGroupType.html#a0">IBaseGroupType</a> *)id.<a class="code" href="classNLAIC_1_1CIdentTypeAlloc.html#a3">allocClass</a>(); +00067 is .<a class="code" href="classNLMISC_1_1IStream.html#a5">serial</a>( *<a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#n0">_List</a> ); +00068 } +00069 +<a name="l00070"></a><a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#z161_32">00070</a> <font class="keywordtype">void</font> IListBasicManager::getDebugString(std::string &<a class="code" href="driver__opengl__extension__def_8h.html#a384">t</a>)<font class="keyword"> const</font> +00071 <font class="keyword"> </font>{ +00072 std::string b; +00073 <a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#n0">_List</a>->getDebugString(b); +00074 <a class="code" href="driver__opengl__extension__def_8h.html#a384">t</a> += <a class="code" href="namespaceNLAIC.html#a5">NLAIC::stringGetBuild</a>(<font class="stringliteral">"IListBasicManager<%4x>: _List:'%s'"</font>,<font class="keyword">this</font>,b.c_str()); +00075 } +00076 +<a name="l00077"></a><a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#z161_2">00077</a> IObjectIA &IListBasicManager::operator = (<font class="keyword">const</font> IObjectIA &b) +00078 { +00079 <a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#a0">IListBasicManager</a> &a = (<a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#a0">IListBasicManager</a> &)b; +00080 *<a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#n0">_List</a> = *a._List; +00081 <font class="keywordflow">return</font> *<font class="keyword">this</font>; +00082 } +00083 +<a name="l00084"></a><a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#z161_0">00084</a> IObjetOp &IListBasicManager::operator += (<font class="keyword">const</font> IObjetOp &a) +00085 { +00086 <a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#n0">_List</a>->cpy(a); +00087 <font class="keywordflow">return</font> *<font class="keyword">this</font>; +00088 } +00089 +<a name="l00090"></a><a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#z161_1">00090</a> IObjetOp &IListBasicManager::operator -= (<font class="keyword">const</font> IObjetOp &a) +00091 { +00092 <a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#n0">_List</a>->erase(a); +00093 <font class="keywordflow">return</font> *<font class="keyword">this</font>; +00094 } +00095 +00096 +<a name="l00097"></a><a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#z161_3">00097</a> <font class="keyword">const</font> IObjectIA *IListBasicManager::operator[] (sint32 <a class="code" href="driver__opengl__extension__def_8h.html#a358">index</a>)<font class="keyword"> const</font> +00098 <font class="keyword"> </font>{ +00099 <font class="preprocessor">#ifdef NL_DEBUG</font> +00100 <font class="preprocessor"></font> sint <a class="code" href="driver__opengl__extension__def_8h.html#a383">s</a> = <a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#n0">_List</a>->size(); +00101 <font class="preprocessor">#endif</font> +00102 <font class="preprocessor"></font> <font class="keywordflow">return</font> (*_List)[<a class="code" href="driver__opengl__extension__def_8h.html#a358">index</a>]; +00103 } +00104 +<a name="l00105"></a><a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#z161_5">00105</a> <font class="keywordtype">bool</font> IListBasicManager::isTrue()<font class="keyword"> const</font> +00106 <font class="keyword"> </font>{ +00107 <font class="keywordflow">return</font> <a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#n0">_List</a>->isTrue(); +00108 } +<a name="l00109"></a><a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#z161_6">00109</a> IObjetOp *IListBasicManager::operator ! ()<font class="keyword"> const</font> +00110 <font class="keyword"> </font>{ +00111 <font class="keywordflow">return</font> !(*_List); +00112 } +<a name="l00113"></a><a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#z161_7">00113</a> <font class="keywordtype">void</font> IListBasicManager::push(<font class="keyword">const</font> IObjectIA *o) +00114 { +00115 <a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#n0">_List</a>->push(o); +00116 } +00117 +<a name="l00118"></a><a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#z161_8">00118</a> <font class="keywordtype">void</font> IListBasicManager::pushFront(<font class="keyword">const</font> IObjectIA *o) +00119 { +00120 <a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#n0">_List</a>->pushFront(o); +00121 } +00122 +<a name="l00123"></a><a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#z161_11">00123</a> <font class="keywordtype">void</font> IListBasicManager::cpy(<font class="keyword">const</font> IObjectIA &o) +00124 { +00125 <a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#n0">_List</a>->cpy(o); +00126 } +<a name="l00127"></a><a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#z161_12">00127</a> <font class="keyword">const</font> IObjectIA *IListBasicManager::pop() +00128 { +00129 <font class="keywordflow">return</font> <a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#n0">_List</a>->pop(); +00130 } +<a name="l00131"></a><a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#z161_13">00131</a> <font class="keyword">const</font> IObjectIA *IListBasicManager::get()<font class="keyword"> const</font> +00132 <font class="keyword"> </font>{ +00133 <font class="keywordflow">return</font> <a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#n0">_List</a>->get(); +00134 } +<a name="l00135"></a><a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#z161_14">00135</a> <font class="keyword">const</font> IObjectIA *IListBasicManager::popFront() +00136 { +00137 <font class="keywordflow">return</font> <a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#n0">_List</a>->popFront(); +00138 } +<a name="l00139"></a><a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#z161_15">00139</a> <font class="keyword">const</font> IObjectIA *IListBasicManager::getFront()<font class="keyword"> const</font> +00140 <font class="keyword"> </font>{ +00141 <font class="keywordflow">return</font> <a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#n0">_List</a>->getFront(); +00142 } +<a name="l00143"></a><a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#z161_16">00143</a> sint32 <a class="code" href="cf__lexical_8cpp.html#a94">IListBasicManager::size</a>()<font class="keyword"> const</font> +00144 <font class="keyword"> </font>{ +00145 <font class="keywordflow">return</font> <a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#n0">_List</a>->size(); +00146 } +00147 +<a name="l00148"></a><a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#z161_17">00148</a> <font class="keyword">const</font> IObjectIA *IListBasicManager::find(<font class="keyword">const</font> IObjectIA &obj)<font class="keyword"> const</font> +00149 <font class="keyword"> </font>{ +00150 <font class="keywordflow">return</font> <a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#n0">_List</a>->find(obj); +00151 } +<a name="l00152"></a><a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#z161_18">00152</a> <font class="keywordtype">void</font> IListBasicManager::eraseFirst(<font class="keyword">const</font> IObjectIA &obj) +00153 { +00154 <a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#n0">_List</a>->erase(obj); +00155 } +<a name="l00156"></a><a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#z161_19">00156</a> <font class="keywordtype">void</font> IListBasicManager::eraseAll(<font class="keyword">const</font> IObjectIA &obj) +00157 { +00158 <a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#n0">_List</a>->eraseAll(obj); +00159 } +<a name="l00160"></a><a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#z161_20">00160</a> <font class="keywordtype">void</font> IListBasicManager::erase(<font class="keyword">const</font> IObjectIA *o) +00161 { +00162 <a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#n0">_List</a>->erase(o); +00163 } +<a name="l00164"></a><a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#z161_21">00164</a> <font class="keywordtype">void</font> IListBasicManager::erase(<font class="keyword">const</font> IObjectIA &obj) +00165 { +00166 <a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#n0">_List</a>->erase(obj); +00167 } +00168 +<a name="l00169"></a><a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#z161_22">00169</a> <font class="keywordtype">void</font> IListBasicManager::erase(<a class="code" href="classstd_1_1list.html">std::list<const IObjectIA *></a> &<a class="code" href="namespaceNLAISCRIPT.html#a20">l</a>) +00170 { +00171 <a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#n0">_List</a>->erase(l); +00172 } +<a name="l00173"></a><a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#z161_23">00173</a> <font class="keywordtype">void</font> IListBasicManager::clear() +00174 { +00175 <a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#n0">_List</a>->clear(); +00176 } +00177 +<a name="l00178"></a><a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#z161_29">00178</a> <font class="keywordtype">bool</font> <a class="code" href="chain_8cpp.html#a2">IListBasicManager::isEqual</a>(<font class="keyword">const</font> IBasicObjectIA &b)<font class="keyword"> const </font> +00179 <font class="keyword"> </font>{ +00180 <a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#a0">IListBasicManager</a> &a = (<a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#a0">IListBasicManager</a> &)b; +00181 <font class="keywordflow">return</font> <a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#n0">_List</a>->isEqual(*a._List); +00182 } +00183 +<a name="l00184"></a><a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#z161_24">00184</a> sint32 IListBasicManager::getMethodIndexSize()<font class="keyword"> const</font> +00185 <font class="keyword"> </font>{ +00186 <font class="keywordflow">return</font> IBaseGroupType::getMethodIndexSize() + 0; +00187 } +00188 +<a name="l00189"></a><a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#z161_25">00189</a> <a class="code" href="namespaceNLAIAGENT.html#a1">tQueue</a> IListBasicManager::isMember(<font class="keyword">const</font> IVarName *className,<font class="keyword">const</font> IVarName *methodName,<font class="keyword">const</font> IObjectIA &p)<font class="keyword"> const</font> +00190 <font class="keyword"> </font>{ +00191 <font class="keywordflow">return</font> IBaseGroupType::isMember(className,methodName,p); +00192 } +00193 +<a name="l00194"></a><a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#z161_26">00194</a> IObjectIA::CProcessResult IListBasicManager::runMethodeMember(sint32 h, sint32 m,IObjectIA *p) +00195 { +00196 <font class="keywordflow">return</font> IBaseGroupType::runMethodeMember(h,m,p); +00197 } +00198 +<a name="l00199"></a><a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#z161_27">00199</a> IObjectIA::CProcessResult IListBasicManager::runMethodeMember(sint32 m,IObjectIA *p) +00200 { +00201 <font class="keywordflow">return</font> IBaseGroupType::runMethodeMember(m,p); +00202 } +00203 +00204 <font class="comment">/*</font> +00205 <font class="comment"> ########################</font> +00206 <font class="comment"> class IListManager</font> +00207 <font class="comment"> ########################</font> +00208 <font class="comment">*/</font> +<a name="l00209"></a><a class="code" href="classNLAIAGENT_1_1IListManager.html#a0">00209</a> IListManager::IListManager(IBaseGroupType *<a class="code" href="namespaceNLAISCRIPT.html#a20">l</a>):IListBasicManager(<a class="code" href="namespaceNLAISCRIPT.html#a20">l</a>) +00210 { +00211 +00212 } +00213 +<a name="l00214"></a><a class="code" href="classNLAIAGENT_1_1IListManager.html#a1">00214</a> IListManager::IListManager(<font class="keyword">const</font> IListManager &<a class="code" href="namespaceNLAISCRIPT.html#a20">l</a>):IListBasicManager(<a class="code" href="namespaceNLAISCRIPT.html#a20">l</a>._List) +00215 { +00216 <a class="code" href="namespaceNLAISCRIPT.html#a20">l</a>._List->incRef(); +00217 } +00218 +<a name="l00219"></a><a class="code" href="classNLAIAGENT_1_1IListManager.html#a6">00219</a> IListManager::~IListManager() +00220 { +00221 } +00222 +<a name="l00223"></a><a class="code" href="classNLAIAGENT_1_1IListManager.html#a2">00223</a> <font class="keywordtype">bool</font> <a class="code" href="chain_8cpp.html#a2">IListManager::isEqual</a>(<font class="keyword">const</font> IBasicObjectIA &a)<font class="keyword"> const</font> +00224 <font class="keyword"> </font>{ +00225 <font class="keyword">const</font> <a class="code" href="classNLAIAGENT_1_1IListManager.html#a0">IListManager</a> &<a class="code" href="namespaceNLAISCRIPT.html#a20">l</a> = (<font class="keyword">const</font> <a class="code" href="classNLAIAGENT_1_1IListManager.html#a0">IListManager</a> &)a; +00226 <font class="keywordflow">return</font> <a class="code" href="namespaceNLAISCRIPT.html#a20">l</a>._List == <a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#n0">_List</a>; +00227 } +00228 +<a name="l00229"></a><a class="code" href="classNLAIAGENT_1_1IListManager.html#a3">00229</a> IObjectIA::CProcessResult IListManager::sendMessage(IObjectIA *msg) +00230 { +00231 CIteratorContener itr = <a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#n0">_List</a>->getIterator(); +00232 +00233 <font class="keywordflow">if</font>(itr.isInEnd()) +00234 { +00235 msg->release(); +00236 } +00237 <font class="keywordflow">else</font> +00238 { +00239 <font class="keywordflow">while</font>(!itr.isInEnd()) +00240 { +00241 <a class="code" href="classNLAIAGENT_1_1IObjectIA.html#b0">IObjectIA</a> *obj = (<a class="code" href="classNLAIAGENT_1_1IObjectIA.html#b0">IObjectIA</a> *)(itr++); +00242 obj->sendMessage(msg); +00243 <font class="keywordflow">if</font>(!itr.isInEnd()) msg->incRef(); +00244 } +00245 } +00246 <font class="keywordflow">return</font> IObjectIA::CProcessResult(); +00247 } +00248 +00249 <font class="comment">/*</font> +00250 <font class="comment"> ########################</font> +00251 <font class="comment"> class CVectorGroupManager</font> +00252 <font class="comment"> ########################</font> +00253 <font class="comment">*/</font> +<a name="l00254"></a><a class="code" href="classNLAIAGENT_1_1CVectorGroupManager.html#a0">00254</a> CVectorGroupManager::CVectorGroupManager(sint32 i):IListManager(new CVectorGroupType(i)) +00255 { +00256 } +00257 +<a name="l00258"></a><a class="code" href="classNLAIAGENT_1_1CVectorGroupManager.html#a1">00258</a> CVectorGroupManager::CVectorGroupManager():IListManager(new CVectorGroupType()) +00259 { +00260 } +00261 +<a name="l00262"></a><a class="code" href="classNLAIAGENT_1_1CVectorGroupManager.html#a2">00262</a> CVectorGroupManager::CVectorGroupManager(<font class="keyword">const</font> CVectorGroupManager &<a class="code" href="namespaceNLAISCRIPT.html#a20">l</a>):IListManager(<a class="code" href="namespaceNLAISCRIPT.html#a20">l</a>) +00263 { +00264 } +00265 +<a name="l00266"></a><a class="code" href="classNLAIAGENT_1_1CVectorGroupManager.html#a8">00266</a> CVectorGroupManager::~CVectorGroupManager() +00267 { +00268 } +00269 +<a name="l00270"></a><a class="code" href="classNLAIAGENT_1_1CVectorGroupManager.html#a3">00270</a> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1CIdentType.html">NLAIC::CIdentType</a> &CVectorGroupManager::getType()<font class="keyword"> const</font> +00271 <font class="keyword"> </font>{ +00272 <font class="keywordflow">return</font> <a class="code" href="classNLAIAGENT_1_1CVectorGroupManager.html#p0">IdVectorGroupManager</a>; +00273 } +00274 +<a name="l00275"></a><a class="code" href="classNLAIAGENT_1_1CVectorGroupManager.html#a4">00275</a> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1IBasicType.html">NLAIC::IBasicType</a> *CVectorGroupManager::clone()<font class="keyword"> const</font> +00276 <font class="keyword"> </font>{ +00277 <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="classNLAIAGENT_1_1CVectorGroupManager.html#a1">CVectorGroupManager</a>(*<font class="keyword">this</font>); +00278 <font class="keywordflow">return</font> x; +00279 } +00280 +<a name="l00281"></a><a class="code" href="classNLAIAGENT_1_1CVectorGroupManager.html#a5">00281</a> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1IBasicType.html">NLAIC::IBasicType</a> *CVectorGroupManager::newInstance()<font class="keyword"> const</font> +00282 <font class="keyword"> </font>{ +00283 <font class="keywordflow">return</font> <font class="keyword">new</font> <a class="code" href="classNLAIAGENT_1_1CVectorGroupManager.html#a1">CVectorGroupManager</a>(); +00284 } +00285 +<a name="l00286"></a><a class="code" href="classNLAIAGENT_1_1CVectorGroupManager.html#a6">00286</a> <font class="keywordtype">void</font> CVectorGroupManager::trie() +00287 { +00288 <font class="comment">// TODO : Sort the agent on the ID value.</font> +00289 <font class="keywordflow">throw</font>; +00290 } +00291 +<a name="l00292"></a><a class="code" href="classNLAIAGENT_1_1CVectorGroupManager.html#a7">00292</a> <font class="keyword">const</font> IObjectIA *CVectorGroupManager::getObject(<font class="keyword">const</font> CObjectIdent &)<font class="keyword"> const</font> +00293 <font class="keyword"> </font>{ +00294 <font class="comment">// TODO</font> +00295 <font class="keywordflow">throw</font>; +00296 <font class="keywordflow">return</font> NULL; +00297 } +00298 +00299 <font class="comment">/*</font> +00300 <font class="comment"> ########################</font> +00301 <font class="comment"> class CListGroupManager</font> +00302 <font class="comment"> ########################</font> +00303 <font class="comment">*/</font> +<a name="l00304"></a><a class="code" href="classNLAIAGENT_1_1CListGroupManager.html#a0">00304</a> CListGroupManager::CListGroupManager():IListManager(new CGroupType()) +00305 { +00306 } +00307 +<a name="l00308"></a><a class="code" href="classNLAIAGENT_1_1CListGroupManager.html#a1">00308</a> CListGroupManager::CListGroupManager(<font class="keyword">const</font> CListGroupManager &<a class="code" href="namespaceNLAISCRIPT.html#a20">l</a>):IListManager(<a class="code" href="namespaceNLAISCRIPT.html#a20">l</a>) +00309 { +00310 } +00311 +<a name="l00312"></a><a class="code" href="classNLAIAGENT_1_1CListGroupManager.html#a7">00312</a> CListGroupManager::~CListGroupManager() +00313 { +00314 } +00315 +<a name="l00316"></a><a class="code" href="classNLAIAGENT_1_1CListGroupManager.html#a2">00316</a> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1CIdentType.html">NLAIC::CIdentType</a> &CListGroupManager::getType()<font class="keyword"> const</font> +00317 <font class="keyword"> </font>{ +00318 <font class="keywordflow">return</font> <a class="code" href="classNLAIAGENT_1_1CListGroupManager.html#p0">IdListGroupManager</a>; +00319 } +00320 +<a name="l00321"></a><a class="code" href="classNLAIAGENT_1_1CListGroupManager.html#a3">00321</a> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1IBasicType.html">NLAIC::IBasicType</a> *CListGroupManager::clone()<font class="keyword"> const</font> +00322 <font class="keyword"> </font>{ +00323 <font class="keywordflow">return</font> <font class="keyword">new</font> <a class="code" href="classNLAIAGENT_1_1CListGroupManager.html#a0">CListGroupManager</a>(*<font class="keyword">this</font>); +00324 } +00325 +<a name="l00326"></a><a class="code" href="classNLAIAGENT_1_1CListGroupManager.html#a4">00326</a> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1IBasicType.html">NLAIC::IBasicType</a> *CListGroupManager::newInstance()<font class="keyword"> const</font> +00327 <font class="keyword"> </font>{ +00328 <font class="keywordflow">return</font> <font class="keyword">new</font> <a class="code" href="classNLAIAGENT_1_1CListGroupManager.html#a0">CListGroupManager</a>(); +00329 } +00330 +<a name="l00331"></a><a class="code" href="classNLAIAGENT_1_1CListGroupManager.html#a5">00331</a> <font class="keywordtype">void</font> CListGroupManager::trie() +00332 { +00333 <font class="comment">// TODO : Sort the agent on the ID value.</font> +00334 <font class="keywordflow">throw</font>; +00335 } +00336 +<a name="l00337"></a><a class="code" href="classNLAIAGENT_1_1CListGroupManager.html#a6">00337</a> <font class="keyword">const</font> IObjectIA *CListGroupManager::getObject(<font class="keyword">const</font> CObjectIdent &)<font class="keyword"> const</font> +00338 <font class="keyword"> </font>{ +00339 <font class="comment">// TODO.</font> +00340 <font class="keywordflow">throw</font>; +00341 <font class="keywordflow">return</font> NULL; +00342 } +00343 } +</pre></div> + +<!-- footer --> +<BR><FONT Size=+5> </FONT> +</TD> +<TD WIDTH=15><IMG SRC=http://www.nevrax.org/inc/img/pixel.gif WIDTH=15 HEIGHT=15 BORDER=0 ALT=""></TD> +</TR> +</TABLE> +</BODY> +</HTML> |