NeoN
A framework for CFD software
Loading...
Searching...
No Matches
NeoN::UmpireAllocator Class Reference

#include <umpire.hpp>

Inheritance diagram for NeoN::UmpireAllocator:
NeoN::AllocatorStrategy

Public Member Functions

void * alloc (sizeType size) override
 allocate a block of size bytes
void * realloc (void *ptr, sizeType size) override
 reallocate a block of size bytes
void free (void *ptr) override
 free a block of size bytes
 ~UmpireAllocator () override
Public Member Functions inherited from NeoN::AllocatorStrategy
void setMemSpace (MemorySpace memSpace)
 set tag controlling where allocation happens
virtual ~AllocatorStrategy ()

Additional Inherited Members

Protected Attributes inherited from NeoN::AllocatorStrategy
MemorySpace memSpace_ = MemorySpace::CPU

Detailed Description

Definition at line 46 of file umpire.hpp.

Constructor & Destructor Documentation

◆ ~UmpireAllocator()

NeoN::UmpireAllocator::~UmpireAllocator ( )
inlineoverride

Definition at line 57 of file umpire.hpp.

Member Function Documentation

◆ alloc()

void * NeoN::UmpireAllocator::alloc ( sizeType size)
overridevirtual

allocate a block of size bytes

Implements NeoN::AllocatorStrategy.

◆ free()

void NeoN::UmpireAllocator::free ( void * ptr)
overridevirtual

free a block of size bytes

Implements NeoN::AllocatorStrategy.

◆ realloc()

void * NeoN::UmpireAllocator::realloc ( void * ptr,
sizeType size )
overridevirtual

reallocate a block of size bytes

Implements NeoN::AllocatorStrategy.


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