//------------------------------------------------------------------- // __Pointer_Map.h //------------------------------------------------------------------- #ifndef __POINTER_MAP_H #define __POINTER_MAP_H class __Pointer_Map { public: __Pointer_Map (); void Report_Error (char* msg, long l, char* f); void Add (void* a, long& t, long l, char* f); void Remove (void* a); bool Contains (void* a, long t); void Report_Allocation (); private: const int table_size = 1999; struct Node { void* address; long timestamp; long line_number; char* file_name; Node* next; }; long nextstamp; Node* map[table_size]; }; #endif // __POINTER_MAP_H