zpp
Zephyr C++20 Framework
|
heap reference class More...
#include <heap.hpp>
Public Member Functions | |
constexpr | heap_ref (native_pointer h) noexcept |
reference native heap object More... | |
template<class T_Heap > | |
constexpr | heap_ref (T_Heap &h) noexcept |
reference heap object More... | |
constexpr heap_ref & | operator= (native_pointer h) noexcept |
assign new native heap object More... | |
template<class T_Heap > | |
constexpr heap_ref & | operator= (T_Heap &rhs) noexcept |
assign new heap object More... | |
constexpr auto | native_handle () noexcept -> native_pointer |
get the native zephyr heap handle. More... | |
constexpr auto | native_handle () const noexcept -> native_const_pointer |
get the native zephyr heap handle. More... | |
heap_ref ()=delete | |
Public Member Functions inherited from zpp::base_heap< heap_ref > | |
base_heap (const base_heap &)=delete | |
base_heap (base_heap &&)=delete | |
void * | allocate (size_t bytes) noexcept |
Allocate memory from this heap wainting forever. More... | |
void * | allocate (size_t bytes, size_t align) noexcept |
Allocate memory from this heap waiting forever. More... | |
void * | try_allocate (size_t bytes) noexcept |
Allocate memory from this heap without waiting. More... | |
void * | try_allocate (size_t bytes, size_t align) noexcept |
Allocate memory from this heap without waiting. More... | |
void * | try_allocate_for (size_t bytes, const std::chrono::duration< T_Rep, T_Period > &timeout) noexcept |
Allocate memory from this heap waiting with a timeout. More... | |
void * | try_allocate_for (size_t bytes, size_t align, const std::chrono::duration< T_Rep, T_Period > &timeout) noexcept |
Allocate memory from this heap waiting with a timeout. More... | |
void | deallocate (void *mem) noexcept |
Deallocate memory previously allocated. More... | |
auto | native_handle () noexcept -> native_pointer |
get the native zephyr heap handle. More... | |
auto | native_handle () const noexcept -> native_const_pointer |
get the native zephyr heap handle. More... | |
base_heap & | operator= (const base_heap &)=delete |
base_heap & | operator= (base_heap &&)=delete |
Additional Inherited Members | |
Public Types inherited from zpp::base_heap< heap_ref > | |
using | native_type = struct k_heap |
using | native_pointer = native_type * |
using | native_const_pointer = native_type const * |
Protected Member Functions inherited from zpp::base_heap< heap_ref > | |
constexpr | base_heap () noexcept |
default protected constructor so only derived objects can be created More... | |
heap reference class
|
inlineexplicitconstexprnoexcept |
|
inlineexplicitconstexprnoexcept |
|
delete |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
assign new native heap object
h | the native heap object |
|
inlineconstexprnoexcept |