Arcane  v3.16.6.0
Documentation développeur
Tout Classes Espaces de nommage Fichiers Fonctions Variables Définitions de type Énumérations Valeurs énumérées Amis Macros Groupes Pages Concepts
Référence de la classe TesterMemoryAllocatorV3

Allocateur pour tester les arguments. Plus de détails...

+ Graphe d'héritage de TesterMemoryAllocatorV3:
+ Graphe de collaboration de TesterMemoryAllocatorV3:

Fonctions membres publiques

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
 

Fonctions membres privées statiques

static void _checkValid (MemoryAllocationArgs args)
 

Attributs privés

DefaultMemoryAllocator3 m_default_allocator
 

Description détaillée

Allocateur pour tester les arguments.

Permet de vérifier qu'on a bien appelé avec les bons arguments. On ne doit l'appeler qu'avec args.memoryLocationHint() qui vaut eMemoryLocationHint::None or eMemoryLocationHint::HostAndDeviceMostlyRead

Définition à la ligne 876 du fichier TestArray.cc.

Documentation des fonctions membres

◆ _checkValid()

static void TesterMemoryAllocatorV3::_checkValid ( MemoryAllocationArgs args)
inlinestaticprivate

Définition à la ligne 927 du fichier TestArray.cc.

◆ adjustedCapacity()

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

Définition à la ligne 901 du fichier TestArray.cc.

◆ allocate()

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

Définition à la ligne 886 du fichier TestArray.cc.

◆ deallocate()

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

Définition à la ligne 896 du fichier TestArray.cc.

◆ guaranteedAlignment()

size_t TesterMemoryAllocatorV3::guaranteedAlignment ( MemoryAllocationArgs args) const
inlineoverride

Définition à la ligne 906 du fichier TestArray.cc.

◆ hasRealloc()

bool TesterMemoryAllocatorV3::hasRealloc ( MemoryAllocationArgs args) const
inlineoverride

Définition à la ligne 881 du fichier TestArray.cc.

◆ notifyMemoryArgsChanged()

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

Définition à la ligne 912 du fichier TestArray.cc.

◆ reallocate()

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

Définition à la ligne 891 du fichier TestArray.cc.

Documentation des données membres

◆ m_default_allocator

DefaultMemoryAllocator3 TesterMemoryAllocatorV3::m_default_allocator
private

Définition à la ligne 923 du fichier TestArray.cc.


La documentation de cette classe a été générée à partir du fichier suivant :