Photon Fusion 2.0.0

Public Member Functions | List of all members
DynamicHeapInstance Class Reference

Dynamic heap instance. More...

Public Member Functions

void * Allocate (int size)
 Allocate a pointer.
 
void * AllocateArray< T > (int length)
 Allocate a pointer array.
 
void * AllocateArrayPointers< T > (int length)
 Allocate an array of pointers.
 
void * AllocateTracked< T > (bool root=false)
 Allocate a tracked pointer.
 
void * AllocateTrackedArray< T > (int length, bool root=false)
 Allocate a tracked pointer array.
 
void * AllocateTrackedArrayPointers< T > (int length, bool root=false)
 Allocate a tracked array of pointers.
 
 DynamicHeapInstance (params Type[] types)
 Create a dynamic heap instance.
 
void Free (void *ptr)
 Free a pointer.
 

Detailed Description

Dynamic heap instance.

Constructor & Destructor Documentation

◆ DynamicHeapInstance()

DynamicHeapInstance ( params Type[]  types)

Create a dynamic heap instance.

Parameters
typesTypes to allocate.

Member Function Documentation

◆ Allocate()

void * Allocate ( int  size)

Allocate a pointer.

Parameters
sizeSize to allocate.
Returns
Pointer to allocated memory.

◆ AllocateArray< T >()

void * AllocateArray< T > ( int  length)

Allocate a pointer array.

Parameters
lengthLength of array.
Template Parameters
TType of array.
Returns
Pointer to allocated memory.
Type Constraints
T :unmanaged 

◆ AllocateArrayPointers< T >()

void * AllocateArrayPointers< T > ( int  length)

Allocate an array of pointers.

Parameters
lengthLength of array.
Template Parameters
TType of array.
Returns
Pointer to allocated memory.
Type Constraints
T :unmanaged 

◆ AllocateTracked< T >()

void * AllocateTracked< T > ( bool  root = false)

Allocate a tracked pointer.

Parameters
rootSignal if the pointer is a root.
Template Parameters
TType of pointer.
Returns
Pointer to allocated memory.
Type Constraints
T :unmanaged 

◆ AllocateTrackedArray< T >()

void * AllocateTrackedArray< T > ( int  length,
bool  root = false 
)

Allocate a tracked pointer array.

Parameters
lengthLength of array.
rootSignal if the pointer is a root.
Template Parameters
TType of array.
Returns
Pointer to allocated memory.
Type Constraints
T :unmanaged 

◆ AllocateTrackedArrayPointers< T >()

void * AllocateTrackedArrayPointers< T > ( int  length,
bool  root = false 
)

Allocate a tracked array of pointers.

Parameters
lengthLength of array.
rootSignal if the pointer is a root.
Template Parameters
TType of array.
Returns
Pointer to allocated memory.
Type Constraints
T :unmanaged 

◆ Free()

void Free ( void *  ptr)

Free a pointer.

Parameters
ptrPointer to free.