📄 object_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>object.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>object.h</h1><a href="object_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span>00002 <span class="comment"> * object.h</span>00003 <span class="comment"> *</span>00004 <span class="comment"> * Mother of all ancestor 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: object.h,v $</span>00030 <span class="comment"> * Revision 1.110 2004/08/14 14:17:29 csoutheren</span>00031 <span class="comment"> * Fixed problem with PAssert and associated functions caused by using expressions</span>00032 <span class="comment"> * as statements. inline functions are your friend :)</span>00033 <span class="comment"> *</span>00034 <span class="comment"> * Revision 1.109 2004/08/05 12:09:35 rjongbloed</span>00035 <span class="comment"> * Added macros for "remove const" and "down cast" funcions with and without RTTI.</span>00036 <span class="comment"> * Added ability to disable Asserts.</span>00037 <span class="comment"> * Change PAssert macros so pass through the boolean result so that they can be used</span>00038 <span class="comment"> * in if statements, allowing a chance to continue if ignore assert.</span>00039 <span class="comment"> *</span>00040 <span class="comment"> * Revision 1.108 2004/07/11 07:56:35 csoutheren</span>00041 <span class="comment"> * Applied jumbo VxWorks patch, thanks to Eize Slange</span>00042 <span class="comment"> *</span>00043 <span class="comment"> * Revision 1.107 2004/07/03 06:49:49 rjongbloed</span>00044 <span class="comment"> * Added PTRACE_PARAM() macro to fix warnings on parameters used in PTRACE</span>00045 <span class="comment"> * macros only.</span>00046 <span class="comment"> *</span>00047 <span class="comment"> * Revision 1.106 2004/06/01 07:42:19 csoutheren</span>00048 <span class="comment"> * Restored memory allocation checking</span>00049 <span class="comment"> * Added configure flag to enable, thanks to Derek Smithies</span>00050 <span class="comment"> *</span>00051 <span class="comment"> * Revision 1.105 2004/06/01 05:22:43 csoutheren</span>00052 <span class="comment"> * Restored memory check functionality</span>00053 <span class="comment"> *</span>00054 <span class="comment"> * Revision 1.104 2004/05/12 04:36:17 csoutheren</span>00055 <span class="comment"> * Fixed problems with using sem_wait and friends on systems that do not</span>00056 <span class="comment"> * support atomic integers</span>00057 <span class="comment"> *</span>00058 <span class="comment"> * Revision 1.103 2004/04/18 04:33:36 rjongbloed</span>00059 <span class="comment"> * Changed all operators that return BOOL to return standard type bool. This is primarily</span>00060 <span class="comment"> * for improved compatibility with std STL usage removing many warnings.</span>00061 <span class="comment"> *</span>00062 <span class="comment"> * Revision 1.102 2004/04/11 13:26:25 csoutheren</span>00063 <span class="comment"> * Removed namespace problems and removed warnings for Windows <string></span>00064 <span class="comment"> *</span>00065 <span class="comment"> * Revision 1.101 2004/04/11 03:20:41 csoutheren</span>00066 <span class="comment"> * Added Unix implementation of PCriticalSection</span>00067 <span class="comment"> *</span>00068 <span class="comment"> * Revision 1.100 2004/04/11 02:55:17 csoutheren</span>00069 <span class="comment"> * Added PCriticalSection for Windows</span>00070 <span class="comment"> * Added compile time option for PContainer to use critical sections to provide thread safety under some circumstances</span>00071 <span class="comment"> *</span>00072 <span class="comment"> * Revision 1.99 2004/04/09 11:54:46 csoutheren</span>00073 <span class="comment"> * Added configure.in check for STL streams, and tested with gcc 2.95.3,</span>00074 <span class="comment"> * gcc 3.3.1, and gcc 3.3.3</span>00075 <span class="comment"> *</span>00076 <span class="comment"> * Revision 1.98 2004/04/09 07:53:51 rjongbloed</span>00077 <span class="comment"> * Fixed backward compatibility after STL streams change</span>00078 <span class="comment"> *</span>00079 <span class="comment"> * Revision 1.97 2004/04/09 00:56:35 csoutheren</span>00080 <span class="comment"> * Fixed problem with new class name code</span>00081 <span class="comment"> *</span>00082 <span class="comment"> * Revision 1.96 2004/04/09 00:42:58 csoutheren</span>00083 <span class="comment"> * Changed Unix build to use slightly different method for</span>00084 <span class="comment"> * keep class names, as GCC does not use actual class names for typeinfo</span>00085 <span class="comment"> *</span>00086 <span class="comment"> * Revision 1.95 2004/04/04 13:24:18 rjongbloed</span>00087 <span class="comment"> * Changes to support native C++ Run Time Type Information</span>00088 <span class="comment"> *</span>00089 <span class="comment"> * Revision 1.94 2004/04/03 08:57:31 csoutheren</span>00090 <span class="comment"> * Replaced pseudo-RTTI with real RTTI</span>00091 <span class="comment"> *</span>00092 <span class="comment"> * Revision 1.93 2004/04/03 08:22:20 csoutheren</span>00093 <span class="comment"> * Remove pseudo-RTTI and replaced with real RTTI</span>00094 <span class="comment"> *</span>00095 <span class="comment"> * Revision 1.92 2004/04/03 07:41:00 csoutheren</span>00096 <span class="comment"> * Fixed compile problem with ostringstream/ostrstream</span>00097 <span class="comment"> *</span>00098 <span class="comment"> * Revision 1.91 2004/04/03 07:16:05 rjongbloed</span>00099 <span class="comment"> * Fixed backward compatibility with MSVC 6</span>00100 <span class="comment"> *</span>00101 <span class="comment"> * Revision 1.90 2004/04/03 06:54:22 rjongbloed</span>00102 <span class="comment"> * Many and various changes to support new Visual C++ 2003</span>00103 <span class="comment"> *</span>00104 <span class="comment"> * Revision 1.89 2003/09/17 09:00:59 csoutheren</span>00105 <span class="comment"> * Moved PSmartPointer and PNotifier into seperate files</span>00106 <span class="comment"> * Added detection for system regex libraries on all platforms</span>00107 <span class="comment"> *</span>00108 <span class="comment"> * Revision 1.88 2003/09/17 05:41:58 csoutheren</span>00109 <span class="comment"> * Removed recursive includes</span>00110 <span class="comment"> *</span>00111 <span class="comment"> * Revision 1.87 2003/09/17 01:18:02 csoutheren</span>00112 <span class="comment"> * Removed recursive include file system and removed all references</span>00113 <span class="comment"> * to deprecated coooperative threading support</span>00114 <span class="comment"> *</span>00115 <span class="comment"> * Revision 1.86 2002/10/14 21:42:37 rogerh</span>00116 <span class="comment"> * Only use malloc.h on Windows</span>00117 <span class="comment"> *</span>00118 <span class="comment"> * Revision 1.85 2002/10/10 04:43:43 robertj</span>00119 <span class="comment"> * VxWorks port, thanks Martijn Roest</span>00120 <span class="comment"> *</span>00121 <span class="comment"> * Revision 1.84 2002/10/08 12:41:51 robertj</span>00122 <span class="comment"> * Changed for IPv6 support, thanks S閎astien Josset.</span>00123 <span class="comment"> *</span>00124 <span class="comment"> * Revision 1.83 2002/09/16 01:08:59 robertj</span>00125 <span class="comment"> * Added #define so can select if #pragma interface/implementation is used on</span>00126 <span class="comment"> * platform basis (eg MacOS) rather than compiler, thanks Robert Monaghan.</span>00127 <span class="comment"> *</span>00128 <span class="comment"> * Revision 1.82 2002/08/06 02:27:58 robertj</span>00129 <span class="comment"> * GNU C++ v3 compatibility.</span>00130 <span class="comment"> *</span>00131 <span class="comment"> * Revision 1.81 2002/06/25 02:22:47 robertj</span>00132 <span class="comment"> * Improved assertion system to allow C++ class name to be displayed if</span>00133 <span class="comment"> * desired, especially relevant to container classes.</span>00134 <span class="comment"> *</span>00135 <span class="comment"> * Revision 1.80 2002/06/14 10:29:43 rogerh</span>00136 <span class="comment"> * STL + gcc 3.1 compile fix. Submitted by Klaus Kaempf <kkaempf@suse.de></span>00137 <span class="comment"> *</span>00138 <span class="comment"> * Revision 1.79 2002/06/13 08:34:05 rogerh</span>00139 <span class="comment"> * gcc 3.1 needs iostream instead of iostream.h</span>00140 <span class="comment"> *</span>00141 <span class="comment"> * Revision 1.78 2002/05/22 00:23:31 craigs</span>00142 <span class="comment"> * Added GMTTime flag to tracing options</span>00143 <span class="comment"> *</span>00144 <span class="comment"> * Revision 1.77 2002/04/19 00:20:51 craigs</span>00145 <span class="comment"> * Added option to append to log file rather than create anew each time</span>00146 <span class="comment"> *</span>00147 <span class="comment"> * Revision 1.76 2002/01/26 23:55:55 craigs</span>00148 <span class="comment"> * Changed for GCC 3.0 compatibility, thanks to manty@manty.net</span>00149 <span class="comment"> *</span>00150 <span class="comment"> * Revision 1.75 2001/10/18 19:56:26 yurik</span>00151 <span class="comment"> * Fixed WinCE x86 compilation problems with memory check off</span>00152 <span class="comment"> *</span>00153 <span class="comment"> * Revision 1.74 2001/08/12 11:26:07 robertj</span>00154 <span class="comment"> * Put back PMEMORY_CHECK taken out by the Carbon port.</span>00155 <span class="comment"> *</span>00156 <span class="comment"> * Revision 1.73 2001/08/11 07:57:30 rogerh</span>00157 <span class="comment"> * Add Mac OS Carbon changes from John Woods <jfw@jfwhome.funhouse.com></span>00158 <span class="comment"> *</span>00159 <span class="comment"> * Revision 1.72 2001/05/03 06:27:29 robertj</span>00160 <span class="comment"> * Added return value to PMemoryCheck::SetIgnoreAllocations() so get previous state.</span>00161 <span class="comment"> *</span>00162 <span class="comment"> * Revision 1.71 2001/03/24 01:11:10 robertj</span>00163 <span class="comment"> * Added missing PTRACE_IF define in non PTRACING mode.</span>00164 <span class="comment"> *</span>00165 <span class="comment"> * Revision 1.70 2001/03/23 05:34:09 robertj</span>00166 <span class="comment"> * Added PTRACE_IF to output trace if a conditional is TRUE.</span>00167 <span class="comment"> *</span>00168 <span class="comment"> * Revision 1.69 2001/03/01 02:15:16 robertj</span>00169 <span class="comment"> * Fixed PTRACE_LINE() so drops filename and line which may not be in trace otherwise.</span>00170 <span class="comment"> *</span>00171 <span class="comment"> * Revision 1.68 2001/02/22 08:16:41 robertj</span>00172 <span class="comment"> * Added standard trace file setup subroutine.</span>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -