Quantum 3 3.0.11

Static Public Member Functions | List of all members
Quantum.Allocator.HeapAllocationTrackerExt Class Reference

Extension methods for the IHeapAllocationTracker. More...

Static Public Member Functions

static void CheckAllocationsDebug< T > (this T t, ICollection< Ptr > ptrs)
 Wrap the leak detection around DEBUG define. More...
 
static void TrackAllocDebug< T > (this T t, Ptr ptr)
 Wrap tracking allocations around the DEBUG define. More...
 
static void TrackFreeDebug< T > (this T t, Ptr ptr)
 Wrap tracking deallocations around the DEBUG define. More...
 

Detailed Description

Extension methods for the IHeapAllocationTracker.

Member Function Documentation

◆ TrackAllocDebug< T >()

static void Quantum.Allocator.HeapAllocationTrackerExt.TrackAllocDebug< T > ( this T  t,
Ptr  ptr 
)
inlinestatic

Wrap tracking allocations around the DEBUG define.

Template Parameters
TType of allocation tracker
Parameters
tTracker instance
ptrPtr to track
Type Constraints
T :IHeapAllocationTracker 

◆ TrackFreeDebug< T >()

static void Quantum.Allocator.HeapAllocationTrackerExt.TrackFreeDebug< T > ( this T  t,
Ptr  ptr 
)
inlinestatic

Wrap tracking deallocations around the DEBUG define.

Template Parameters
TType of allocation tracker
Parameters
tTracker instance
ptrPtr to track
Type Constraints
T :IHeapAllocationTracker 

◆ CheckAllocationsDebug< T >()

static void Quantum.Allocator.HeapAllocationTrackerExt.CheckAllocationsDebug< T > ( this T  t,
ICollection< Ptr ptrs 
)
inlinestatic

Wrap the leak detection around DEBUG define.

Template Parameters
TType of allocation tracker
Parameters
tTracker instance
ptrsPtrs to validate
Type Constraints
T :IHeapAllocationTracker