#include <arena_resource.hh>
|
| ArenaResource (size_t buffer_size, size_t simd_alignment) |
|
| ~ArenaResource ()=default |
|
Resource & | resource () |
| Getter for resource. More...
|
|
template<class T > |
T * | allocate_8 (size_t n_items) |
| Allocate and return data pointer of n_item array of type T (alignment to length 8 bytes) More...
|
|
template<class T > |
T * | allocate_simd (size_t n_items) |
| Allocate and return data pointer of n_item array of type T (alignment to length given by simd_alignment constructor argument) More...
|
|
void | reset () |
|
template<class Resource>
class ArenaResource< Resource >
Definition at line 18 of file arena_resource.hh.
◆ ArenaResource()
template<class Resource >
◆ ~ArenaResource()
template<class Resource >
◆ allocate_8()
template<class Resource >
template<class T >
Allocate and return data pointer of n_item array of type T (alignment to length 8 bytes)
Definition at line 41 of file arena_resource.hh.
◆ allocate_simd()
template<class Resource >
template<class T >
Allocate and return data pointer of n_item array of type T (alignment to length given by simd_alignment constructor argument)
Definition at line 48 of file arena_resource.hh.
◆ do_allocate()
template<class Resource >
void* ArenaResource< Resource >::do_allocate |
( |
size_t |
bytes, |
|
|
size_t |
alignment |
|
) |
| |
|
inlineoverrideprotected |
Override do_allocate to handle allocation logic.
Definition at line 60 of file arena_resource.hh.
◆ do_deallocate()
template<class Resource >
Override do_deallocate (no-op for monotonic buffer)
Definition at line 69 of file arena_resource.hh.
◆ do_is_equal()
template<class Resource >
bool ArenaResource< Resource >::do_is_equal |
( |
const std::pmr::memory_resource & |
other | ) |
const |
|
inlineoverrideprotectednoexcept |
Override do_is_equal for memory resource comparison.
Definition at line 74 of file arena_resource.hh.
◆ reset()
template<class Resource >
◆ resource()
template<class Resource >
◆ buffer
template<class Resource >
◆ buffer_size
template<class Resource >
◆ resource_
template<class Resource >
◆ simd_alignment_
template<class Resource >
The documentation for this class was generated from the following file: