diff options
Diffstat (limited to 'docs/doxygen/nel/a02189.html')
-rw-r--r-- | docs/doxygen/nel/a02189.html | 2085 |
1 files changed, 2085 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a02189.html b/docs/doxygen/nel/a02189.html new file mode 100644 index 00000000..68cd0109 --- /dev/null +++ b/docs/doxygen/nel/a02189.html @@ -0,0 +1,2085 @@ +<!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: NLMISC::CEntityId struct Reference</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 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">Data Structures</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">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related Pages</a> | <span class="search"><u>S</u>earch for <input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div> +<h1>NLMISC::CEntityId Struct Reference</h1><code>#include <<a class="el" href="a05673.html">entity_id.h</a>></code> +<p> +<p>Inheritance diagram for NLMISC::CEntityId: +<p><center><img src="a02189.png" usemap="#NLMISC::CEntityId_map" border="0" alt=""></center> +<map name="NLMISC::CEntityId_map"> +<area href="a02188.html" alt="NLAIAGENT::CAgentNumber" shape="rect" coords="0,56,174,80"> +<area href="a02649.html" alt="NLAIAGENT::CIdent" shape="rect" coords="0,112,174,136"> +</map> +<hr><a name="_details"></a><h2>Detailed Description</h2> +Entity identifier <dl compact><dt><b>Author:</b></dt><dd>Sameh Chafik, Vianney Lecroart <p> +Nevrax France </dd></dl> +<dl compact><dt><b>Date:</b></dt><dd>2001 </dd></dl> + +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00042">42</a> of file <a class="el" href="a05673.html">entity_id.h</a>.<table border=0 cellpadding=0 cellspacing=0> +<tr><td></td></tr> +<tr><td colspan=2><br><h2>Public Types</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>enum </td><td class="memItemRight" valign=bottom>{ <br> + <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentw0NLAIAGENT_1_1CIdentw2">DYNAMIC_ID_SIZE</a> = 11, +<a class="el" href="a02189.html#NLAIAGENT_1_1CIdentw0NLAIAGENT_1_1CIdentw1">CREATOR_ID_SIZE</a> = 8, +<a class="el" href="a02189.html#NLAIAGENT_1_1CIdentw0NLAIAGENT_1_1CIdentw4">TYPE_SIZE</a> = 5, +<a class="el" href="a02189.html#NLAIAGENT_1_1CIdentw0NLAIAGENT_1_1CIdentw3">ID_SIZE</a> = 40, +<br> + <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentw0NLAIAGENT_1_1CIdentw5">UNKNOWN_TYPE</a> = (1 << TYPE_SIZE)-1 +<br> + }</td></tr> + +<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a13">uint64</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdenta0">asUint64</a> () const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdenta6">fromString</a> (const char *str)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Read from a debug string, use the same format as <a class="el" href="a02189.html#NLAIAGENT_1_1CIdenta31">toString()</a> (id:type:creator:dynamic) in hexadecimal. <a href="#NLAIAGENT_1_1CIdenta6"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a7">uint8</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdenta7">getCreatorId</a> () const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the persistent creator id. <a href="#NLAIAGENT_1_1CIdenta7"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLMISC_1_1CEntityIda3">getDebugString</a> (std::string &str) const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Have a debug string. <a href="#NLMISC_1_1CEntityIda3"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a7">uint8</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdenta9">getDynamicId</a> () const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the variable routing info. <a href="#NLAIAGENT_1_1CIdenta9"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a13">uint64</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdenta10">getRawId</a> () const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the full id. <a href="#NLAIAGENT_1_1CIdenta10"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a13">uint64</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdenta11">getShortId</a> () const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the local entity number. <a href="#NLAIAGENT_1_1CIdenta11"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a7">uint8</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdenta12">getType</a> () const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the entity type. <a href="#NLAIAGENT_1_1CIdenta12"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a13">uint64</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdenta14">getUniqueId</a> () const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the persistent part of the entity id (the dynamic part in the returned id is 0). <a href="#NLAIAGENT_1_1CIdenta14"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdenta16">isUnknownId</a> () const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Test if the entity id is Unknown. <a href="#NLAIAGENT_1_1CIdenta16"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLMISC_1_1CEntityIda10">load</a> (<a class="el" href="a02270.html">NLMISC::IStream</a> &is)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Load the number from an input stream. <a href="#NLMISC_1_1CEntityIda10"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="a02189.html">CEntityId</a> & </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdenta18">operator++</a> (int)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="a02189.html">CEntityId</a> & </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLMISC_1_1CEntityIda12">operator=</a> (<a class="el" href="a04558.html#a13">uint64</a> p)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="a02189.html">CEntityId</a> & </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLMISC_1_1CEntityIda13">operator=</a> (const <a class="el" href="a02189.html">CEntityId</a> &a)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLMISC_1_1CEntityIda14">save</a> (<a class="el" href="a02270.html">NLMISC::IStream</a> &os)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Save the Id into an output stream. <a href="#NLMISC_1_1CEntityIda14"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdenta25">serial</a> (<a class="el" href="a02270.html">NLMISC::IStream</a> &f) throw (NLMISC::EStream)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdenta26">setCreatorId</a> (<a class="el" href="a04558.html#a7">uint8</a> creatorId)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the persistent creator id. <a href="#NLAIAGENT_1_1CIdenta26"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdenta27">setDynamicId</a> (<a class="el" href="a04558.html#a7">uint8</a> dynId)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the variable routing info. <a href="#NLAIAGENT_1_1CIdenta27"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdenta28">setShortId</a> (<a class="el" href="a04558.html#a13">uint64</a> shortId)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the local entity number. <a href="#NLAIAGENT_1_1CIdenta28"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdenta29">setType</a> (<a class="el" href="a04558.html#a7">uint8</a> <a class="el" href="a04223.html#a581">type</a>)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the entity type. <a href="#NLAIAGENT_1_1CIdenta29"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>std::string </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdenta31">toString</a> () const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">return a string in form "(a:b:c:d)" where a,b,c,d are components of entity id. <a href="#NLAIAGENT_1_1CIdenta31"></a><br><br></td></tr> +<tr><td colspan="2"><div class="groupHeader">Constructor</div></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLMISC_1_1CEntityIdz1939_0">CEntityId</a> (const char *str)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLMISC_1_1CEntityIdz1939_1">CEntityId</a> (const std::string &str)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLMISC_1_1CEntityIdz1939_2">CEntityId</a> (<a class="el" href="a02270.html">NLMISC::IStream</a> &is)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">fill from read stream. <a href="#NLMISC_1_1CEntityIdz1939_2"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLMISC_1_1CEntityIdz1939_3">CEntityId</a> (const <a class="el" href="a02189.html">CEntityId</a> &a)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLMISC_1_1CEntityIdz1939_4">CEntityId</a> (<a class="el" href="a04558.html#a13">uint64</a> p)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLMISC_1_1CEntityIdz1939_5">CEntityId</a> (<a class="el" href="a04558.html#a7">uint8</a> <a class="el" href="a04223.html#a581">type</a>, <a class="el" href="a04558.html#a13">uint64</a> <a class="el" href="a04223.html#a564">id</a>)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLMISC_1_1CEntityIdz1939_6">CEntityId</a> (<a class="el" href="a04558.html#a7">uint8</a> <a class="el" href="a04223.html#a581">type</a>, <a class="el" href="a04558.html#a13">uint64</a> <a class="el" href="a04223.html#a564">id</a>, <a class="el" href="a04558.html#a7">uint8</a> creator, <a class="el" href="a04558.html#a7">uint8</a> dynamic)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLMISC_1_1CEntityIdz1939_7">CEntityId</a> ()</td></tr> + +<tr><td colspan=2><br><h2>Static Public Member Functions</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02189.html">CEntityId</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdente0">getNewEntityId</a> (<a class="el" href="a04558.html#a7">uint8</a> <a class="el" href="a04223.html#a581">type</a>)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Generator of entity ids. <a href="#NLAIAGENT_1_1CIdente0"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdente1">setServiceId</a> (<a class="el" href="a04558.html#a7">uint8</a> sid)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the service id for the generator. <a href="#NLAIAGENT_1_1CIdente1"></a><br><br></td></tr> +<tr><td colspan=2><br><h2>Static Public Attributes</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="a04558.html#a13">uint64</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdents1">MaxEntityId</a> = ((<a class="el" href="a04558.html#a13">uint64</a>)1 << (CEntityId::ID_SIZE + 1)) - (<a class="el" href="a04558.html#a13">uint64</a>)1</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">The maximume of number that we could generate without generate an overtaking exception. <a href="#NLAIAGENT_1_1CIdents1"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="a02189.html">CEntityId</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdents2">Unknown</a></td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Unknow <a class="el" href="a02189.html">CEntityId</a> is similar as an NULL pointer. <a href="#NLAIAGENT_1_1CIdents2"></a><br><br></td></tr> +<tr><td colspan=2><br><h2>Static Protected Attributes</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02189.html">NLMISC::CEntityId</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdentt0">_NextEntityId</a></td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Counter for generation of unique entity ids. <a href="#NLAIAGENT_1_1CIdentt0"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a7">uint8</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdentt1">_ServerId</a> = 0</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">The local num service id of the local machin. <a href="#NLAIAGENT_1_1CIdentt1"></a><br><br></td></tr> +</table> +<hr><h2>Member Enumeration Documentation</h2> +<a class="anchor" name="NLAIAGENT_1_1CIdentw0" doxytag="NLMISC::CEntityId::@67" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> anonymous enum + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +<dl compact><dt><b>Enumeration values: </b></dt><dd> +<table border=0 cellspacing=2 cellpadding=0> +<tr><td valign=top><em><a class="anchor" name="NLAIAGENT_1_1CIdentw0NLAIAGENT_1_1CIdentw2" doxytag="DYNAMIC_ID_SIZE" ></a>DYNAMIC_ID_SIZE</em> </td><td> +</td></tr> +<tr><td valign=top><em><a class="anchor" name="NLAIAGENT_1_1CIdentw0NLAIAGENT_1_1CIdentw1" doxytag="CREATOR_ID_SIZE" ></a>CREATOR_ID_SIZE</em> </td><td> +</td></tr> +<tr><td valign=top><em><a class="anchor" name="NLAIAGENT_1_1CIdentw0NLAIAGENT_1_1CIdentw4" doxytag="TYPE_SIZE" ></a>TYPE_SIZE</em> </td><td> +</td></tr> +<tr><td valign=top><em><a class="anchor" name="NLAIAGENT_1_1CIdentw0NLAIAGENT_1_1CIdentw3" doxytag="ID_SIZE" ></a>ID_SIZE</em> </td><td> +</td></tr> +<tr><td valign=top><em><a class="anchor" name="NLAIAGENT_1_1CIdentw0NLAIAGENT_1_1CIdentw5" doxytag="UNKNOWN_TYPE" ></a>UNKNOWN_TYPE</em> </td><td> +</td></tr> +</table> +</dl> + +<p> +Definition at line <a class="el" href="a05673.html#l00045">45</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +<div class="fragment"><pre>00046 { +00047 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentw0NLAIAGENT_1_1CIdentw2">DYNAMIC_ID_SIZE</a> = 11, +00048 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentw0NLAIAGENT_1_1CIdentw1">CREATOR_ID_SIZE</a> = 8, +00049 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentw0NLAIAGENT_1_1CIdentw4">TYPE_SIZE</a> = 5, +00050 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentw0NLAIAGENT_1_1CIdentw3">ID_SIZE</a> = 40, +00051 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentw0NLAIAGENT_1_1CIdentw5">UNKNOWN_TYPE</a> = (1 << TYPE_SIZE)-1 +00052 }; +</pre></div> </td> + </tr> +</table> +<hr><h2>Constructor & Destructor Documentation</h2> +<a class="anchor" name="NLMISC_1_1CEntityIdz1939_7" doxytag="NLMISC::CEntityId::CEntityId" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> NLMISC::CEntityId::CEntityId </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00123">123</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>, <a class="el" href="a05673.html#l00073">FullId</a>, and <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentw0NLAIAGENT_1_1CIdentw5">UNKNOWN_TYPE</a>. +<p> +Referenced by <a class="el" href="a05673.html#l00200">CEntityId()</a>. +<p> +<div class="fragment"><pre>00124 { +00125 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp3">FullId</a> = 0; +00126 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>.Type = <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentw0NLAIAGENT_1_1CIdentw5">UNKNOWN_TYPE</a>; +00127 +00128 <span class="comment">/*</span> +00129 <span class="comment"> DynamicId = 0;</span> +00130 <span class="comment"> CreatorId = 0;</span> +00131 <span class="comment"> Type = 127;</span> +00132 <span class="comment"> Id = 0;</span> +00133 <span class="comment"> */</span> +00134 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CEntityIdz1939_6" doxytag="NLMISC::CEntityId::CEntityId" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> NLMISC::CEntityId::CEntityId </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a7">uint8</a> </td> + <td class="mdname" nowrap> <em>type</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap><a class="el" href="a04558.html#a13">uint64</a> </td> + <td class="mdname" nowrap> <em>id</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap><a class="el" href="a04558.html#a7">uint8</a> </td> + <td class="mdname" nowrap> <em>creator</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap><a class="el" href="a04558.html#a7">uint8</a> </td> + <td class="mdname" nowrap> <em>dynamic</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00136">136</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>, <a class="el" href="a05646.html#l00244">type</a>, <a class="el" href="a05981.html#l00102">uint64</a>, and <a class="el" href="a05981.html#l00096">uint8</a>. +<p> +<div class="fragment"><pre>00137 { +00138 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>.DynamicId = dynamic; +00139 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>.CreatorId = creator; +00140 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>.Type = <a class="code" href="a04223.html#a581">type</a>; +00141 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>.Id = <span class="keywordtype">id</span>; +00142 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CEntityIdz1939_5" doxytag="NLMISC::CEntityId::CEntityId" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> NLMISC::CEntityId::CEntityId </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a7">uint8</a> </td> + <td class="mdname" nowrap> <em>type</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap><a class="el" href="a04558.html#a13">uint64</a> </td> + <td class="mdname" nowrap> <em>id</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00144">144</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a05672.html#l00038">_ServerId</a>, <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>, <a class="el" href="a05646.html#l00244">type</a>, <a class="el" href="a05981.html#l00102">uint64</a>, and <a class="el" href="a05981.html#l00096">uint8</a>. +<p> +<div class="fragment"><pre>00145 { +00146 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>.Type = <a class="code" href="a04223.html#a581">type</a>; +00147 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>.Id = <span class="keywordtype">id</span>; +00148 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>.CreatorId = <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentt1">_ServerId</a>; +00149 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>.DynamicId = <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentt1">_ServerId</a>; +00150 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CEntityIdz1939_4" doxytag="NLMISC::CEntityId::CEntityId" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> NLMISC::CEntityId::CEntityId </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a13">uint64</a> </td> + <td class="mdname1" valign="top" nowrap> <em>p</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, explicit]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00152">152</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a05673.html#l00073">FullId</a>, and <a class="el" href="a05981.html#l00102">uint64</a>. +<p> +<div class="fragment"><pre>00153 { +00154 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp3">FullId</a> = p; +00155 <span class="comment">/*</span> +00156 <span class="comment"> DynamicId = (p & 0xff);</span> +00157 <span class="comment"> p >>= 8;</span> +00158 <span class="comment"> CreatorId = (p & 0xff);</span> +00159 <span class="comment"> p >>= 8;</span> +00160 <span class="comment"> Type = (p & 0xff);</span> +00161 <span class="comment"> p >>= 8;</span> +00162 <span class="comment"> Id = (p); </span> +00163 <span class="comment"> */</span> +00164 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CEntityIdz1939_3" doxytag="NLMISC::CEntityId::CEntityId" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> NLMISC::CEntityId::CEntityId </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a02189.html">CEntityId</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>a</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00166">166</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a05673.html#l00073">FullId</a>. +<p> +<div class="fragment"><pre>00167 { +00168 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp3">FullId</a> = a.<a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp3">FullId</a>; +00169 <span class="comment">/*</span> +00170 <span class="comment"> DynamicId = a.DynamicId;</span> +00171 <span class="comment"> CreatorId = a.CreatorId; </span> +00172 <span class="comment"> Type = a.Type;</span> +00173 <span class="comment"> Id = a.Id;</span> +00174 <span class="comment"> */</span> +00175 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CEntityIdz1939_2" doxytag="NLMISC::CEntityId::CEntityId" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> NLMISC::CEntityId::CEntityId </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a02270.html">NLMISC::IStream</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>is</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +fill from read stream. +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00178">178</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a05673.html#l00073">FullId</a>, and <a class="el" href="a06462.html#l00232">NLMISC::IStream::serial()</a>. +<p> +<div class="fragment"><pre>00179 { +00180 is.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(FullId); +00181 <span class="comment">/*</span> +00182 <span class="comment"> uint64 p;</span> +00183 <span class="comment"> is.serial(p);</span> +00184 <span class="comment"></span> +00185 <span class="comment"> DynamicId = (p & 0xff);</span> +00186 <span class="comment"> p >>= 8;</span> +00187 <span class="comment"> CreatorId = (p & 0xff);</span> +00188 <span class="comment"> p >>= 8;</span> +00189 <span class="comment"> Type = (p & 0xff);</span> +00190 <span class="comment"> p >>= 8;</span> +00191 <span class="comment"> Id = p;</span> +00192 <span class="comment"> */</span> +00193 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CEntityIdz1939_1" doxytag="NLMISC::CEntityId::CEntityId" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> NLMISC::CEntityId::CEntityId </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const std::string & </td> + <td class="mdname1" valign="top" nowrap> <em>str</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, explicit]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00195">195</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a05673.html#l00488">fromString()</a>. +<p> +<div class="fragment"><pre>00196 { +00197 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta6">fromString</a>(str.c_str()); +00198 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CEntityIdz1939_0" doxytag="NLMISC::CEntityId::CEntityId" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> NLMISC::CEntityId::CEntityId </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const char * </td> + <td class="mdname1" valign="top" nowrap> <em>str</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, explicit]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00200">200</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a05673.html#l00123">CEntityId()</a>, and <a class="el" href="a05673.html#l00488">fromString()</a>. +<p> +<div class="fragment"><pre>00201 { +00202 <a class="code" href="a02189.html#NLMISC_1_1CEntityIdz1939_7">CEntityId</a> (); +00203 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta6">fromString</a>(str); +00204 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Member Function Documentation</h2> +<a class="anchor" name="NLAIAGENT_1_1CIdenta0" doxytag="NLMISC::CEntityId::asUint64" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a13">uint64</a> NLMISC::CEntityId::asUint64 </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00401">401</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a05673.html#l00073">FullId</a>, and <a class="el" href="a05981.html#l00102">uint64</a>. +<p> +<div class="fragment"><pre>00402 { +00403 <span class="keywordflow">return</span> <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp3">FullId</a>; +00404 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdenta6" doxytag="NLMISC::CEntityId::fromString" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::CEntityId::fromString </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const char * </td> + <td class="mdname1" valign="top" nowrap> <em>str</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Read from a debug string, use the same format as <a class="el" href="a02189.html#NLAIAGENT_1_1CIdenta31">toString()</a> (id:type:creator:dynamic) in hexadecimal. +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00488">488</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>, <a class="el" href="a05981.html#l00107">NL_I64</a>, <a class="el" href="a05646.html#l00244">type</a>, <a class="el" href="a05981.html#l00105">uint</a>, and <a class="el" href="a05981.html#l00102">uint64</a>. +<p> +Referenced by <a class="el" href="a05673.html#l00195">CEntityId()</a>, and <a class="el" href="a06645.html#l01892">NLNET::createMessage()</a>. +<p> +<div class="fragment"><pre>00490 { +00491 <a class="code" href="a04558.html#a13">uint64</a> <span class="keywordtype">id</span>; +00492 <a class="code" href="a04558.html#a15">uint</a> <a class="code" href="a04223.html#a581">type</a>; +00493 <a class="code" href="a04558.html#a15">uint</a> creatorId; +00494 <a class="code" href="a04558.html#a15">uint</a> dynamicId; +00495 +00496 <span class="keywordflow">if</span> (sscanf(str, <span class="stringliteral">"(%"</span>NL_I64<span class="stringliteral">"x:%x:%x:%x)"</span>, &<span class="keywordtype">id</span>, &type, &creatorId, &dynamicId) != 4) +00497 { +00498 *<span class="keyword">this</span> = <a class="code" href="a02189.html#NLAIAGENT_1_1CIdents2">Unknown</a>; +00499 <span class="keywordflow">return</span>; +00500 } +00501 +00502 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>.Id = <span class="keywordtype">id</span>; +00503 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>.Type = <a class="code" href="a04223.html#a581">type</a>; +00504 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>.CreatorId = creatorId; +00505 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>.DynamicId = dynamicId; +00506 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdenta7" doxytag="NLMISC::CEntityId::getCreatorId" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a7">uint8</a> NLMISC::CEntityId::getCreatorId </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the persistent creator id. +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00245">245</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>, and <a class="el" href="a05981.html#l00096">uint8</a>. +<p> +Referenced by <a class="el" href="a05805.html#l00090">NLAIAGENT::CAgentNumber::operator<()</a>. +<p> +<div class="fragment"><pre>00246 { +00247 <span class="keywordflow">return</span> <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>.CreatorId; +00248 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CEntityIda3" doxytag="NLMISC::CEntityId::getDebugString" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::CEntityId::getDebugString </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">std::string & </td> + <td class="mdname1" valign="top" nowrap> <em>str</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Have a debug string. +<p> + +<p> +Reimplemented in <a class="el" href="a02649.html#NLAIAGENT_1_1CIdenta8">NLAIAGENT::CIdent</a>. +<p> +Definition at line <a class="el" href="a05673.html#l00509">509</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>, <a class="el" href="a05981.html#l00104">sint</a>, <a class="el" href="a05981.html#l00102">uint64</a>, and <a class="el" href="a05646.html#l00236">x</a>. +<p> +Referenced by <a class="el" href="a05803.html#l00403">NLAIAGENT::CNumericIndex::getDebugString()</a>, <a class="el" href="a05411.html#l00096">NLAIAGENT::CProxyAgentMail::getDebugString()</a>, and <a class="el" href="a05673.html#l00480">toString()</a>. +<p> +<div class="fragment"><pre>00511 { +00512 <span class="keywordtype">char</span> b[256]; +00513 memset(b,0,255); +00514 memset(b,<span class="charliteral">'0'</span>,19); +00515 <a class="code" href="a04558.html#a14">sint</a> n; +00516 +00517 <a class="code" href="a04558.html#a13">uint64</a> <a class="code" href="a04223.html#a572">x</a> = <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>.Id; +00518 <span class="keywordtype">char</span> baseTable[] = <span class="stringliteral">"0123456789abcdef"</span>; +00519 <span class="keywordflow">for</span>(n = 10; n < 20; n ++) +00520 { +00521 b[19 - n] = baseTable[(<a class="code" href="a04223.html#a572">x</a> & 15)]; +00522 <a class="code" href="a04223.html#a572">x</a> >>= 4; +00523 } +00524 b[19 - 9] = <span class="charliteral">':'</span>; +00525 +00526 <a class="code" href="a04223.html#a572">x</a> = <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>.Type; +00527 <span class="keywordflow">for</span>(n = 7; n < 9; n ++) +00528 { +00529 b[19 - n] = baseTable[(<a class="code" href="a04223.html#a572">x</a> & 15)]; +00530 <a class="code" href="a04223.html#a572">x</a> >>= 4; +00531 } +00532 b[19 - 6] = <span class="charliteral">':'</span>; +00533 +00534 <a class="code" href="a04223.html#a572">x</a> = <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>.CreatorId; +00535 <span class="keywordflow">for</span>(n = 4; n < 6; n ++) +00536 { +00537 b[19 - n] = baseTable[(<a class="code" href="a04223.html#a572">x</a> & 15)]; +00538 <a class="code" href="a04223.html#a572">x</a> >>= 4; +00539 } +00540 b[19 - 3] = <span class="charliteral">':'</span>; +00541 +00542 <a class="code" href="a04223.html#a572">x</a> = <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>.DynamicId; +00543 <span class="keywordflow">for</span>(n = 1; n < 3; n ++) +00544 { +00545 b[19 - n] = baseTable[(<a class="code" href="a04223.html#a572">x</a> & 15)]; +00546 <a class="code" href="a04223.html#a572">x</a> >>= 4; +00547 } +00548 str += <span class="stringliteral">"0x"</span> + std::string(b); +00549 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdenta9" doxytag="NLMISC::CEntityId::getDynamicId" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a7">uint8</a> NLMISC::CEntityId::getDynamicId </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the variable routing info. +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00233">233</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>, and <a class="el" href="a05981.html#l00096">uint8</a>. +<p> +Referenced by <a class="el" href="a05805.html#l00090">NLAIAGENT::CAgentNumber::operator<()</a>. +<p> +<div class="fragment"><pre>00234 { +00235 <span class="keywordflow">return</span> <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>.DynamicId; +00236 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdente0" doxytag="NLMISC::CEntityId::getNewEntityId" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a02189.html">CEntityId</a> NLMISC::CEntityId::getNewEntityId </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a7">uint8</a> </td> + <td class="mdname1" valign="top" nowrap> <em>type</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, static]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Generator of entity ids. +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00109">109</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a05672.html#l00036">_NextEntityId</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a05673.html#l00263">setType()</a>, <a class="el" href="a05646.html#l00244">type</a>, and <a class="el" href="a05981.html#l00096">uint8</a>. +<p> +<div class="fragment"><pre>00110 { +00111 <a class="code" href="a04199.html#a6">nlassert</a>(_NextEntityId != Unknown ); <span class="comment">// type may be Unknown, so isUnknownId() would return true</span> +00112 <a class="code" href="a02189.html">NLMISC::CEntityId</a> <span class="keywordtype">id</span> = <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentt0">_NextEntityId</a>++; +00113 <span class="keywordtype">id</span>.<a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta29">setType</a>( type ); +00114 <span class="keywordflow">return</span> <span class="keywordtype">id</span>; +00115 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdenta10" doxytag="NLMISC::CEntityId::getRawId" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a13">uint64</a> NLMISC::CEntityId::getRawId </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the full id. +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00212">212</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a05673.html#l00073">FullId</a>, and <a class="el" href="a05981.html#l00102">uint64</a>. +<p> +<div class="fragment"><pre>00213 { +00214 <span class="keywordflow">return</span> <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp3">FullId</a>; +00215 <span class="comment">/*</span> +00216 <span class="comment"> return (uint64)*this;</span> +00217 <span class="comment"> */</span> +00218 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdenta11" doxytag="NLMISC::CEntityId::getShortId" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a13">uint64</a> NLMISC::CEntityId::getShortId </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the local entity number. +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00221">221</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>, and <a class="el" href="a05981.html#l00102">uint64</a>. +<p> +Referenced by <a class="el" href="a05805.html#l00090">NLAIAGENT::CAgentNumber::operator<()</a>. +<p> +<div class="fragment"><pre>00222 { +00223 <span class="keywordflow">return</span> <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>.Id; +00224 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdenta12" doxytag="NLMISC::CEntityId::getType" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a7">uint8</a> NLMISC::CEntityId::getType </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">void </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the entity type. +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00257">257</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>, and <a class="el" href="a05981.html#l00096">uint8</a>. +<p> +Referenced by <a class="el" href="a05475.html#l00473">NLAIAGENT::IRefrence::IRefrence()</a>, <a class="el" href="a05805.html#l00085">NLAIAGENT::CAgentNumber::isAgentId()</a>, and <a class="el" href="a05805.html#l00121">NLAIAGENT::CAgentNumber::setTypeAt()</a>. +<p> +<div class="fragment"><pre>00258 { +00259 <span class="keywordflow">return</span> (<a class="code" href="a04558.html#a7">uint8</a>)<a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>.Type; +00260 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdenta14" doxytag="NLMISC::CEntityId::getUniqueId" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a13">uint64</a> NLMISC::CEntityId::getUniqueId </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the persistent part of the entity id (the dynamic part in the returned id is 0). +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00269">269</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a05673.html#l00073">FullId</a>, and <a class="el" href="a05981.html#l00102">uint64</a>. +<p> +Referenced by <a class="el" href="a05673.html#l00306">operator<()</a>, and <a class="el" href="a05673.html#l00331">operator>()</a>. +<p> +<div class="fragment"><pre>00270 { +00271 <a class="code" href="a02189.html">CEntityId</a> <span class="keywordtype">id</span>; +00272 <span class="keywordtype">id</span>.FullId = <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp3">FullId</a>; +00273 <span class="keywordtype">id</span>.DetailedId.DynamicId = 0; +00274 <span class="keywordflow">return</span> <span class="keywordtype">id</span>.FullId; +00275 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdenta16" doxytag="NLMISC::CEntityId::isUnknownId" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> bool NLMISC::CEntityId::isUnknownId </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Test if the entity id is Unknown. +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00278">278</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>, and <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentw0NLAIAGENT_1_1CIdentw5">UNKNOWN_TYPE</a>. +<p> +<div class="fragment"><pre>00279 { +00280 <span class="keywordflow">return</span> <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>.Type == <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentw0NLAIAGENT_1_1CIdentw5">UNKNOWN_TYPE</a>; +00281 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CEntityIda10" doxytag="NLMISC::CEntityId::load" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::CEntityId::load </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a02270.html">NLMISC::IStream</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>is</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Load the number from an input stream. +<p> + +<p> +Reimplemented in <a class="el" href="a02649.html#NLAIAGENT_1_1CIdenta17">NLAIAGENT::CIdent</a>. +<p> +Definition at line <a class="el" href="a05673.html#l00443">443</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a05673.html#l00073">FullId</a>, and <a class="el" href="a06462.html#l00232">NLMISC::IStream::serial()</a>. +<p> +Referenced by <a class="el" href="a05803.html#l00398">NLAIAGENT::CNumericIndex::load()</a>, and <a class="el" href="a05673.html#l00462">serial()</a>. +<p> +<div class="fragment"><pre>00445 { +00446 is.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(FullId); +00447 <span class="comment">/*</span> +00448 <span class="comment"> uint64 p;</span> +00449 <span class="comment"> is.serial(p);</span> +00450 <span class="comment"></span> +00451 <span class="comment"> DynamicId = (uint64)(p & 0xff);</span> +00452 <span class="comment"> p >>= 8;</span> +00453 <span class="comment"> CreatorId = (uint64)(p & 0xff);</span> +00454 <span class="comment"> p >>= 8;</span> +00455 <span class="comment"> Type = (uint64)(p & 0xff);</span> +00456 <span class="comment"> p >>= 8;</span> +00457 <span class="comment"> Id = (uint64)(p);</span> +00458 <span class="comment"> */</span> +00459 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdentz1941_0" doxytag="NLMISC::CEntityId::operator!=" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> bool NLMISC::CEntityId::operator!= </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a02189.html">CEntityId</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>a</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00301">301</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +<div class="fragment"><pre>00302 { +00303 <span class="keywordflow">return</span> !((*this) == a); +00304 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdenta18" doxytag="NLMISC::CEntityId::operator++" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> const <a class="el" href="a02189.html">CEntityId</a>& NLMISC::CEntityId::operator++ </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">int </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00358">358</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>, <a class="el" href="a05672.html#l00034">MaxEntityId</a>, <a class="el" href="a05981.html#l00107">NL_I64</a>, and <a class="el" href="a05622.html#l00154">nlerror</a>. +<p> +<div class="fragment"><pre>00359 { +00360 <span class="keywordflow">if</span>(<a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>.Id < <a class="code" href="a02189.html#NLAIAGENT_1_1CIdents1">MaxEntityId</a>) +00361 { +00362 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>.Id ++; +00363 } +00364 <span class="keywordflow">else</span> +00365 { +00366 <a class="code" href="a04199.html#a3">nlerror</a> (<span class="stringliteral">"CEntityId looped (max was %"</span>NL_I64<span class="stringliteral">"d"</span>, MaxEntityId); +00367 } +00368 <span class="keywordflow">return</span> *<span class="keyword">this</span>; +00369 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdentz1941_1" doxytag="NLMISC::CEntityId::operator<" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> bool NLMISC::CEntityId::operator< </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a02189.html">CEntityId</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>a</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00306">306</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a05673.html#l00269">getUniqueId()</a>. +<p> +<div class="fragment"><pre>00308 { +00309 <span class="keywordflow">return</span> <a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta14">getUniqueId</a>() < a.<a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta14">getUniqueId</a>(); +00310 +00311 <span class="comment">/*</span> +00312 <span class="comment"> if (Type < a.Type)</span> +00313 <span class="comment"> {</span> +00314 <span class="comment"> return true;</span> +00315 <span class="comment"> }</span> +00316 <span class="comment"> else if (Type == a.Type)</span> +00317 <span class="comment"> {</span> +00318 <span class="comment"> if (Id < a.Id)</span> +00319 <span class="comment"> {</span> +00320 <span class="comment"> return true;</span> +00321 <span class="comment"> }</span> +00322 <span class="comment"> else if (Id == a.Id)</span> +00323 <span class="comment"> {</span> +00324 <span class="comment"> return (CreatorId < a.CreatorId);</span> +00325 <span class="comment"> }</span> +00326 <span class="comment"> } </span> +00327 <span class="comment"> return false;</span> +00328 <span class="comment"> */</span> +00329 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CEntityIda12" doxytag="NLMISC::CEntityId::operator=" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> const <a class="el" href="a02189.html">CEntityId</a>& NLMISC::CEntityId::operator= </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a13">uint64</a> </td> + <td class="mdname1" valign="top" nowrap> <em>p</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00383">383</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a05673.html#l00073">FullId</a>, and <a class="el" href="a05981.html#l00102">uint64</a>. +<p> +<div class="fragment"><pre>00384 { +00385 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp3">FullId</a> = p; +00386 <span class="comment">/*</span> +00387 <span class="comment"> DynamicId = (uint64)(p & 0xff);</span> +00388 <span class="comment"> p >>= 8;</span> +00389 <span class="comment"> CreatorId = (uint64)(p & 0xff);</span> +00390 <span class="comment"> p >>= 8;</span> +00391 <span class="comment"> Type = (uint64)(p & 0xff);</span> +00392 <span class="comment"> p >>= 8;</span> +00393 <span class="comment"> Id = (uint64)(p);</span> +00394 <span class="comment"> */</span> +00395 <span class="keywordflow">return</span> *<span class="keyword">this</span>; +00396 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CEntityIda13" doxytag="NLMISC::CEntityId::operator=" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> const <a class="el" href="a02189.html">CEntityId</a>& NLMISC::CEntityId::operator= </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a02189.html">CEntityId</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>a</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00371">371</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a05673.html#l00073">FullId</a>. +<p> +<div class="fragment"><pre>00372 { +00373 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp3">FullId</a> = a.<a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp3">FullId</a>; +00374 <span class="comment">/*</span> +00375 <span class="comment"> DynamicId = a.DynamicId;</span> +00376 <span class="comment"> CreatorId = a.CreatorId;</span> +00377 <span class="comment"> Type = a.Type;</span> +00378 <span class="comment"> Id = a.Id;</span> +00379 <span class="comment"> */</span> +00380 <span class="keywordflow">return</span> *<span class="keyword">this</span>; +00381 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdentz1941_2" doxytag="NLMISC::CEntityId::operator==" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> bool NLMISC::CEntityId::operator== </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a02189.html">CEntityId</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>a</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00289">289</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>, and <a class="el" href="a05673.html#l00073">FullId</a>. +<p> +<div class="fragment"><pre>00291 { +00292 +00293 <a class="code" href="a02189.html">CEntityId</a> testId ( FullId ^ a.<a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp3">FullId</a> ); +00294 testId.<a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>.DynamicId = 0; +00295 <span class="keywordflow">return</span> testId.<a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp3">FullId</a> == 0; +00296 +00297 <span class="comment">/*</span> +00298 <span class="comment"> return (Id == a.DetailedId.Id && DetailedId.CreatorId == a.DetailedId.CreatorId && DetailedId.Type == a.DetailedId.Type);</span> +00299 <span class="comment"> */</span> +00300 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdentz1941_3" doxytag="NLMISC::CEntityId::operator>" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> bool NLMISC::CEntityId::operator> </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a02189.html">CEntityId</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>a</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00331">331</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a05673.html#l00269">getUniqueId()</a>. +<p> +<div class="fragment"><pre>00333 { +00334 <span class="keywordflow">return</span> <a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta14">getUniqueId</a>() > a.<a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta14">getUniqueId</a>(); +00335 +00336 <span class="comment">/*</span> +00337 <span class="comment"> if (Type > a.Type)</span> +00338 <span class="comment"> {</span> +00339 <span class="comment"> return true;</span> +00340 <span class="comment"> }</span> +00341 <span class="comment"> else if (Type == a.Type)</span> +00342 <span class="comment"> {</span> +00343 <span class="comment"> if (Id > a.Id)</span> +00344 <span class="comment"> {</span> +00345 <span class="comment"> return true;</span> +00346 <span class="comment"> }</span> +00347 <span class="comment"> else if (Id == a.Id)</span> +00348 <span class="comment"> {</span> +00349 <span class="comment"> return (CreatorId > a.CreatorId);</span> +00350 <span class="comment"> }</span> +00351 <span class="comment"> }</span> +00352 <span class="comment"> // lesser</span> +00353 <span class="comment"> return false;</span> +00354 <span class="comment"> */</span> +00355 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CEntityIda14" doxytag="NLMISC::CEntityId::save" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::CEntityId::save </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a02270.html">NLMISC::IStream</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>os</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Save the Id into an output stream. +<p> + +<p> +Reimplemented in <a class="el" href="a02649.html#NLAIAGENT_1_1CIdenta24">NLAIAGENT::CIdent</a>. +<p> +Definition at line <a class="el" href="a05673.html#l00426">426</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a05673.html#l00073">FullId</a>, and <a class="el" href="a06462.html#l00232">NLMISC::IStream::serial()</a>. +<p> +Referenced by <a class="el" href="a05803.html#l00392">NLAIAGENT::CNumericIndex::save()</a>, <a class="el" href="a05411.html#l00066">NLAIAGENT::CProxyAgentMail::save()</a>, and <a class="el" href="a05673.html#l00462">serial()</a>. +<p> +<div class="fragment"><pre>00428 { +00429 os.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(FullId); +00430 <span class="comment">/*</span> +00431 <span class="comment"> uint64 p = Id;</span> +00432 <span class="comment"> p <<= 8;</span> +00433 <span class="comment"> p |= (uint64)Type;</span> +00434 <span class="comment"> p <<= 8;</span> +00435 <span class="comment"> p |= (uint64)CreatorId;</span> +00436 <span class="comment"> p <<= 8;</span> +00437 <span class="comment"> p |= (uint64)DynamicId;</span> +00438 <span class="comment"> os.serial(p);</span> +00439 <span class="comment"> */</span> +00440 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdenta25" doxytag="NLMISC::CEntityId::serial" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::CEntityId::serial </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a02270.html">NLMISC::IStream</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>f</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> throw (<a class="el" href="a03781.html">NLMISC::EStream</a>)<code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00462">462</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a05673.html#l00443">load()</a>, and <a class="el" href="a05673.html#l00426">save()</a>. +<p> +<div class="fragment"><pre>00464 { +00465 <span class="keywordflow">if</span> (f.<a class="code" href="a02270.html#NLMISC_1_1IStreama0">isReading</a> ()) +00466 { +00467 <a class="code" href="a02189.html#NLMISC_1_1CEntityIda10">load</a> (f); +00468 } +00469 <span class="keywordflow">else</span> +00470 { +00471 <a class="code" href="a02189.html#NLMISC_1_1CEntityIda14">save</a> (f); +00472 } +00473 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdenta26" doxytag="NLMISC::CEntityId::setCreatorId" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::CEntityId::setCreatorId </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a7">uint8</a> </td> + <td class="mdname1" valign="top" nowrap> <em>creatorId</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the persistent creator id. +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00251">251</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>, and <a class="el" href="a05981.html#l00096">uint8</a>. +<p> +Referenced by <a class="el" href="a05668.html#l00313">NLMISC::CEntityIdTranslator::checkEntity()</a>, <a class="el" href="a05949.html#l00076">NLLOGIC::CLogicEventMessage::CLogicEventMessage()</a>, <a class="el" href="a05954.html#l00316">NLLOGIC::CLogicStateMachine::displayVariables()</a>, <a class="el" href="a05668.html#l00126">NLMISC::CEntityIdTranslator::getByEntity()</a>, <a class="el" href="a05668.html#l00493">NLMISC::CEntityIdTranslator::getEntityIdInfo()</a>, <a class="el" href="a05668.html#l00535">NLMISC::CEntityIdTranslator::getEntityNameStringId()</a>, <a class="el" href="a05668.html#l00571">NLMISC::CEntityIdTranslator::isEntityOnline()</a>, <a class="el" href="a05668.html#l00687">NLMISC::NLMISC_COMMAND()</a>, <a class="el" href="a05668.html#l00267">NLMISC::CEntityIdTranslator::registerEntity()</a>, <a class="el" href="a05668.html#l00553">NLMISC::CEntityIdTranslator::setEntityOnline()</a>, <a class="el" href="a05421.html#l00072">NLAILINK::setLocalServerID()</a>, <a class="el" href="a05673.html#l00101">setServiceId()</a>, and <a class="el" href="a05668.html#l00292">NLMISC::CEntityIdTranslator::unregisterEntity()</a>. +<p> +<div class="fragment"><pre>00252 { +00253 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>.CreatorId = creatorId; +00254 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdenta27" doxytag="NLMISC::CEntityId::setDynamicId" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::CEntityId::setDynamicId </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a7">uint8</a> </td> + <td class="mdname1" valign="top" nowrap> <em>dynId</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the variable routing info. +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00239">239</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>, and <a class="el" href="a05981.html#l00096">uint8</a>. +<p> +Referenced by <a class="el" href="a05668.html#l00313">NLMISC::CEntityIdTranslator::checkEntity()</a>, <a class="el" href="a05949.html#l00076">NLLOGIC::CLogicEventMessage::CLogicEventMessage()</a>, <a class="el" href="a05954.html#l00316">NLLOGIC::CLogicStateMachine::displayVariables()</a>, <a class="el" href="a05668.html#l00126">NLMISC::CEntityIdTranslator::getByEntity()</a>, <a class="el" href="a05668.html#l00493">NLMISC::CEntityIdTranslator::getEntityIdInfo()</a>, <a class="el" href="a05668.html#l00535">NLMISC::CEntityIdTranslator::getEntityNameStringId()</a>, <a class="el" href="a05668.html#l00571">NLMISC::CEntityIdTranslator::isEntityOnline()</a>, <a class="el" href="a05668.html#l00687">NLMISC::NLMISC_COMMAND()</a>, <a class="el" href="a05668.html#l00267">NLMISC::CEntityIdTranslator::registerEntity()</a>, <a class="el" href="a05668.html#l00553">NLMISC::CEntityIdTranslator::setEntityOnline()</a>, <a class="el" href="a05421.html#l00072">NLAILINK::setLocalServerID()</a>, <a class="el" href="a05673.html#l00101">setServiceId()</a>, and <a class="el" href="a05668.html#l00292">NLMISC::CEntityIdTranslator::unregisterEntity()</a>. +<p> +<div class="fragment"><pre>00240 { +00241 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>.DynamicId = dynId; +00242 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdente1" doxytag="NLMISC::CEntityId::setServiceId" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::CEntityId::setServiceId </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a7">uint8</a> </td> + <td class="mdname1" valign="top" nowrap> <em>sid</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, static]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the service id for the generator. +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00101">101</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a05672.html#l00036">_NextEntityId</a>, <a class="el" href="a05672.html#l00038">_ServerId</a>, <a class="el" href="a05673.html#l00251">setCreatorId()</a>, <a class="el" href="a05673.html#l00239">setDynamicId()</a>, and <a class="el" href="a05981.html#l00096">uint8</a>. +<p> +Referenced by <a class="el" href="a06364.html#l00419">NLNET::IService::main()</a>, and <a class="el" href="a05421.html#l00072">NLAILINK::setLocalServerID()</a>. +<p> +<div class="fragment"><pre>00102 { +00103 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentt0">_NextEntityId</a>.<a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta27">setDynamicId</a>( sid ); +00104 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentt0">_NextEntityId</a>.<a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta26">setCreatorId</a>( sid ); +00105 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentt1">_ServerId</a> = sid; +00106 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdenta28" doxytag="NLMISC::CEntityId::setShortId" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::CEntityId::setShortId </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a13">uint64</a> </td> + <td class="mdname1" valign="top" nowrap> <em>shortId</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the local entity number. +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00227">227</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>, and <a class="el" href="a05981.html#l00102">uint64</a>. +<p> +<div class="fragment"><pre>00228 { +00229 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>.Id = shortId; +00230 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdenta29" doxytag="NLMISC::CEntityId::setType" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::CEntityId::setType </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a7">uint8</a> </td> + <td class="mdname1" valign="top" nowrap> <em>type</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the entity type. +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00263">263</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>, <a class="el" href="a05646.html#l00244">type</a>, and <a class="el" href="a05981.html#l00096">uint8</a>. +<p> +Referenced by <a class="el" href="a05805.html#l00053">NLAIAGENT::CAgentNumber::CAgentNumber()</a>, <a class="el" href="a05949.html#l00076">NLLOGIC::CLogicEventMessage::CLogicEventMessage()</a>, <a class="el" href="a05954.html#l00316">NLLOGIC::CLogicStateMachine::displayVariables()</a>, <a class="el" href="a05673.html#l00109">getNewEntityId()</a>, and <a class="el" href="a05805.html#l00121">NLAIAGENT::CAgentNumber::setTypeAt()</a>. +<p> +<div class="fragment"><pre>00264 { +00265 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>.Type = <a class="code" href="a04223.html#a581">type</a>; +00266 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdenta31" doxytag="NLMISC::CEntityId::toString" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> std::string NLMISC::CEntityId::toString </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +return a string in form "(a:b:c:d)" where a,b,c,d are components of entity id. +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00480">480</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a05673.html#l00509">getDebugString()</a>. +<p> +Referenced by <a class="el" href="a05668.html#l00313">NLMISC::CEntityIdTranslator::checkEntity()</a>, <a class="el" href="a05668.html#l00493">NLMISC::CEntityIdTranslator::getEntityIdInfo()</a>, <a class="el" href="a05668.html#l00571">NLMISC::CEntityIdTranslator::isEntityOnline()</a>, <a class="el" href="a05668.html#l00633">NLMISC::NLMISC_COMMAND()</a>, <a class="el" href="a05668.html#l00267">NLMISC::CEntityIdTranslator::registerEntity()</a>, <a class="el" href="a05668.html#l00553">NLMISC::CEntityIdTranslator::setEntityOnline()</a>, and <a class="el" href="a05668.html#l00292">NLMISC::CEntityIdTranslator::unregisterEntity()</a>. +<p> +<div class="fragment"><pre>00481 { +00482 std::string <span class="keywordtype">id</span>; +00483 <a class="code" href="a02189.html#NLMISC_1_1CEntityIda3">getDebugString</a> (<span class="keywordtype">id</span>); +00484 <span class="keywordflow">return</span> <span class="stringliteral">"("</span> + <span class="keywordtype">id</span> + <span class="stringliteral">")"</span>; +00485 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Field Documentation</h2> +<a class="anchor" name="NLAIAGENT_1_1CIdentt0" doxytag="NLMISC::CEntityId::_NextEntityId" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a02189.html">CEntityId</a> <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentt0">NLMISC::CEntityId::_NextEntityId</a><code> [static, protected]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Counter for generation of unique entity ids. +<p> + +<p> +Definition at line <a class="el" href="a05672.html#l00036">36</a> of file <a class="el" href="a05672.html">entity_id.cpp</a>. +<p> +Referenced by <a class="el" href="a05673.html#l00109">getNewEntityId()</a>, and <a class="el" href="a05673.html#l00101">setServiceId()</a>. </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdentt1" doxytag="NLMISC::CEntityId::_ServerId" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a7">uint8</a> <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentt1">NLMISC::CEntityId::_ServerId</a> = 0<code> [static, protected]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +The local num service id of the local machin. +<p> + +<p> +Definition at line <a class="el" href="a05672.html#l00038">38</a> of file <a class="el" href="a05672.html">entity_id.cpp</a>. +<p> +Referenced by <a class="el" href="a05673.html#l00144">CEntityId()</a>, and <a class="el" href="a05673.html#l00101">setServiceId()</a>. </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdentp0" doxytag="NLMISC::CEntityId::CreatorId" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a13">uint64</a> <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentp0">NLMISC::CEntityId::CreatorId</a><code> [protected]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Id of the service who created the entity (persistent). +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00066">66</a> of file <a class="el" href="a05673.html">entity_id.h</a>. </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdentp1" doxytag="NLMISC::CEntityId::DetailedId" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> struct { ... } <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentp1">NLMISC::CEntityId::DetailedId</a><code> [protected]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Referenced by <a class="el" href="a05673.html#l00123">CEntityId()</a>, <a class="el" href="a05673.html#l00488">fromString()</a>, <a class="el" href="a05673.html#l00245">getCreatorId()</a>, <a class="el" href="a05673.html#l00509">getDebugString()</a>, <a class="el" href="a05673.html#l00233">getDynamicId()</a>, <a class="el" href="a05673.html#l00221">getShortId()</a>, <a class="el" href="a05673.html#l00257">getType()</a>, <a class="el" href="a05673.html#l00278">isUnknownId()</a>, <a class="el" href="a05673.html#l00358">operator++()</a>, <a class="el" href="a05673.html#l00289">operator==()</a>, <a class="el" href="a05673.html#l00251">setCreatorId()</a>, <a class="el" href="a05673.html#l00239">setDynamicId()</a>, <a class="el" href="a05673.html#l00227">setShortId()</a>, and <a class="el" href="a05673.html#l00263">setType()</a>. </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdentp2" doxytag="NLMISC::CEntityId::DynamicId" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a13">uint64</a> <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentp2">NLMISC::CEntityId::DynamicId</a><code> [protected]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Id of the service where the entity is (variable routing info). +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00064">64</a> of file <a class="el" href="a05673.html">entity_id.h</a>. </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdentp3" doxytag="NLMISC::CEntityId::FullId" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a13">uint64</a> <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentp3">NLMISC::CEntityId::FullId</a><code> [protected]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00073">73</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +Referenced by <a class="el" href="a05673.html#l00401">asUint64()</a>, <a class="el" href="a05673.html#l00123">CEntityId()</a>, <a class="el" href="a05673.html#l00212">getRawId()</a>, <a class="el" href="a05673.html#l00269">getUniqueId()</a>, <a class="el" href="a05673.html#l00443">load()</a>, <a class="el" href="a05673.html#l00371">operator=()</a>, <a class="el" href="a05673.html#l00289">operator==()</a>, and <a class="el" href="a05673.html#l00426">save()</a>. </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdentp4" doxytag="NLMISC::CEntityId::Id" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a13">uint64</a> <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentp4">NLMISC::CEntityId::Id</a><code> [protected]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Local entity number (persistent). +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00070">70</a> of file <a class="el" href="a05673.html">entity_id.h</a>. </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdents1" doxytag="NLMISC::CEntityId::MaxEntityId" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> const <a class="el" href="a04558.html#a13">uint64</a> <a class="el" href="a02189.html#NLAIAGENT_1_1CIdents1">NLMISC::CEntityId::MaxEntityId</a> = ((<a class="el" href="a04558.html#a13">uint64</a>)1 << (CEntityId::ID_SIZE + 1)) - (<a class="el" href="a04558.html#a13">uint64</a>)1<code> [static]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +The maximume of number that we could generate without generate an overtaking exception. +<p> + +<p> +Definition at line <a class="el" href="a05672.html#l00034">34</a> of file <a class="el" href="a05672.html">entity_id.cpp</a>. +<p> +Referenced by <a class="el" href="a05673.html#l00358">operator++()</a>. </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdentp5" doxytag="NLMISC::CEntityId::Type" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a13">uint64</a> <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentp5">NLMISC::CEntityId::Type</a><code> [protected]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Type of the entity (persistent). +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00068">68</a> of file <a class="el" href="a05673.html">entity_id.h</a>. </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdents2" doxytag="NLMISC::CEntityId::Unknown" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> const <a class="el" href="a02189.html">CEntityId</a> <a class="el" href="a02189.html#NLAIAGENT_1_1CIdents2">NLMISC::CEntityId::Unknown</a><code> [static]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Unknow <a class="el" href="a02189.html">CEntityId</a> is similar as an NULL pointer. +<p> + </td> + </tr> +</table> +<hr>The documentation for this struct was generated from the following files:<ul> +<li><a class="el" href="a05673.html">entity_id.h</a><li><a class="el" href="a05672.html">entity_id.cpp</a></ul> +<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 13:07:54 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> |