libcopp  2.2.0
Public Member Functions
allocator::stack_allocator_split_segment Class Reference

memory allocator this allocator will create buffer using gcc split segment api More...

#include <stack_allocator_split_segment.h>

Collaboration diagram for allocator::stack_allocator_split_segment:
Collaboration graph

Public Member Functions

 stack_allocator_split_segment () LIBCOPP_MACRO_NOEXCEPT
 
 ~stack_allocator_split_segment ()
 
 stack_allocator_split_segment (const stack_allocator_split_segment &other) LIBCOPP_MACRO_NOEXCEPT
 
stack_allocator_split_segmentoperator= (const stack_allocator_split_segment &other) LIBCOPP_MACRO_NOEXCEPT
 
 stack_allocator_split_segment (stack_allocator_split_segment &&other) LIBCOPP_MACRO_NOEXCEPT
 
stack_allocator_split_segmentoperator= (stack_allocator_split_segment &&other) LIBCOPP_MACRO_NOEXCEPT
 
void allocate (stack_context &, std::size_t) LIBCOPP_MACRO_NOEXCEPT
 
void deallocate (stack_context &) LIBCOPP_MACRO_NOEXCEPT
 

Detailed Description

memory allocator this allocator will create buffer using gcc split segment api

Definition at line 24 of file stack_allocator_split_segment.h.

Constructor & Destructor Documentation

◆ stack_allocator_split_segment() [1/3]

LIBCOPP_COPP_API allocator::stack_allocator_split_segment::stack_allocator_split_segment ( )

Definition at line 44 of file stack_allocator_split_segment.cpp.

◆ ~stack_allocator_split_segment()

LIBCOPP_COPP_API allocator::stack_allocator_split_segment::~stack_allocator_split_segment ( )

Definition at line 45 of file stack_allocator_split_segment.cpp.

◆ stack_allocator_split_segment() [2/3]

LIBCOPP_COPP_API allocator::stack_allocator_split_segment::stack_allocator_split_segment ( const stack_allocator_split_segment other)

Definition at line 47 of file stack_allocator_split_segment.cpp.

◆ stack_allocator_split_segment() [3/3]

LIBCOPP_COPP_API allocator::stack_allocator_split_segment::stack_allocator_split_segment ( stack_allocator_split_segment &&  other)

Definition at line 55 of file stack_allocator_split_segment.cpp.

Member Function Documentation

◆ allocate()

LIBCOPP_COPP_API void allocator::stack_allocator_split_segment::allocate ( stack_context ctx,
std::size_t  size 
)

allocate memory and attach to stack context [standard function]

Parameters
ctxstack context
sizestack size of unit

Definition at line 61 of file stack_allocator_split_segment.cpp.

References gsl::size().

◆ deallocate()

LIBCOPP_COPP_API void allocator::stack_allocator_split_segment::deallocate ( stack_context ctx)

deallocate memory from stack context [standard function]

Parameters
ctxstack context

Definition at line 76 of file stack_allocator_split_segment.cpp.

◆ operator=() [1/2]

LIBCOPP_COPP_API stack_allocator_split_segment & allocator::stack_allocator_split_segment::operator= ( const stack_allocator_split_segment other)

Definition at line 49 of file stack_allocator_split_segment.cpp.

◆ operator=() [2/2]

LIBCOPP_COPP_API stack_allocator_split_segment & allocator::stack_allocator_split_segment::operator= ( stack_allocator_split_segment &&  other)

Definition at line 56 of file stack_allocator_split_segment.cpp.


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