BASE::RCHandleNewDelete Class Reference
Base class for all types that might becreated and destroyed in different memory contexts.
More...
Inherited by BASE::RCComponent, BASE::RCLogMessage, BASE::RCParamHandler, BASE::RCParamMemberHandler, BASE::RCRtlComponentTypeReg, BASE::TRCComponentPtrMap< TComponent >, GUIBASE::RCControlHandler, GUIBASE::RCDynamicViewState, GUIBASE::RCWindowState, PHYSICS::RCPhysicsBody, PHYSICS::RCPhysicsEngine, SIMBASE::RCSyncSimAccessRequest [private], and VIEW3D::RCVisualEngine.
Inheritance diagram for BASE::RCHandleNewDelete:
[legend]List of all members.
|
Public Member Functions |
|
void * | operator new (size_t nSize) |
|
void | operator delete (void *pData) |
|
void * | operator new (size_t nSize, void *pPlacement) |
|
void | operator delete (void *pData, void *pPlacement) |
Detailed Description
Base class for all types that might becreated and destroyed in different memory contexts.
- Author:
- Patrik Stellmann
When creating an instance in one memory scope - that is a dll or application - with the new operator and it's destroyed with delete in another scope an exceptionis usually thrown. This base class solves such a problem since it overloads the new and delete operators and thus all derived classes are always creted and destroyed in the same memory scope. Thsi is especially useful for templates where you often can't know in wich scope the current instance is created since templates might be compiled in every dll again.
The documentation for this class was generated from the following files:
- base.hpp
- handlenewdelete.cpp
Generated on Thu Feb 16 12:46:22 2006 for Simulator Bob by
1.4.6-NO