📄 object.h
字号:
private: OBJECT_TYPE* ptr_; }; /** indicates whether or not debug memory should be tracked. Note that debug memory is tracked <b>only</b> in debug builds (meaning the VCF has been compiled with the _DEBUG symbol defined). Memory tracking is turned off for release builds. @param bool if this is true, then memory will be tracked, and when the FoundationKit::terminate() is called, the system will check how many outstanding objects (i.e. any class instance that derives from VCF::Object directly or indirectly) there are. It will then perform a diagnostic dump, displaying the memory address and the class name of the object instance */ static void trackDebugMemory( const bool& trackMemory ); /** returns whether or not debug memory tracking is on @return bool true if debug memory tracking is turned on, otherwise false */ static bool isDebugMemoryTracked(); /** returns the total number of objects currently allocated. Only meaningful for _DEBUG builds with memory tracking turned on. @return ulong32 if debug memory tracking is turned on, and the _DEBUG symbol is defined, then this value will be the total count of object instances that are currently allocated. For any other conditions it will return 0. */ static ulong32 objectAllocationCount();#ifdef _VCF_DEBUG_NEW public: static Mutex* accessMutex_; static void dumpDebugInfo(); //we're gonna declare operator new here so we can track //VCF related memory leaks void* operator new( size_t allocationSize ); void operator delete( void* objectPointer ); void* operator new( size_t allocationSize, void* p ) { return ::operator new( allocationSize, p ); }#if !defined(VCF_GCC) && !defined(VCF_BCC) void operator delete( void* objectPointer, void* p ) { ::operator delete( objectPointer, p ); }#endif protected: class DebugInfo { public: DebugInfo() : objectAllocationSize_(0), objAddress_(0) { } size_t objectAllocationSize_; unsigned long objAddress_; }; static std::map<unsigned long,DebugInfo> debugAllocationMap; static bool trackingDebugMemory;#endif //_VCF_DEBUG_NEWprotected: /** called by the free() method. Should be overriden and any clean up code performed here */ virtual void destroy(); unsigned long refCount_;private:};};/***CVS Log info*$Log$*Revision 1.6 2006/04/07 02:35:34 ddiego*initial checkin of merge from 0.6.9 dev branch.**Revision 1.4.2.4 2006/03/26 22:37:35 ddiego*minor update to source docs.**Revision 1.4.2.3 2006/03/12 22:01:40 ddiego*doc updates.**Revision 1.4.2.2 2006/03/01 04:34:56 ddiego*fixed tab display to use themes api.**Revision 1.4.2.1 2005/07/27 01:56:23 ddiego*fixed object ptr bug.**Revision 1.4 2005/07/18 03:54:19 ddiego*documentation updates.**Revision 1.3 2004/08/08 22:09:33 ddiego*final checkin before the 0-6-5 release**Revision 1.2 2004/08/07 02:49:14 ddiego*merged in the devmain-0-6-5 branch to stable**Revision 1.1.2.4 2004/07/30 17:28:40 kiklop74*Added first release of Borland midifications for VCF**Revision 1.1.2.3 2004/06/06 07:05:32 marcelloptr*changed macros, text reformatting, copyright sections**Revision 1.1.2.2 2004/04/29 04:07:12 marcelloptr*reformatting of source files: macros and csvlog and copyright sections**Revision 1.1.2.1 2004/04/28 03:29:40 ddiego*migration towards new directory structure**Revision 1.22.4.1 2004/04/26 21:58:20 marcelloptr*changes for dir reorganization: _VCF_MACRO_H__**Revision 1.22 2003/12/18 05:15:57 ddiego*merge from devmain-0-6-2 branch into the stable branch**Revision 1.21.2.3 2003/12/02 22:11:01 ddiego*some minor changes to support Actions. Still not done yet.**Revision 1.21.2.2 2003/10/23 04:24:50 ddiego*more musical chairs with headers again, in yet another attempt to make*them more efficent to speed up compiles.*Removed all teh template RTTI classes and put them all in one header*called VCFRTTIImpl.h. This should help compile speeds a bit.*The next step is to look at some of the event classes and remove ones*that aren't really neccessary - I'd estimate that 50% of the current*event classes are unneccessary and can be removed.**Revision 1.21.2.1 2003/09/16 02:41:54 ddiego*added a small fix for adding a mutex to prevent multithreaded programs from*crashing in debug mode.**Revision 1.21 2003/08/09 02:56:42 ddiego*merge over from the devmain-0-6-1 branch*Changes*Features:*-Added additional implementation to better support the MVC architecture in*the VCF**-Added a Document/View architecure that is similar to MFC's or NextSteps's*Doc/View architectures**-Integrated the Anti Grain Graphics library into the GraphicsKit. There is*now basic support for it in terms of drawing vector shapes*(fills and strokes). Image support will come in the next release**-Added several documented graphics tutorials**Bugfixes:**[ 775744 ] wrong buttons on a dialog*[ 585239 ] Painting weirdness in a modal dialog ?*[ 585238 ] Modal dialog which makes a modal Dialog*[ 509004 ] Opening a modal Dialog causes flicker*[ 524878 ] onDropped not called for MLTcontrol**Plus an issue with some focus and getting the right popup window to activate*has also been fixed**Revision 1.20.2.1 2003/06/13 03:02:35 ddiego*bug fixes for*585238: Modal dialog which makes a modal Dialog*585239: Painting weirdness in a modal dialog*also some clean up of miscellaneous debug trace statements*and implemented task*79266 - change DebugInfo to be stack based**Revision 1.20 2003/05/17 20:37:03 ddiego*this is the checkin for the 0.6.1 release - represents the merge over from*the devmain-0-6-0 branch plus a few minor bug fixes**Revision 1.19.2.1 2003/03/12 03:09:40 ddiego*switched all member variable that used the "m_"<name> prefix to* <name>"_" suffix nameing standard.*Also changed all vcf builder files to accomadate this.*Changes were made to the Stream classes to NOT multiple inheritance and to*be a little more correct. Changes include breaking the FileStream into two*distinct classes, one for input and one for output.**Revision 1.19 2003/02/26 04:30:38 ddiego*merge of code in the devmain-0-5-9 branch into the current tree.*most additions are in the area of the current linux port, but the major*addition to this release is the addition of a Condition class (currently*still under development) and the change over to using the Delegate class*exclusively from the older event handler macros.**Revision 1.18.12.1 2002/11/28 05:12:04 ddiego*modifications to allow the VCF to compile with MinGW. This also cleans up*some warnings with GCC - should improve the linux side as well.*In addition this checkin includes new files for building the VCF under*the DevC++ IDE. these are in the vcf/build/devcpp directory.**Revision 1.18 2002/06/01 21:44:20 ddiego*fixed goof in Object.h from port to linux - made a mistake in one of the operator delete*overloads - correected now**Revision 1.17 2002/05/26 21:19:54 ddiego*added and fixed xmake makefiles for FoundationKit and for the RTTI test*so that this now runs under linux (should work fine for Solaris as well).*Made some changes to Object for removing one of the operator delete() when*using GCC*Other minor changes to files to ensure that they end with a carriage return**Revision 1.16 2002/05/09 03:10:42 ddiego*merged over code from development branch devmain-0-5-1a into the main CVS trunk**Revision 1.15.4.3 2002/04/27 15:42:45 ddiego*removed ApplicationKit.h and optimized header includes as*well as adding better include guard support**Revision 1.15.4.2 2002/03/26 02:35:33 ddiego*fixes include removing the __declspec(export) from the various template based*classes in the VCF. Aparrently this causes problems in VC7.*Also include a feature for memory tracking in debug mode.**Revision 1.15.4.1 2002/03/20 21:56:55 zzack*Changed Include Style of FoundationKit**Revision 1.15 2002/01/24 01:46:47 ddiego*added a cvs "log" comment to the top of all files in vcf/src and vcf/include*to facilitate change tracking* _DEBUG*/#endif // _VCF_OBJECT_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -