mn::memory::basic_multiheap_allocator_impl< TBytes > Class Template Reference

#include <mn_basic_multiheap_allocator.hpp>

Public Types

using allocator_category = std_allocator_tag()
 
using is_thread_safe = std::false_type
 

Static Public Member Functions

static void first () noexcept
 
static void * allocate (size_t size, size_t alignment) noexcept
 
static void deallocate (void *ptr, size_t size, size_t alignment) noexcept
 
static size_t max_node_size () noexcept
 
static size_t get_max_alocator_size () const noexcept
 

Static Private Attributes

static char m_buffer [TBytes]
 
static multi_heap_handle_t m_pHandle = nullptr
 

Member Typedef Documentation

◆ allocator_category

◆ is_thread_safe

template<size_t TBytes>
using mn::memory::basic_multiheap_allocator_impl< TBytes >::is_thread_safe = std::false_type

Member Function Documentation

◆ allocate()

template<size_t TBytes>
static void* mn::memory::basic_multiheap_allocator_impl< TBytes >::allocate ( size_t  size,
size_t  alignment 
)
inlinestaticnoexcept

◆ deallocate()

template<size_t TBytes>
static void mn::memory::basic_multiheap_allocator_impl< TBytes >::deallocate ( void *  ptr,
size_t  size,
size_t  alignment 
)
inlinestaticnoexcept

◆ first()

template<size_t TBytes>
static void mn::memory::basic_multiheap_allocator_impl< TBytes >::first ( )
inlinestaticnoexcept

◆ get_max_alocator_size()

template<size_t TBytes>
static size_t mn::memory::basic_multiheap_allocator_impl< TBytes >::get_max_alocator_size ( ) const
inlinestaticnoexcept

◆ max_node_size()

template<size_t TBytes>
static size_t mn::memory::basic_multiheap_allocator_impl< TBytes >::max_node_size ( )
inlinestaticnoexcept

Member Data Documentation

◆ m_buffer

template<size_t TBytes>
char mn::memory::basic_multiheap_allocator_impl< TBytes >::m_buffer
staticprivate

◆ m_pHandle

template<size_t TBytes>
multi_heap_handle_t mn::memory::basic_multiheap_allocator_impl< TBytes >::m_pHandle = nullptr
staticprivate

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