CppUTest Documentation
 All Classes
Public Types | Public Member Functions | List of all members
MemoryLeakDetector Class Reference

Public Types

enum  { memory_corruption_buffer_size = 3 }
 

Public Member Functions

 MemoryLeakDetector (MemoryLeakFailure *reporter)
 
void enable ()
 
void disable ()
 
void disableAllocationTypeChecking ()
 
void enableAllocationTypeChecking ()
 
void startChecking ()
 
void stopChecking ()
 
const char * report (MemLeakPeriod period)
 
void markCheckingPeriodLeaksAsNonCheckingPeriod ()
 
int totalMemoryLeaks (MemLeakPeriod period)
 
void clearAllAccounting (MemLeakPeriod period)
 
char * allocMemory (TestMemoryAllocator *allocator, size_t size, bool allocatNodesSeperately=false)
 
char * allocMemory (TestMemoryAllocator *allocator, size_t size, const char *file, int line, bool allocatNodesSeperately=false)
 
void deallocMemory (TestMemoryAllocator *allocator, void *memory, bool allocatNodesSeperately=false)
 
void deallocMemory (TestMemoryAllocator *allocator, void *memory, const char *file, int line, bool allocatNodesSeperately=false)
 
char * reallocMemory (TestMemoryAllocator *allocator, char *memory, size_t size, const char *file, int line, bool allocatNodesSeperately=false)
 
void invalidateMemory (char *memory)
 
void removeMemoryLeakInformationWithoutCheckingOrDeallocating (void *memory)
 
unsigned getCurrentAllocationNumber ()
 

The documentation for this class was generated from the following file: