Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
Arcane::IMemoryResourceMng Class Referenceabstract

Public Member Functions

virtual IMemoryAllocatorgetAllocator (eMemoryResource r)=0
 Memory allocator for resource r.
virtual IMemoryAllocatorgetAllocator (eMemoryResource r, bool throw_if_not_found)=0
 Memory allocator for resource r.
virtual IMemoryPoolgetMemoryPoolOrNull (eMemoryResource r)=0
 Memory pool for resource r.
virtual IMemoryResourceMngInternal * _internal ()=0
 Internal interface.

Detailed Description

Definition at line 32 of file IMemoryResourceMng.h.

Member Function Documentation

◆ getAllocator() [1/2]

virtual IMemoryAllocator * Arcane::IMemoryResourceMng::getAllocator ( eMemoryResource r)
pure virtual

Memory allocator for resource r.

Throws an exception if no allocator for resource v exists.

Referenced by Arcane::MemoryUtils::getDeviceOrHostAllocator().

◆ getAllocator() [2/2]

virtual IMemoryAllocator * Arcane::IMemoryResourceMng::getAllocator ( eMemoryResource r,
bool throw_if_not_found )
pure virtual

Memory allocator for resource r.

If no allocator for resource v exists, throws an exception if throw_if_not_found is true or returns nullptr if throw_if_not_found is false.

◆ getMemoryPoolOrNull()

virtual IMemoryPool * Arcane::IMemoryResourceMng::getMemoryPoolOrNull ( eMemoryResource r)
pure virtual

Memory pool for resource r.

Returns the memory pool associated with resource v or nullptr if there is none.


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