Ark Server API (ASE) - Wiki
Loading...
Searching...
No Matches
FHeapAllocator::ForAnyElementType Class Reference

#include <ContainerAllocationPolicies.h>

+ Inheritance diagram for FHeapAllocator::ForAnyElementType:
+ Collaboration diagram for FHeapAllocator::ForAnyElementType:

Public Member Functions

 ForAnyElementType ()
 
FORCEINLINE void MoveToEmpty (ForAnyElementType &Other)
 
FORCEINLINE ~ForAnyElementType ()
 
FORCEINLINE FScriptContainerElementGetAllocation () const
 
FORCEINLINE void ResizeAllocation (int32 PreviousNumElements, int32 NumElements, SIZE_T NumBytesPerElement)
 
FORCEINLINE int32 CalculateSlackReserve (int32 NumElements, int32 NumBytesPerElement) const
 
FORCEINLINE int32 CalculateSlackShrink (int32 NumElements, int32 NumAllocatedElements, int32 NumBytesPerElement) const
 
FORCEINLINE int32 CalculateSlackGrow (int32 NumElements, int32 NumAllocatedElements, int32 NumBytesPerElement) const
 
SIZE_T GetAllocatedSize (int32 NumAllocatedElements, SIZE_T NumBytesPerElement) const
 
bool HasAllocation ()
 

Private Member Functions

 ForAnyElementType (const ForAnyElementType &)
 
ForAnyElementTypeoperator= (const ForAnyElementType &)
 

Private Attributes

FScriptContainerElementData
 

Detailed Description

Definition at line 328 of file ContainerAllocationPolicies.h.

Constructor & Destructor Documentation

◆ ForAnyElementType() [1/2]

FHeapAllocator::ForAnyElementType::ForAnyElementType ( )
inline

Default constructor.

Definition at line 332 of file ContainerAllocationPolicies.h.

◆ ~ForAnyElementType()

FORCEINLINE FHeapAllocator::ForAnyElementType::~ForAnyElementType ( )
inline

Destructor.

Definition at line 355 of file ContainerAllocationPolicies.h.

+ Here is the call graph for this function:

◆ ForAnyElementType() [2/2]

FHeapAllocator::ForAnyElementType::ForAnyElementType ( const ForAnyElementType & )
private

Member Function Documentation

◆ CalculateSlackGrow()

FORCEINLINE int32 FHeapAllocator::ForAnyElementType::CalculateSlackGrow ( int32 NumElements,
int32 NumAllocatedElements,
int32 NumBytesPerElement ) const
inline

Definition at line 385 of file ContainerAllocationPolicies.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CalculateSlackReserve()

FORCEINLINE int32 FHeapAllocator::ForAnyElementType::CalculateSlackReserve ( int32 NumElements,
int32 NumBytesPerElement ) const
inline

Definition at line 377 of file ContainerAllocationPolicies.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CalculateSlackShrink()

FORCEINLINE int32 FHeapAllocator::ForAnyElementType::CalculateSlackShrink ( int32 NumElements,
int32 NumAllocatedElements,
int32 NumBytesPerElement ) const
inline

Definition at line 381 of file ContainerAllocationPolicies.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetAllocatedSize()

SIZE_T FHeapAllocator::ForAnyElementType::GetAllocatedSize ( int32 NumAllocatedElements,
SIZE_T NumBytesPerElement ) const
inline

Definition at line 390 of file ContainerAllocationPolicies.h.

◆ GetAllocation()

FORCEINLINE FScriptContainerElement * FHeapAllocator::ForAnyElementType::GetAllocation ( ) const
inline

Definition at line 364 of file ContainerAllocationPolicies.h.

+ Here is the caller graph for this function:

◆ HasAllocation()

bool FHeapAllocator::ForAnyElementType::HasAllocation ( )
inline

Definition at line 395 of file ContainerAllocationPolicies.h.

◆ MoveToEmpty()

FORCEINLINE void FHeapAllocator::ForAnyElementType::MoveToEmpty ( ForAnyElementType & Other)
inline

Moves the state of another allocator into this one. Assumes that the allocator is currently empty, i.e. memory may be allocated but any existing elements have already been destructed (if necessary).

Parameters
Other- The allocator to move the state from. This allocator should be left in a valid empty state.

Definition at line 341 of file ContainerAllocationPolicies.h.

+ Here is the call graph for this function:

◆ operator=()

ForAnyElementType & FHeapAllocator::ForAnyElementType::operator= ( const ForAnyElementType & )
private

◆ ResizeAllocation()

FORCEINLINE void FHeapAllocator::ForAnyElementType::ResizeAllocation ( int32 PreviousNumElements,
int32 NumElements,
SIZE_T NumBytesPerElement )
inline

Definition at line 368 of file ContainerAllocationPolicies.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ Data

FScriptContainerElement* FHeapAllocator::ForAnyElementType::Data
private

A pointer to the container's elements.

Definition at line 405 of file ContainerAllocationPolicies.h.


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