libcopp  1.1.0
Public Member Functions
copp::allocator::stack_allocator_windows Class Reference

memory allocator this allocator will create buffer using windows api and protect it More...

#include <stack_allocator_windows.h>

Collaboration diagram for copp::allocator::stack_allocator_windows:
Collaboration graph

Public Member Functions

 stack_allocator_windows () UTIL_CONFIG_NOEXCEPT
 
 ~stack_allocator_windows ()
 
void allocate (stack_context &, std::size_t) UTIL_CONFIG_NOEXCEPT
 
void deallocate (stack_context &) UTIL_CONFIG_NOEXCEPT
 

Detailed Description

memory allocator this allocator will create buffer using windows api and protect it

Definition at line 23 of file stack_allocator_windows.h.

Constructor & Destructor Documentation

copp::allocator::stack_allocator_windows::stack_allocator_windows ( )

Definition at line 27 of file stack_allocator_windows.cpp.

copp::allocator::stack_allocator_windows::~stack_allocator_windows ( )

Definition at line 29 of file stack_allocator_windows.cpp.

Member Function Documentation

void copp::allocator::stack_allocator_windows::allocate ( stack_context ctx,
std::size_t  size 
)

allocate memory and attach to stack context [standard function]

Parameters
ctxstack context
sizestack size

Definition at line 31 of file stack_allocator_windows.cpp.

References copp::stack_traits::is_unbounded(), copp::stack_traits::maximum_size(), copp::stack_traits::minimum_size(), copp::stack_traits::page_size(), and copp::stack_traits::round_to_page_size().

void copp::allocator::stack_allocator_windows::deallocate ( stack_context ctx)

deallocate memory from stack context [standard function]

Parameters
ctxstack context

Definition at line 52 of file stack_allocator_windows.cpp.

References copp::stack_traits::is_unbounded(), copp::stack_traits::maximum_size(), and copp::stack_traits::minimum_size().


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