📄 lists_8h-source.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>lists.h Source File</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.18 --><center><a class="qindex" href="index.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="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </center><hr><h1>lists.h</h1><a href="lists_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span>00002 <span class="comment"> * lists.h</span>00003 <span class="comment"> *</span>00004 <span class="comment"> * List Container Classes</span>00005 <span class="comment"> *</span>00006 <span class="comment"> * Portable Windows Library</span>00007 <span class="comment"> *</span>00008 <span class="comment"> * Copyright (c) 1993-1998 Equivalence Pty. Ltd.</span>00009 <span class="comment"> *</span>00010 <span class="comment"> * The contents of this file are subject to the Mozilla Public License</span>00011 <span class="comment"> * Version 1.0 (the "License"); you may not use this file except in</span>00012 <span class="comment"> * compliance with the License. You may obtain a copy of the License at</span>00013 <span class="comment"> * http://www.mozilla.org/MPL/</span>00014 <span class="comment"> *</span>00015 <span class="comment"> * Software distributed under the License is distributed on an "AS IS"</span>00016 <span class="comment"> * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See</span>00017 <span class="comment"> * the License for the specific language governing rights and limitations</span>00018 <span class="comment"> * under the License.</span>00019 <span class="comment"> *</span>00020 <span class="comment"> * The Original Code is Portable Windows Library.</span>00021 <span class="comment"> *</span>00022 <span class="comment"> * The Initial Developer of the Original Code is Equivalence Pty. Ltd.</span>00023 <span class="comment"> *</span>00024 <span class="comment"> * Portions are Copyright (C) 1993 Free Software Foundation, Inc.</span>00025 <span class="comment"> * All Rights Reserved.</span>00026 <span class="comment"> *</span>00027 <span class="comment"> * Contributor(s): ______________________________________.</span>00028 <span class="comment"> *</span>00029 <span class="comment"> * $Log: lists.h,v $</span>00030 <span class="comment"> * Revision 1.29 2004/04/09 03:42:34 csoutheren</span>00031 <span class="comment"> * Removed all usages of "virtual inline" and "inline virtual"</span>00032 <span class="comment"> *</span>00033 <span class="comment"> * Revision 1.28 2004/04/04 07:39:57 csoutheren</span>00034 <span class="comment"> * Fixed cut-and-paste typo in VS.net 2003 changes that made all PLists sorted. Yikes!</span>00035 <span class="comment"> *</span>00036 <span class="comment"> * Revision 1.27 2004/04/03 23:53:09 csoutheren</span>00037 <span class="comment"> * Added various changes to improce compatibility with the Sun Forte compiler</span>00038 <span class="comment"> * Thanks to Brian Cameron</span>00039 <span class="comment"> * Added detection of readdir_r version</span>00040 <span class="comment"> *</span>00041 <span class="comment"> * Revision 1.26 2004/04/03 06:54:21 rjongbloed</span>00042 <span class="comment"> * Many and various changes to support new Visual C++ 2003</span>00043 <span class="comment"> *</span>00044 <span class="comment"> * Revision 1.25 2004/02/15 03:04:52 rjongbloed</span>00045 <span class="comment"> * Fixed problem with PSortedList nil variable and assignment between instances,</span>00046 <span class="comment"> * pointed out by Ben Lear.</span>00047 <span class="comment"> *</span>00048 <span class="comment"> * Revision 1.24 2004/02/09 06:23:32 csoutheren</span>00049 <span class="comment"> * Added fix for gcc 3.3.1 problem. Apparently, it is unable to correctly resolve</span>00050 <span class="comment"> * a function argument that is a reference to a const pointer. Changing the argument</span>00051 <span class="comment"> * to be a pointer to a pointer solves the problem. Go figure</span>00052 <span class="comment"> *</span>00053 <span class="comment"> * Revision 1.23 2004/02/08 11:13:10 rjongbloed</span>00054 <span class="comment"> * Fixed crash in heavily loaded multi-threaded systems using simultaneous sorted</span>00055 <span class="comment"> * lists, Thanks Federico Pinna, Fabrizio Ammollo and the gang at Reitek S.p.A.</span>00056 <span class="comment"> *</span>00057 <span class="comment"> * Revision 1.22 2003/08/31 22:11:29 dereksmithies</span>00058 <span class="comment"> * Fix from Diego Tartara for the SetAt function. Many thanks.</span>00059 <span class="comment"> *</span>00060 <span class="comment"> * Revision 1.21 2002/11/12 08:55:53 robertj</span>00061 <span class="comment"> * Changed scope of PAbstraSortedList::Element class so descendant classes</span>00062 <span class="comment"> * can get at it.</span>00063 <span class="comment"> *</span>00064 <span class="comment"> * Revision 1.20 2002/09/16 01:08:59 robertj</span>00065 <span class="comment"> * Added #define so can select if #pragma interface/implementation is used on</span>00066 <span class="comment"> * platform basis (eg MacOS) rather than compiler, thanks Robert Monaghan.</span>00067 <span class="comment"> *</span>00068 <span class="comment"> * Revision 1.19 2000/04/14 07:19:32 craigs</span>00069 <span class="comment"> * Fixed problem with assert when dequeueing from an empty queue</span>00070 <span class="comment"> *</span>00071 <span class="comment"> * Revision 1.18 1999/08/22 12:13:43 robertj</span>00072 <span class="comment"> * Fixed warning when using inlines on older GNU compiler</span>00073 <span class="comment"> *</span>00074 <span class="comment"> * Revision 1.17 1999/03/09 02:59:50 robertj</span>00075 <span class="comment"> * Changed comments to doc++ compatible documentation.</span>00076 <span class="comment"> *</span>00077 <span class="comment"> * Revision 1.16 1999/02/16 08:12:00 robertj</span>00078 <span class="comment"> * MSVC 6.0 compatibility changes.</span>00079 <span class="comment"> *</span>00080 <span class="comment"> * Revision 1.15 1998/09/23 06:20:49 robertj</span>00081 <span class="comment"> * Added open source copyright license.</span>00082 <span class="comment"> *</span>00083 <span class="comment"> * Revision 1.14 1997/06/08 04:49:12 robertj</span>00084 <span class="comment"> * Fixed non-template class descendent order.</span>00085 <span class="comment"> *</span>00086 <span class="comment"> * Revision 1.13 1997/04/27 05:50:10 robertj</span>00087 <span class="comment"> * DLL support.</span>00088 <span class="comment"> *</span>00089 <span class="comment"> * Revision 1.12 1997/02/14 13:53:59 robertj</span>00090 <span class="comment"> * Major rewrite of sorted list to use sentinel record instead of NULL pointers.</span>00091 <span class="comment"> *</span>00092 <span class="comment"> * Revision 1.11 1996/07/15 10:32:50 robertj</span>00093 <span class="comment"> * Fixed bug in sorted list (crash on remove).</span>00094 <span class="comment"> *</span>00095 <span class="comment"> * Revision 1.10 1996/05/26 03:25:13 robertj</span>00096 <span class="comment"> * Compatibility to GNU 2.7.x</span>00097 <span class="comment"> *</span>00098 <span class="comment"> * Revision 1.9 1996/01/23 13:13:32 robertj</span>00099 <span class="comment"> * Fixed bug in sorted list GetObjectsIndex not checking if is same object</span>00100 <span class="comment"> *</span>00101 <span class="comment"> * Revision 1.8 1995/08/24 12:35:00 robertj</span>00102 <span class="comment"> * Added assert for list index out of bounds.</span>00103 <span class="comment"> *</span>00104 <span class="comment"> * Revision 1.7 1995/06/17 11:12:43 robertj</span>00105 <span class="comment"> * Documentation update.</span>00106 <span class="comment"> *</span>00107 <span class="comment"> * Revision 1.6 1995/03/14 12:41:41 robertj</span>00108 <span class="comment"> * Updated documentation to use HTML codes.</span>00109 <span class="comment"> *</span>00110 <span class="comment"> * Revision 1.5 1995/02/22 10:50:30 robertj</span>00111 <span class="comment"> * Changes required for compiling release (optimised) version.</span>00112 <span class="comment"> *</span>00113 <span class="comment"> * Revision 1.4 1995/02/05 00:48:05 robertj</span>00114 <span class="comment"> * Fixed template version.</span>00115 <span class="comment"> *</span>00116 <span class="comment"> * Revision 1.3 1995/01/15 04:49:23 robertj</span>00117 <span class="comment"> * Fixed errors in template version.</span>00118 <span class="comment"> *</span>00119 <span class="comment"> * Revision 1.2 1994/12/21 11:53:12 robertj</span>00120 <span class="comment"> * Documentation and variable normalisation.</span>00121 <span class="comment"> *</span>00122 <span class="comment"> * Revision 1.1 1994/12/12 09:59:35 robertj</span>00123 <span class="comment"> * Initial revision</span>00124 <span class="comment"> *</span>00125 <span class="comment"> */</span>00126 00127 <span class="preprocessor">#ifdef P_USE_PRAGMA</span>00128 <span class="preprocessor"></span><span class="preprocessor">#pragma interface</span>00129 <span class="preprocessor"></span><span class="preprocessor">#endif</span>00130 <span class="preprocessor"></span>00131 00133 <span class="comment">// PList container class</span>00134 <a name="l00155"></a><a class="code" href="classPAbstractList.html">00155</a> <span class="keyword">class </span><a class="code" href="classPAbstractList.html">PAbstractList</a> : <span class="keyword">public</span> <a class="code" href="classPCollection.html">PCollection</a>00156 {00157 <a class="code" href="contain_8h.html#a0">PCONTAINERINFO</a>(<a class="code" href="classPAbstractList.html">PAbstractList</a>, <a class="code" href="classPCollection.html">PCollection</a>);00158 00159 <span class="keyword">public</span>:00167 <a class="code" href="object_8h.html#a2">PINLINE</a> <a class="code" href="classPAbstractList.html#z171_0">PAbstractList</a>();00169 00170 <span class="comment">// Overrides from class PObject</span>00198 <span class="comment"></span> <span class="keyword">virtual</span> <a class="code" href="classPObject.html#z199_0">Comparison</a> <a class="code" href="classPAbstractList.html#a0">Compare</a>(<span class="keyword">const</span> <a class="code" href="classPObject.html">PObject</a> & obj) <span class="keyword">const</span>;00199 00209 <span class="keyword">virtual</span> BOOL <a class="code" href="classPAbstractList.html#z173_0">SetSize</a>(00210 PINDEX newSize 00211 );
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -