Arcane  v3.15.3.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
Référence de la classe Arcane::impl::StackMemoryAllocatorfinal

Allocateur avec buffer pré-alloué. Plus de détails...

#include <arcane/utils/SmallArray.h>

+ Graphe d'héritage de Arcane::impl::StackMemoryAllocator:
+ Graphe de collaboration de Arcane::impl::StackMemoryAllocator:

Fonctions membres publiques

 StackMemoryAllocator (void *buf, size_t size)
 
bool hasRealloc (MemoryAllocationArgs) const final
 
AllocatedMemoryInfo allocate (MemoryAllocationArgs args, Int64 new_size) final
 
AllocatedMemoryInfo reallocate (MemoryAllocationArgs args, AllocatedMemoryInfo current_ptr, Int64 new_size) final
 
void deallocate (MemoryAllocationArgs args, AllocatedMemoryInfo ptr) final
 
Int64 adjustedCapacity (MemoryAllocationArgs, Int64 wanted_capacity, Int64) const final
 
size_t guaranteedAlignment (MemoryAllocationArgs) const final
 

Attributs privés

voidm_preallocated_buffer = nullptr
 
Int64 m_preallocated_size = 0
 

Description détaillée

Allocateur avec buffer pré-alloué.

Le buffer pré-alloué m_preallocated_buffer est utilisé lorsque la taille demandée pour l'allocation est inférieure ou égale à m_preallocated_size.

Le buffer utilisé doit rester valide durant toute la durée de vie de l'allocateur.

Définition à la ligne 38 du fichier SmallArray.h.

Documentation des constructeurs et destructeur

◆ StackMemoryAllocator()

Arcane::impl::StackMemoryAllocator::StackMemoryAllocator ( void buf,
size_t  size 
)
inline

Définition à la ligne 43 du fichier SmallArray.h.

Documentation des fonctions membres

◆ adjustedCapacity()

Int64 Arcane::impl::StackMemoryAllocator::adjustedCapacity ( MemoryAllocationArgs  ,
Int64  wanted_capacity,
Int64   
) const
inlinefinal

Définition à la ligne 54 du fichier SmallArray.h.

◆ allocate()

AllocatedMemoryInfo Arcane::impl::StackMemoryAllocator::allocate ( MemoryAllocationArgs  args,
Int64  new_size 
)
final

Définition à la ligne 34 du fichier SmallArray.cc.

◆ deallocate()

void Arcane::impl::StackMemoryAllocator::deallocate ( MemoryAllocationArgs  args,
AllocatedMemoryInfo  ptr 
)
final

Définition à la ligne 90 du fichier SmallArray.cc.

◆ guaranteedAlignment()

size_t Arcane::impl::StackMemoryAllocator::guaranteedAlignment ( MemoryAllocationArgs  ) const
inlinefinal

Définition à la ligne 55 du fichier SmallArray.h.

◆ hasRealloc()

bool Arcane::impl::StackMemoryAllocator::hasRealloc ( MemoryAllocationArgs  ) const
inlinefinal

Définition à la ligne 50 du fichier SmallArray.h.

◆ reallocate()

AllocatedMemoryInfo Arcane::impl::StackMemoryAllocator::reallocate ( MemoryAllocationArgs  args,
AllocatedMemoryInfo  current_ptr,
Int64  new_size 
)
final

Définition à la ligne 51 du fichier SmallArray.cc.

Documentation des données membres

◆ m_preallocated_buffer

void* Arcane::impl::StackMemoryAllocator::m_preallocated_buffer = nullptr
private

Définition à la ligne 59 du fichier SmallArray.h.

◆ m_preallocated_size

Int64 Arcane::impl::StackMemoryAllocator::m_preallocated_size = 0
private

Définition à la ligne 60 du fichier SmallArray.h.


La documentation de cette classe a été générée à partir des fichiers suivants :