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

📄 lists.objlist.html

📁 PTypes (C++ Portable Types Library) is a simple alternative to the STL that includes multithreading
💻 HTML
字号:
<html><!-- #BeginTemplate "/Templates/tmpl.dwt" --><head><!-- #BeginEditable "doctitle" --> <title>PTypes: lists: objlist</title><!-- #EndEditable --> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link rel="stylesheet" href="styles.css"></head><body bgcolor="#FFFFFF" leftmargin="40" marginwidth="40"><p><a href="../index.html"><img src="title-1.7.gif" width="213" height="34" alt="C++ Portable Types Library (PTypes) Version 1.7" border="0"></a> <hr noshade><!-- #BeginEditable "body" --> <p class="hpath"><a href="index.html">Top</a>: <a href="basic.html">Basic types</a>: <a href="lists.html">Lists</a>: objlist</p><ul><li> <h5><a href="lists.objlist.constructors.html">Constructors/destructors</a></h5></li><li> <h5><a href="lists.objlist.manipulation.html">Manipulation</a></h5></li></ul><p>The <span class="lang">objlist</span> class is a dynamic array of pointers to objects derived from <span class="lang">unknown</span>. This class provides methods to add, insert, delete or access objects by index. <span class="lang">Objlist</span> itself is derived from <span class="lang">unknown</span>.</p><p>When an item is removed from the list, or the entire list is cleared (using <span class="lang">clear()</span> function) or destroyed, the objects are not freed from memory unless the parameter <span class="lang">ownobjects</span> was set to true during construction of the list. &quot;Owning objects&quot; means the string list is responsible for destroying and freeing its member objects.</p><p>A class template named <span class="lang">tobjlist</span>, fully compatible with <span class="lang">objlist</span>, is provided for better type checking at compile time. If you declare a variable, for example, of type <span class="lang">tobjlist&lt;myclass&gt;</span>, all manipulation functions for this variable will accept and return pointers to <span class="lang">myclass</span>, instead of <span class="lang">unknown</span>.</p><p>This class is declared in <span class="lang">&lt;ptypes.h&gt;</span> header file. </p><p class="seealso">See also: <a href="unknown.html">unknown</a>, <a href="lists.objlist.constructors.html">Constructors/destructors</a>, <a href="lists.objlist.manipulation.html">Manipulation</a></p><!-- #EndEditable --><hr size="1"><a href="../index.html" class="ns">PTypes home</a></body><!-- #EndTemplate --></html>

⌨️ 快捷键说明

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