emlabcpp
modern opinionated embedded C++ library
emlabcpp::pmr::stack_resource< Capacity > Class Template Referencefinal

#include <stack_resource.h>

+ Inheritance diagram for emlabcpp::pmr::stack_resource< Capacity >:
+ Collaboration diagram for emlabcpp::pmr::stack_resource< Capacity >:

Public Member Functions

 stack_resource ()
 
 stack_resource (stack_resource const &)=delete
 
 stack_resource (stack_resource &&)=delete
 
stack_resourceoperator= (stack_resource const &)=delete
 
stack_resourceoperator= (stack_resource &&)=delete
 
void * allocate (std::size_t const bytes, std::size_t const alignment) override
 
result deallocate (void *const ptr, std::size_t const bytes, std::size_t const) override
 
bool is_equal (pmr::memory_resource const &other) const noexcept override
 
bool is_full () const noexcept override
 
 ~stack_resource () override=default
 
- Public Member Functions inherited from emlabcpp::pmr::memory_resource
virtual ~memory_resource ()=default
 

Constructor & Destructor Documentation

◆ stack_resource() [1/3]

template<std::size_t Capacity>
emlabcpp::pmr::stack_resource< Capacity >::stack_resource ( )
inline

◆ stack_resource() [2/3]

template<std::size_t Capacity>
emlabcpp::pmr::stack_resource< Capacity >::stack_resource ( stack_resource< Capacity > const &  )
delete

◆ stack_resource() [3/3]

template<std::size_t Capacity>
emlabcpp::pmr::stack_resource< Capacity >::stack_resource ( stack_resource< Capacity > &&  )
delete

◆ ~stack_resource()

template<std::size_t Capacity>
emlabcpp::pmr::stack_resource< Capacity >::~stack_resource ( )
overridedefault

References emlabcpp::cfg::next().

Member Function Documentation

◆ allocate()

template<std::size_t Capacity>
void* emlabcpp::pmr::stack_resource< Capacity >::allocate ( std::size_t const  bytes,
std::size_t const  alignment 
)
inlineoverridevirtual

◆ deallocate()

template<std::size_t Capacity>
result emlabcpp::pmr::stack_resource< Capacity >::deallocate ( void *const  ptr,
std::size_t const  bytes,
std::size_t const   
)
inlineoverridevirtual

◆ is_equal()

template<std::size_t Capacity>
bool emlabcpp::pmr::stack_resource< Capacity >::is_equal ( pmr::memory_resource const &  other) const
inlineoverridevirtualnoexcept

◆ is_full()

template<std::size_t Capacity>
bool emlabcpp::pmr::stack_resource< Capacity >::is_full ( ) const
inlineoverridevirtualnoexcept

◆ operator=() [1/2]

template<std::size_t Capacity>
stack_resource& emlabcpp::pmr::stack_resource< Capacity >::operator= ( stack_resource< Capacity > &&  )
delete

◆ operator=() [2/2]

template<std::size_t Capacity>
stack_resource& emlabcpp::pmr::stack_resource< Capacity >::operator= ( stack_resource< Capacity > const &  )
delete

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