classtime.html
来自「仿真人工智能是指用人工的方法和技术」· HTML 代码 · 共 1,421 行 · 第 1/4 页
HTML
1,421 行
<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 subtracting time 't' from the current time. It is defined by (t1,s1) + (t2,s2) = (t1-t2,0). The stopped time is set to zero. <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><p>Definition at line <a class="el" href="SoccerTypes_8C-source.html#l00285">285</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#l00097">setTimeStopped</a>(), and <a class="el" href="SoccerTypes_8C-source.html#l00081">updateTime</a>(). </td> </tr></table><a name="a24" 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">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 a boolean indicating whether the current time is smaller than the time denoted by the integer 'i'. Herefore first a time object (i,0) is created. <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 is smaller than given time </dl><p>Definition at line <a class="el" href="SoccerTypes_8C-source.html#l00350">350</a> of file <a class="el" href="SoccerTypes_8C-source.html">SoccerTypes.C</a>.<p>References <a class="el" href="SoccerTypes_8C-source.html#l00069">Time</a>(). </td> </tr></table><a name="a23" 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 smaller than the time t. When the time difference returned by getTimeDifference is smaller than 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 is smaller than given time </dl><p>Definition at line <a class="el" href="SoccerTypes_8C-source.html#l00340">340</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="a26" 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">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 a boolean indicating whether the current time is smaller than or equal to the time denoted by the integer 'i'. Herefore first a time object (i,0) is created. <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 is smaller than or equal to 't' </dl><p>Definition at line <a class="el" href="SoccerTypes_8C-source.html#l00371">371</a> of file <a class="el" href="SoccerTypes_8C-source.html">SoccerTypes.C</a>. </td> </tr></table><a name="a25" 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 smaller than or equal to the time t. <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 is smaller to or equal than 't' </dl><p>Definition at line <a class="el" href="SoccerTypes_8C-source.html#l00360">360</a> of file <a class="el" href="SoccerTypes_8C-source.html">SoccerTypes.C</a>. </td> </tr></table><a name="a14" 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 returns a new time object (i,0). The argument 'i' is thus denoted as the actual time. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>i</em> </td><td>new time </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>time object </dl><p>Definition at line <a class="el" href="SoccerTypes_8C-source.html#l00247">247</a> of file <a class="el" href="SoccerTypes_8C-source.html">SoccerTypes.C</a>.<p>References <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="a22" 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">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 a boolean indicating whether the current time equals the time as 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 equals 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#l00320">320</a> of file <a class="el" href="SoccerTypes_8C-source.html">SoccerTypes.C</a>. </td> </tr></table><a name="a21" 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 equals the time t. When the time difference returned by getTimeDifference between these two time objects equals 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#l00330">330</a> of file <a class="el" href="SoccerTypes_8C-source.html">SoccerTypes.C</a>. </td> </tr></table><a name="a28" 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">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 a boolean indicating whether the current time is larger than the time denoted by the integer 'i'. Herefore first a time object (i,0) is created. <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 is larger than the given time </dl><p>Definition at line <a class="el" href="SoccerTypes_8C-source.html#l00390">390</a> of file <a class="el" href="SoccerTypes_8C-source.html">SoccerTypes.C</a>. </td> </tr></table><a name="a27" doxytag="Time::operator>"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?