NeoN
A framework for CFD software
Loading...
Searching...
No Matches
Public Member Functions | List of all members
NeoN::UmpireAllocator Class Reference

#include <umpire.hpp>

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

Public Member Functions

void * alloc (size_t size) override
 allocate a block of size bytes
 
voidrealloc (void *ptr, size_t 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 47 of file umpire.hpp.

Constructor & Destructor Documentation

◆ ~UmpireAllocator()

NeoN::UmpireAllocator::~UmpireAllocator ( )
inlineoverride

Definition at line 58 of file umpire.hpp.

Member Function Documentation

◆ alloc()

void * NeoN::UmpireAllocator::alloc ( size_t  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,
size_t  size 
)
overridevirtual

reallocate a block of size bytes

Implements NeoN::AllocatorStrategy.


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