⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 class_test_path.html

📁 c++开发的一个不错的工具
💻 HTML
📖 第 1 页 / 共 3 页
字号:
    <tr><td></td><td valign=top><em>index</em>&nbsp;</td><td>Zero based index indicating where the tests are inserted. </td></tr>  </table></dl><dl compact><dt><b>Exceptions:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td></td><td valign=top><em>std::out_of_range</em>&nbsp;</td><td>is <em>index</em> &lt; 0 or <em>index</em> &gt; getTestCount(), and <em>path</em> is valid. </td></tr>  </table></dl>    </td>  </tr></table><a class="anchor" name="a9" doxytag="TestPath::insert" ></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 TestPath::insert           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="class_test.html">Test</a> *&nbsp;</td>          <td class="mdname" nowrap> <em>test</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>index</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Inserts a test at the specified index. <p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td></td><td valign=top><em>test</em>&nbsp;</td><td>Pointer on the test to insert. Must not be <code>NULL</code>. </td></tr>    <tr><td></td><td valign=top><em>index</em>&nbsp;</td><td>Zero based index indicating where the test is inserted. </td></tr>  </table></dl><dl compact><dt><b>Exceptions:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td></td><td valign=top><em>std::out_of_range</em>&nbsp;</td><td>is <em>index</em> &lt; 0 or <em>index</em> &gt; getTestCount(). </td></tr>  </table></dl>    </td>  </tr></table><a class="anchor" name="a6" doxytag="TestPath::isValid" ></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 TestPath::isValid           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap> const<code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Tests if the path contains at least one test. <p><dl compact><dt><b>Returns:</b></dt><dd><code>true</code> if the path contains at least one test, otherwise returns <code>false</code>. </dd></dl>    </td>  </tr></table><a class="anchor" name="a18" doxytag="TestPath::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"> <a class="el" href="class_test_path.html">TestPath</a> &amp; TestPath::operator=           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="class_test_path.html">TestPath</a> &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>other</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Assignment operator. <p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td></td><td valign=top><em>other</em>&nbsp;</td><td>Object to copy. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>This object. </dd></dl>    </td>  </tr></table><a class="anchor" name="a12" doxytag="TestPath::removeTest" ></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 TestPath::removeTest           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">int&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>index</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Removes the test at the specified index of the path. <p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td></td><td valign=top><em>index</em>&nbsp;</td><td>Zero based index of the test to remove. </td></tr>  </table></dl><dl compact><dt><b>Exceptions:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td></td><td valign=top><em>std::out_of_range</em>&nbsp;</td><td>is <em>index</em> &lt; 0 or <em>index</em> &gt;= getTestCount(). </td></tr>  </table></dl>    </td>  </tr></table><a class="anchor" name="a11" doxytag="TestPath::removeTests" ></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 TestPath::removeTests           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Removes all the test from the path. <p>The path becomes invalid after this call.     </td>  </tr></table><a class="anchor" name="b1" doxytag="TestPath::splitPathString" ></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 TestPath::splitPathString           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const std::string &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>pathAsString</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td></td>          <td class="md" nowrap><a class="el" href="class_test_path.html#x0">PathTestNames</a> &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>testNames</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [protected]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Splits a path string into its test name components. <p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td></td><td valign=top><em>pathAsString</em>&nbsp;</td><td>Path string created with toString(). </td></tr>    <tr><td></td><td valign=top><em>testNames</em>&nbsp;</td><td><a class="el" href="class_test.html">Test</a> name components are added to that container. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd><code>true</code> if the path is relative (does not begin with '/'), <code>false</code> if it is absolute (begin with '/'). </dd></dl>    </td>  </tr></table><a class="anchor" name="a17" doxytag="TestPath::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 TestPath::toString           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap> const<code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Returns the path as a string. <p>For example, if a path is composed of three tests named "All Tests", "Math" and "Math::testAdd", toString() will return:<p>"All Tests/Math/Math::testAdd".<p><dl compact><dt><b>Returns:</b></dt><dd>A string composed of the test names separated with a '/'. It is a relative path. </dd></dl>    </td>  </tr></table><a class="anchor" name="a13" doxytag="TestPath::up" ></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 TestPath::up           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Removes the last test. <p><dl compact><dt><b>Exceptions:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td></td><td valign=top><em>std::out_of_range</em>&nbsp;</td><td>is the path is invalid. </td></tr>  </table></dl><dl compact><dt><b>See also:</b></dt><dd>isValid(). </dd></dl>    </td>  </tr></table><hr><h2>Member Data Documentation</h2><a class="anchor" name="p0" doxytag="TestPath::m_tests" ></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="class_test_path.html#x1">Tests</a> <a class="el" href="class_test_path.html#p0">TestPath::m_tests</a><code> [protected]</code>          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>    </td>  </tr></table><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="_test_path_8h-source.html">TestPath.h</a><li><a class="el" href="_test_path_8cpp.html">TestPath.cpp</a></ul><hr><table width="100%">  <tr>    <td width="10%" align="left" valign="center">      <a href="http://sourceforge.net">       <img      src="http://sourceforge.net/sflogo.php?group_id=11795"      width="88" height="31" border="0" alt="SourceForge Logo"></a>    </td>    <td width="20%" align="left" valign="center">      hosts this site.    </td>    <td>    </td>    <td align="right" valign="center">      Send comments to:<br>      <a href="mailto:cppunit-devel@lists.sourceforge.net">CppUnit Developers</a>    </td>  </tr></table></body> </html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -