Navigation
API > API/Plugins > API/Plugins/RigLogicLib
| Name | PolyAllocator |
| Type | class |
| Header File | /Engine/Plugins/Animation/RigLogic/Source/RigLogicLib/Public/pma/PolyAllocator.h |
| Include Path | #include "pma/PolyAllocator.h" |
Syntax
template<typename T, std::size_t Alignment, class TDefaultMemoryResource>
class PolyAllocator
Inheritance Hierarchy
- PolyAllocator
- std::scoped_allocator_adaptor< impl::PolyAllocator< T, alignof(typename impl::max_align_of< T, impl::min_align_t >::type), DefaultMemoryResource > > → PolyAllocator
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| pma/PolyAllocator.h | |||
PolyAllocator
(
MemoryResource* memRes |
pma/PolyAllocator.h | ||
PolyAllocator
(
std::nullptr_t |
pma/PolyAllocator.h | ||
PolyAllocator
(
const PolyAllocator< U, UAlignment, UDefaultMemoryResource >& rhs |
pma/PolyAllocator.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| traits_type | std::allocator_traits< PolyAllocator > | pma/PolyAllocator.h | |
| value_type | T | pma/PolyAllocator.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| pMemRes | MemoryResource * | pma/PolyAllocator.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
value_type * allocate
(
std::size_t count |
Allocation function as requested by standard-library containers. | pma/PolyAllocator.h | |
void * allocateBytes
(
std::size_t size, |
pma/PolyAllocator.h | ||
std::enable_if::value, U * >::type allocateObject
(
std::size_t count, |
pma/PolyAllocator.h | ||
void deallocate
(
value_type* ptr, |
Deallocation function as requested by standard-library containers. | pma/PolyAllocator.h | |
void deallocateBytes
(
void* ptr, |
pma/PolyAllocator.h | ||
std::enable_if::value >::type deallocateObject
(
U* ptr, |
pma/PolyAllocator.h | ||
void deleteObject
(
U* ptr |
pma/PolyAllocator.h | ||
MemoryResource * getMemoryResource() |
pma/PolyAllocator.h | ||
U * newObject
(
Args&&... args |
pma/PolyAllocator.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static std::size_t getAlignment() |
pma/PolyAllocator.h |