Photon Quantum 3.0.0

Public Member Functions | List of all members
Quantum.Allocator.IHeapAllocationTracker Interface Reference

Interface of the heap allocation tracker. More...

Inheritance diagram for Quantum.Allocator.IHeapAllocationTracker:
Quantum.Allocator.SimpleHeapAllocTracker Quantum.Allocator.TracedHeapAllocTracker

Public Member Functions

bool CheckAllocations (ICollection< Ptr > ptrs)
 Evaulate all allocations and check for leaks. More...
 
void Reset ()
 Reset the tracker. More...
 
void TrackAlloc (Ptr ptr)
 Track an allocation. More...
 
void TrackFree (Ptr ptr)
 Track a deallocation. More...
 

Detailed Description

Interface of the heap allocation tracker.

Member Function Documentation

◆ Reset()

void Quantum.Allocator.IHeapAllocationTracker.Reset ( )

◆ TrackAlloc()

void Quantum.Allocator.IHeapAllocationTracker.TrackAlloc ( Ptr  ptr)

Track an allocation.

Parameters
ptrPtr

◆ TrackFree()

void Quantum.Allocator.IHeapAllocationTracker.TrackFree ( Ptr  ptr)

Track a deallocation.

Parameters
ptr

◆ CheckAllocations()

bool Quantum.Allocator.IHeapAllocationTracker.CheckAllocations ( ICollection< Ptr ptrs)

Evaulate all allocations and check for leaks.

Parameters
ptrsPtr collection to check
Returns
Returns true, if there are no leaks.