Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.3 KiB

  1. // --------------------------------------------------------------------------
  2. // Module Name: DynamicObject.h
  3. //
  4. // Copyright (c) 1999-2000, Microsoft Corporation
  5. //
  6. // Base class that implements operator new and operator delete for memory
  7. // usage tracking.
  8. //
  9. // History: 1999-09-22 vtan created
  10. // 2000-02-01 vtan moved from Neptune to Whistler
  11. // --------------------------------------------------------------------------
  12. #ifndef _DynamicObject_
  13. #define _DynamicObject_
  14. // --------------------------------------------------------------------------
  15. // CDynamicObject
  16. //
  17. // Purpose: This class is a base class that implements operator new and
  18. // operator delete so that memory usage can be tracked. Each time
  19. // an object is created the memory can be added to an array and
  20. // each time it is destroyed it can be removed.
  21. //
  22. // History: 1999-09-22 vtan created
  23. // 2000-02-01 vtan moved from Neptune to Whistler
  24. // --------------------------------------------------------------------------
  25. class CDynamicObject
  26. {
  27. public:
  28. static void* operator new (size_t uiSize);
  29. static void operator delete (void *pvObject);
  30. };
  31. #endif /* _DynamicObject_ */