Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::IMemoryPool Class Referenceabstract

Interface of a memory pool. More...

#include </__w/arcaneframework.github.io/arcaneframework.github.io/framework/arccore/src/common/arccore/common/IMemoryPool.h>

Inheritance diagram for Arcane::IMemoryPool:
Collaboration diagram for Arcane::IMemoryPool:

Public Member Functions

virtual void setMaxCachedBlockSize (Int32 v)=0
 Sets the byte size from which a block is not kept in the cache.
virtual void freeCachedMemory ()=0
 Frees the memory in the cache.
virtual Int64 totalAllocated () const =0
 Total size (in bytes) allocated in the memory pool.
virtual Int64 totalCached () const =0
 Total size (in bytes) in the cache.

Detailed Description

Interface of a memory pool.

Definition at line 31 of file IMemoryPool.h.

Member Function Documentation

◆ freeCachedMemory()

virtual void Arcane::IMemoryPool::freeCachedMemory ( )
pure virtual

Frees the memory in the cache.

Implemented in Arcane::Impl::MemoryPool.

◆ setMaxCachedBlockSize()

virtual void Arcane::IMemoryPool::setMaxCachedBlockSize ( Int32 v)
pure virtual

Sets the byte size from which a block is not kept in the cache.

This method can only be called if there are no blocks in the cache.

Implemented in Arcane::Impl::MemoryPool.

◆ totalAllocated()

virtual Int64 Arcane::IMemoryPool::totalAllocated ( ) const
pure virtual

Total size (in bytes) allocated in the memory pool.

Implemented in Arcane::Impl::MemoryPool.

◆ totalCached()

virtual Int64 Arcane::IMemoryPool::totalCached ( ) const
pure virtual

Total size (in bytes) in the cache.

Implemented in Arcane::Impl::MemoryPool.


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