|
NeoN
A framework for CFD software
|
#include <allocator.hpp>
Public Member Functions | |
| void | setMemSpace (MemorySpace memSpace) |
| set tag controlling where allocation happens | |
| virtual void * | alloc (size_t size)=0 |
| allocate a block of size bytes | |
| virtual void * | realloc (void *ptr, size_t size)=0 |
| reallocate a block of size bytes | |
| virtual void | free (void *ptr)=0 |
| free a block of size bytes | |
| virtual | ~AllocatorStrategy () |
Protected Attributes | |
| MemorySpace | memSpace_ = MemorySpace::CPU |
Definition at line 23 of file allocator.hpp.
|
inlinevirtual |
Definition at line 45 of file allocator.hpp.
|
pure virtual |
allocate a block of size bytes
Implemented in NeoN::KokkosAllocator, NeoN::UmpireAllocator, and NeoN::UmpirePoolAllocator.
free a block of size bytes
Implemented in NeoN::KokkosAllocator, NeoN::UmpireAllocator, and NeoN::UmpirePoolAllocator.
reallocate a block of size bytes
Implemented in NeoN::KokkosAllocator, NeoN::UmpireAllocator, and NeoN::UmpirePoolAllocator.
|
inline |
set tag controlling where allocation happens
Definition at line 34 of file allocator.hpp.
|
protected |
Definition at line 29 of file allocator.hpp.