classtime.html
来自「仿真人工智能是指用人工的方法和技术」· HTML 代码 · 共 1,421 行 · 第 1/4 页
HTML
1,421 行
<td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This method returns a boolean indicating whether the current time is inequal to the time specified by the integer 'i'. 'i' is first converted to the time object (i,0). When the time difference returned by getTimeDifference between these two time objects is inequal to zero true is returned, false otherwise <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>i</em> </td><td>actual time with which current time should be compared </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>bool indicating whether current time equals specified time </dl><p>Definition at line <a class="el" href="SoccerTypes_8C-source.html#l00298">298</a> of file <a class="el" href="SoccerTypes_8C-source.html">SoccerTypes.C</a>.<p>References <a class="el" href="SoccerTypes_8C-source.html#l00125">getTimeDifference</a>(), and <a class="el" href="SoccerTypes_8C-source.html#l00069">Time</a>(). </td> </tr></table><a name="a19" doxytag="Time::operator!="></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> bool Time::operator!= </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">Time </td> <td class="mdname1" valign="top" nowrap> <em>t</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This method returns a boolean indicating whether the current time is inequal to the time t. When the time difference returned by getTimeDifference between these two time objects is inequal to zero true is returned, false otherwise. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>t</em> </td><td>time with which current time should be compared </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>bool indicating whether current time equals specified time </dl><p>Definition at line <a class="el" href="SoccerTypes_8C-source.html#l00309">309</a> of file <a class="el" href="SoccerTypes_8C-source.html">SoccerTypes.C</a>.<p>References <a class="el" href="SoccerTypes_8C-source.html#l00125">getTimeDifference</a>(). </td> </tr></table><a name="a11" doxytag="Time::operator+"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> Time Time::operator+ </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">Time </td> <td class="mdname1" valign="top" nowrap> <em>t</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This method returns the result of adding time 't' to the current time. No changes are made to the current object. It is defined by (t1,s1) + (t2,s2) = (t1+t2,s2). The stopped time of the first time tuple is neglected, since this has already been passed. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>t</em> </td><td>Time object that should be added to the current time </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>new time object with 't' added to the current time </dl><p>Definition at line <a class="el" href="SoccerTypes_8C-source.html#l00219">219</a> of file <a class="el" href="SoccerTypes_8C-source.html">SoccerTypes.C</a>.<p>References <a class="el" href="SoccerTypes_8C-source.html#l00106">getTime</a>(), <a class="el" href="SoccerTypes_8C-source.html#l00114">getTimeStopped</a>(), and <a class="el" href="SoccerTypes_8C-source.html#l00069">Time</a>(). </td> </tr></table><a name="a10" doxytag="Time::operator+"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> Time Time::operator+ </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const int & </td> <td class="mdname1" valign="top" nowrap> <em>i</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This method returns the time as if 'i' cycles would be added to the current time. The method getTimeAddedWith is used for this. No changes are made to the current object. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>iCycles</em> </td><td>denotes the time that should be added to the current time </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>new time object with 'iCycles' added to the current time </dl><p>Definition at line <a class="el" href="SoccerTypes_8C-source.html#l00208">208</a> of file <a class="el" href="SoccerTypes_8C-source.html">SoccerTypes.C</a>.<p>References <a class="el" href="SoccerTypes_8C-source.html#l00154">getTimeAddedWith</a>(). </td> </tr></table><a name="a16" doxytag="Time::operator+="></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Time::operator+= </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const int & </td> <td class="mdname1" valign="top" nowrap> <em>i</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This method updates the time by adding 'i' cycles to the current time. The method addToTime is used for this. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>i</em> </td><td>denotes the time that should be added to the current time </td></tr></table></dl><p>Definition at line <a class="el" href="SoccerTypes_8C-source.html#l00256">256</a> of file <a class="el" href="SoccerTypes_8C-source.html">SoccerTypes.C</a>.<p>References <a class="el" href="SoccerTypes_8C-source.html#l00188">addToTime</a>(). </td> </tr></table><a name="a15" doxytag="Time::operator+="></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Time::operator+= </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">Time </td> <td class="mdname1" valign="top" nowrap> <em>t</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This method updates the time by adding the time 't' to the current time. It is defined by (t1,s1) + (t2,s2) = (t1+t2,s2). The stopped time of the first time tuple is neglected, since this has already been passed. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>t</em> </td><td>Time object that should be added to the current time </td></tr></table></dl><p>Definition at line <a class="el" href="SoccerTypes_8C-source.html#l00266">266</a> of file <a class="el" href="SoccerTypes_8C-source.html">SoccerTypes.C</a>.<p>References <a class="el" href="SoccerTypes_8C-source.html#l00106">getTime</a>(), <a class="el" href="SoccerTypes_8C-source.html#l00114">getTimeStopped</a>(), <a class="el" href="SoccerTypes_8C-source.html#l00097">setTimeStopped</a>(), and <a class="el" href="SoccerTypes_8C-source.html#l00081">updateTime</a>(). </td> </tr></table><a name="a13" doxytag="Time::operator-"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> int Time::operator- </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">Time </td> <td class="mdname1" valign="top" nowrap> <em>t</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This method returns the result the difference between the two times and is equal to the method getTimeDifference. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>t</em> </td><td>Time object that should be subtracted from the current time </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>new time object with 't' subtracted from the current time </dl><p>Definition at line <a class="el" href="SoccerTypes_8C-source.html#l00238">238</a> of file <a class="el" href="SoccerTypes_8C-source.html">SoccerTypes.C</a>.<p>References <a class="el" href="SoccerTypes_8C-source.html#l00125">getTimeDifference</a>(). </td> </tr></table><a name="a12" doxytag="Time::operator-"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> Time Time::operator- </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const int & </td> <td class="mdname1" valign="top" nowrap> <em>i</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This method returns the time as if 'i' cycles would be subtracted from the current time. The method getTimeAddedWith is used for this. No changes are made to the current object. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>iCycles</em> </td><td>denotes the time that should be subtracted from the time </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>new time object with 'iCycles' subracted </dl><p>Definition at line <a class="el" href="SoccerTypes_8C-source.html#l00229">229</a> of file <a class="el" href="SoccerTypes_8C-source.html">SoccerTypes.C</a>.<p>References <a class="el" href="SoccerTypes_8C-source.html#l00154">getTimeAddedWith</a>(). </td> </tr></table><a name="a18" doxytag="Time::operator-="></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Time::operator-= </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const int & </td> <td class="mdname1" valign="top" nowrap> <em>i</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This method updates the time by subtractign 'i' cycles from the current time. The method addToTime is used for this with '-i' as its argument. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>i</em> </td><td>denotes the time that should be subtracted </td></tr></table></dl><p>Definition at line <a class="el" href="SoccerTypes_8C-source.html#l00276">276</a> of file <a class="el" href="SoccerTypes_8C-source.html">SoccerTypes.C</a>.<p>References <a class="el" href="SoccerTypes_8C-source.html#l00188">addToTime</a>(). </td> </tr></table><a name="a17" doxytag="Time::operator-="></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md">
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?