proxsuite 0.6.7
The Advanced Proximal Optimization Toolbox
Loading...
Searching...
No Matches
proxsuite::linalg::veg::_detail::_mem::BumpAllocLayout< MaxAlign > Struct Template Reference

#include <proxsuite/linalg/veg/memory/stack_alloc.hpp>

Inheritance diagram for proxsuite::linalg::veg::_detail::_mem::BumpAllocLayout< MaxAlign >:
[legend]

Public Member Functions

auto _is_last (void *ptr, usize byte_size) noexcept -> bool
 
void _assert_last (void *ptr, usize byte_size) noexcept
 
void _dealloc_last_unchecked (void *ptr, mem::Layout layout)
 
void _dealloc_any (void *ptr, mem::Layout layout) noexcept
 
void _dealloc_last (void *ptr, mem::Layout layout)
 
auto _alloc (mem::Layout layout) noexcept -> mem::AllocBlock
 
auto _grow_last_unchecked (void *ptr, usize new_byte_size) noexcept -> mem::AllocBlock
 
auto _grow_last (void *ptr, mem::Layout old_layout, usize new_byte_size, mem::RelocFn) noexcept -> mem::AllocBlock
 
auto _grow_any (void *ptr, mem::Layout old_layout, usize new_byte_size, mem::RelocFn reloc) noexcept -> mem::AllocBlock
 

Static Public Member Functions

static auto _align (usize byte_size) noexcept -> usize
 

Public Attributes

mem::bytecurrent_ptr
 
mem::bytestart_ptr
 
mem::byteend_ptr
 

Detailed Description

template<usize MaxAlign>
struct proxsuite::linalg::veg::_detail::_mem::BumpAllocLayout< MaxAlign >

Definition at line 16 of file stack_alloc.hpp.

Member Function Documentation

◆ _align()

template<usize MaxAlign>
static auto proxsuite::linalg::veg::_detail::_mem::BumpAllocLayout< MaxAlign >::_align ( usize byte_size) -> usize
inlinestaticnoexcept

Definition at line 23 of file stack_alloc.hpp.

◆ _is_last()

template<usize MaxAlign>
auto proxsuite::linalg::veg::_detail::_mem::BumpAllocLayout< MaxAlign >::_is_last ( void * ptr,
usize byte_size ) -> bool
inlinenoexcept

Definition at line 37 of file stack_alloc.hpp.

◆ _assert_last()

template<usize MaxAlign>
void proxsuite::linalg::veg::_detail::_mem::BumpAllocLayout< MaxAlign >::_assert_last ( void * ptr,
usize byte_size )
inlinenoexcept

Definition at line 41 of file stack_alloc.hpp.

◆ _dealloc_last_unchecked()

template<usize MaxAlign>
void proxsuite::linalg::veg::_detail::_mem::BumpAllocLayout< MaxAlign >::_dealloc_last_unchecked ( void * ptr,
mem::Layout layout )
inline

Definition at line 46 of file stack_alloc.hpp.

◆ _dealloc_any()

template<usize MaxAlign>
void proxsuite::linalg::veg::_detail::_mem::BumpAllocLayout< MaxAlign >::_dealloc_any ( void * ptr,
mem::Layout layout )
inlinenoexcept

Definition at line 53 of file stack_alloc.hpp.

◆ _dealloc_last()

template<usize MaxAlign>
void proxsuite::linalg::veg::_detail::_mem::BumpAllocLayout< MaxAlign >::_dealloc_last ( void * ptr,
mem::Layout layout )
inline

Definition at line 60 of file stack_alloc.hpp.

◆ _alloc()

template<usize MaxAlign>
auto proxsuite::linalg::veg::_detail::_mem::BumpAllocLayout< MaxAlign >::_alloc ( mem::Layout layout) -> mem::AllocBlock
inlinenoexcept

Definition at line 66 of file stack_alloc.hpp.

◆ _grow_last_unchecked()

template<usize MaxAlign>
auto proxsuite::linalg::veg::_detail::_mem::BumpAllocLayout< MaxAlign >::_grow_last_unchecked ( void * ptr,
usize new_byte_size ) -> mem::AllocBlock
inlinenoexcept

Definition at line 79 of file stack_alloc.hpp.

◆ _grow_last()

template<usize MaxAlign>
auto proxsuite::linalg::veg::_detail::_mem::BumpAllocLayout< MaxAlign >::_grow_last ( void * ptr,
mem::Layout old_layout,
usize new_byte_size,
mem::RelocFn  ) -> mem::AllocBlock
inlinenoexcept

Definition at line 90 of file stack_alloc.hpp.

◆ _grow_any()

template<usize MaxAlign>
auto proxsuite::linalg::veg::_detail::_mem::BumpAllocLayout< MaxAlign >::_grow_any ( void * ptr,
mem::Layout old_layout,
usize new_byte_size,
mem::RelocFn reloc ) -> mem::AllocBlock
inlinenoexcept

Definition at line 104 of file stack_alloc.hpp.

Member Data Documentation

◆ current_ptr

Definition at line 19 of file stack_alloc.hpp.

◆ start_ptr

Definition at line 20 of file stack_alloc.hpp.

◆ end_ptr

Definition at line 21 of file stack_alloc.hpp.


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