home *** CD-ROM | disk | FTP | other *** search
/ Borland Programmer's Resource / Borland_Programmers_Resource_CD_1995.iso / code / bcpp / file3 / heap.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-05-19  |  622 b   |  30 lines

  1. /*---------------------------------------------------------*/
  2. /*                                                         */
  3. /*   Heap.h : Header file for Heap.cpp                     */
  4. /*---------------------------------------------------------*/
  5.  
  6. #if ! defined( __Heap_H ) && defined(Uses_THeapView)
  7. #define __Heap_H
  8.  
  9.  
  10. class TRect;
  11.  
  12. class THeapView : public TView
  13. {
  14.  
  15. public:
  16.  
  17.     THeapView( TRect& r = TRect(0, 0, 0, 0) );
  18.     virtual void update();
  19.     virtual void draw();
  20.     virtual long heapSize();
  21.  
  22. private:
  23.  
  24.     long oldMem, newMem;
  25.     char heapStr[16];
  26.  
  27. };
  28.  
  29. #endif      // __Heap_H
  30.