ArenaMemoryResource

Serves allocations from a preallocated memory region.

Windows
MacOS
Linux

Inheritance Hierarchy

MemoryResource

ArenaMemoryResource

References

Module

RigLogicLib

Header

/Engine/Plugins/Animation/RigLogic/Source/RigLogicLib/Public/pma/resources/ArenaMemoryResource.h

Include

#include "pma/resources/ArenaMemoryResource.h"

Syntax

class ArenaMemoryResource : public pma::MemoryResource

Remarks

Serves allocations from a preallocated memory region.

Constructors

Name Description

Public function

ArenaMemoryResource

(
    const ArenaMemoryResource&
)

Public function

ArenaMemoryResource

(
    ArenaMemoryResource&&
)

Public function

ArenaMemoryResource

(
    std::size_t regionSize,
    MemoryResource* upstream
)

Constructor.

Public function

ArenaMemoryResource

(
    std::size_t regionSize,
    float growthFactor,
    MemoryResource* upstream
)

Constructor.

Public function

ArenaMemoryResource

(
    std::size_t initialSize,
    std::size_t regionSize,
    float growthFactor,
    MemoryResource* upstream
)

Constructor.

Destructors

Name Description

Public function

~ArenaMemoryResource()

Functions

Name Description

Public function Const

MemoryResour...

 

getUpstreamMemoryResource()

The upstream memory resource was passed through the constructor and is backing all arena allocations.

Overridden from MemoryResource

Name Description

Public function Virtual

void *

 

allocate

(
    std::size_t size,
    std::size_t alignment
)

All allocations will be served from the currently active memory region.

Public function Virtual

void

 

deallocate

(
    void* ptr,
    std::size_t size,
    std::size_t alignment
)

This is a no-op, and the regions are only freed when the arena itself is destroyed.

Operators

Name Description

Public function

ArenaMemoryR...

 

operator=

(
    const ArenaMemoryResource&
)

Public function

ArenaMemoryR...

 

operator=

(
    ArenaMemoryResource&&
)

Classes

Name

Description

Public class

Impl

See Also

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss