Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
TesterMemoryAllocatorV3 Class Reference

Allocator for testing arguments. More...

Inheritance diagram for TesterMemoryAllocatorV3:
Collaboration diagram for TesterMemoryAllocatorV3:

Public Member Functions

bool hasRealloc (MemoryAllocationArgs args) const override
AllocatedMemoryInfo allocate (MemoryAllocationArgs args, Int64 new_size) override
AllocatedMemoryInfo reallocate (MemoryAllocationArgs args, AllocatedMemoryInfo current_ptr, Int64 new_size) override
void deallocate (MemoryAllocationArgs args, AllocatedMemoryInfo ptr) override
Int64 adjustedCapacity (MemoryAllocationArgs args, Int64 wanted_capacity, Int64 element_size) const override
size_t guaranteedAlignment (MemoryAllocationArgs args) const override
void notifyMemoryArgsChanged (MemoryAllocationArgs old_args, MemoryAllocationArgs new_args, AllocatedMemoryInfo ptr) override

Static Private Member Functions

static void _checkValid (MemoryAllocationArgs args)

Private Attributes

DefaultMemoryAllocator3 m_default_allocator

Detailed Description

Allocator for testing arguments.

Allows verification that it was called with the correct arguments. It should only be called with args.memoryLocationHint() which equals eMemoryLocationHint::None or eMemoryLocationHint::HostAndDeviceMostlyRead

Definition at line 876 of file TestArray.cc.

Member Function Documentation

◆ _checkValid()

void TesterMemoryAllocatorV3::_checkValid ( MemoryAllocationArgs args)
inlinestaticprivate

Definition at line 927 of file TestArray.cc.

◆ adjustedCapacity()

Int64 TesterMemoryAllocatorV3::adjustedCapacity ( MemoryAllocationArgs args,
Int64 wanted_capacity,
Int64 element_size ) const
inlineoverride

Definition at line 901 of file TestArray.cc.

◆ allocate()

AllocatedMemoryInfo TesterMemoryAllocatorV3::allocate ( MemoryAllocationArgs args,
Int64 new_size )
inlineoverride

Definition at line 886 of file TestArray.cc.

◆ deallocate()

void TesterMemoryAllocatorV3::deallocate ( MemoryAllocationArgs args,
AllocatedMemoryInfo ptr )
inlineoverride

Definition at line 896 of file TestArray.cc.

◆ guaranteedAlignment()

size_t TesterMemoryAllocatorV3::guaranteedAlignment ( MemoryAllocationArgs args) const
inlineoverride

Definition at line 906 of file TestArray.cc.

◆ hasRealloc()

bool TesterMemoryAllocatorV3::hasRealloc ( MemoryAllocationArgs args) const
inlineoverride

Definition at line 881 of file TestArray.cc.

◆ notifyMemoryArgsChanged()

void TesterMemoryAllocatorV3::notifyMemoryArgsChanged ( MemoryAllocationArgs old_args,
MemoryAllocationArgs new_args,
AllocatedMemoryInfo ptr )
inlineoverride

Definition at line 912 of file TestArray.cc.

◆ reallocate()

AllocatedMemoryInfo TesterMemoryAllocatorV3::reallocate ( MemoryAllocationArgs args,
AllocatedMemoryInfo current_ptr,
Int64 new_size )
inlineoverride

Definition at line 891 of file TestArray.cc.

Member Data Documentation

◆ m_default_allocator

DefaultMemoryAllocator3 TesterMemoryAllocatorV3::m_default_allocator
private

Definition at line 923 of file TestArray.cc.


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