📄 contain_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>contain.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>contain.h</h1><a href="contain_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span>00002 <span class="comment"> * contain.h</span>00003 <span class="comment"> *</span>00004 <span class="comment"> * Umbrella include for 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: contain.h,v $</span>00030 <span class="comment"> * Revision 1.64 2004/04/15 22:44:52 csoutheren</span>00031 <span class="comment"> * Re-applied gcc 2.95 patch as CVS screwed up</span>00032 <span class="comment"> *</span>00033 <span class="comment"> * Revision 1.63 2004/04/14 23:34:52 csoutheren</span>00034 <span class="comment"> * Added plugin for data access</span>00035 <span class="comment"> *</span>00036 <span class="comment"> * Revision 1.61 2004/04/12 00:36:04 csoutheren</span>00037 <span class="comment"> * Added new class PAtomicInteger and added Windows implementation</span>00038 <span class="comment"> *</span>00039 <span class="comment"> * Revision 1.60 2004/04/11 06:15:27 csoutheren</span>00040 <span class="comment"> * Modified to use Atomic_word if available</span>00041 <span class="comment"> *</span>00042 <span class="comment"> * Revision 1.59 2004/04/11 02:55:17 csoutheren</span>00043 <span class="comment"> * Added PCriticalSection for Windows</span>00044 <span class="comment"> * Added compile time option for PContainer to use critical sections to provide thread safety under some circumstances</span>00045 <span class="comment"> *</span>00046 <span class="comment"> * Revision 1.58 2004/04/09 03:42:34 csoutheren</span>00047 <span class="comment"> * Removed all usages of "virtual inline" and "inline virtual"</span>00048 <span class="comment"> *</span>00049 <span class="comment"> * Revision 1.57 2003/09/17 05:41:58 csoutheren</span>00050 <span class="comment"> * Removed recursive includes</span>00051 <span class="comment"> *</span>00052 <span class="comment"> * Revision 1.56 2003/09/17 01:18:02 csoutheren</span>00053 <span class="comment"> * Removed recursive include file system and removed all references</span>00054 <span class="comment"> * to deprecated coooperative threading support</span>00055 <span class="comment"> *</span>00056 <span class="comment"> * Revision 1.55 2003/03/31 01:23:56 robertj</span>00057 <span class="comment"> * Added ReadFrom functions for standard container classes such as</span>00058 <span class="comment"> * PIntArray and PStringList etc</span>00059 <span class="comment"> *</span>00060 <span class="comment"> * Revision 1.54 2002/09/16 01:08:59 robertj</span>00061 <span class="comment"> * Added #define so can select if #pragma interface/implementation is used on</span>00062 <span class="comment"> * platform basis (eg MacOS) rather than compiler, thanks Robert Monaghan.</span>00063 <span class="comment"> *</span>00064 <span class="comment"> * Revision 1.53 2001/02/13 04:39:08 robertj</span>00065 <span class="comment"> * Fixed problem with operator= in container classes. Some containers will</span>00066 <span class="comment"> * break unless the copy is virtual (eg PStringStream's buffer pointers) so</span>00067 <span class="comment"> * needed to add a new AssignContents() function to all containers.</span>00068 <span class="comment"> *</span>00069 <span class="comment"> * Revision 1.52 1999/11/30 00:22:54 robertj</span>00070 <span class="comment"> * Updated documentation for doc++</span>00071 <span class="comment"> *</span>00072 <span class="comment"> * Revision 1.51 1999/08/22 12:13:42 robertj</span>00073 <span class="comment"> * Fixed warning when using inlines on older GNU compiler</span>00074 <span class="comment"> *</span>00075 <span class="comment"> * Revision 1.50 1999/08/17 03:46:40 robertj</span>00076 <span class="comment"> * Fixed usage of inlines in optimised version.</span>00077 <span class="comment"> *</span>00078 <span class="comment"> * Revision 1.49 1999/03/09 02:59:49 robertj</span>00079 <span class="comment"> * Changed comments to doc++ compatible documentation.</span>00080 <span class="comment"> *</span>00081 <span class="comment"> * Revision 1.48 1999/02/16 08:07:11 robertj</span>00082 <span class="comment"> * MSVC 6.0 compatibility changes.</span>00083 <span class="comment"> *</span>00084 <span class="comment"> * Revision 1.47 1998/09/23 06:20:23 robertj</span>00085 <span class="comment"> * Added open source copyright license.</span>00086 <span class="comment"> *</span>00087 <span class="comment"> * Revision 1.46 1997/07/08 13:15:04 robertj</span>00088 <span class="comment"> * DLL support.</span>00089 <span class="comment"> *</span>00090 <span class="comment"> * Revision 1.45 1996/08/17 10:00:20 robertj</span>00091 <span class="comment"> * Changes for Windows DLL support.</span>00092 <span class="comment"> *</span>00093 <span class="comment"> * Revision 1.44 1996/08/08 10:08:41 robertj</span>00094 <span class="comment"> * Directory structure changes for common files.</span>00095 <span class="comment"> *</span>00096 <span class="comment"> * Revision 1.43 1995/06/17 11:12:26 robertj</span>00097 <span class="comment"> * Documentation update.</span>00098 <span class="comment"> *</span>00099 <span class="comment"> * Revision 1.42 1995/03/14 12:41:13 robertj</span>00100 <span class="comment"> * Updated documentation to use HTML codes.</span>00101 <span class="comment"> *</span>00102 <span class="comment"> * Revision 1.41 1995/01/09 12:36:18 robertj</span>00103 <span class="comment"> * Removed unnecesary return value from I/O functions.</span>00104 <span class="comment"> * Changes due to Mac port.</span>00105 <span class="comment"> *</span>00106 <span class="comment"> * Revision 1.40 1994/12/13 11:50:45 robertj</span>00107 <span class="comment"> * Added MakeUnique() function to all container classes.</span>00108 <span class="comment"> *</span>00109 <span class="comment"> * Revision 1.39 1994/12/12 10:16:18 robertj</span>00110 <span class="comment"> * Restructuring and documentation of container classes.</span>00111 <span class="comment"> * Renaming of some macros for declaring container classes.</span>00112 <span class="comment"> * Added some extra functionality to PString.</span>00113 <span class="comment"> * Added start to 2 byte characters in PString.</span>00114 <span class="comment"> * Fixed incorrect overrides in PCaselessString.</span>00115 <span class="comment"> *</span>00116 <span class="comment"> * Revision 1.38 1994/12/05 11:18:58 robertj</span>00117 <span class="comment"> * Moved SetMinSize from PAbstractArray to PContainer.</span>00118 <span class="comment"> *</span>00119 <span class="comment"> * Revision 1.37 1994/11/28 12:33:44 robertj</span>00120 <span class="comment"> * Added dummy parameter for cls* constructor in containers. This prevents some very</span>00121 <span class="comment"> * strange an undesirable default construction of clones.</span>00122 <span class="comment"> *</span>00123 <span class="comment"> * Revision 1.36 1994/10/30 11:50:09 robertj</span>00124 <span class="comment"> * Split into Object classes and Container classes.</span>00125 <span class="comment"> * Changed mechanism for doing notification callback functions.</span>00126 <span class="comment"> *</span>00127 <span class="comment"> * Revision 1.35 1994/10/23 04:40:50 robertj</span>00128 <span class="comment"> * Made container * constractor protected.</span>00129 <span class="comment"> * Shorted OS Error assert.</span>00130 <span class="comment"> * Added printf constructor to PString.</span>00131 <span class="comment"> *</span>00132 <span class="comment"> * Revision 1.34 1994/09/25 10:36:41 robertj</span>00133 <span class="comment"> * Improved const behavious of container class macros.</span>00134 <span class="comment"> *</span>00135 <span class="comment"> * Revision 1.33 1994/08/23 11:32:52 robertj</span>00136 <span class="comment"> * Oops</span>00137 <span class="comment"> *</span>00138 <span class="comment"> * Revision 1.32 1994/08/22 00:46:48 robertj</span>00139 <span class="comment"> * Added pragma fro GNU C++ compiler.</span>00140 <span class="comment"> *</span>00141 <span class="comment"> * Revision 1.31 1994/08/21 23:43:02 robertj</span>00142 <span class="comment"> * Changed parameter before variable argument list to NOT be a reference.</span>00143 <span class="comment"> * Added object serialisation classes.</span>00144 <span class="comment"> *</span>00145 <span class="comment"> * Revision 1.30 1994/08/04 11:51:39 robertj</span>00146 <span class="comment"> * Rewrite of memory check functions.</span>00147 <span class="comment"> *</span>00148 <span class="comment"> * Revision 1.29 1994/07/27 05:58:07 robertj</span>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -