proxsuite 0.6.7
The Advanced Proximal Optimization Toolbox
Loading...
Searching...
No Matches
proxsuite::linalg::veg::mem::Alloc< SystemAlloc > Struct Reference

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

Public Member Functions

VEG_NODISCARD VEG_INLINE auto try_grow_in_place (void *, Layout, usize) const noexcept -> bool
 

Static Public Member Functions

static VEG_INLINE void dealloc (RefMut< SystemAlloc >, void *ptr, Layout layout) noexcept
 
VEG_NODISCARD static VEG_INLINE auto alloc (RefMut< SystemAlloc >, Layout layout) noexcept -> mem::AllocBlock
 
VEG_NODISCARD static VEG_NO_INLINE auto realloc (RefMut< SystemAlloc >, void *ptr, Layout layout, usize new_size, usize copy_size, RelocFn reloc) noexcept -> mem::AllocBlock
 
VEG_NODISCARD static VEG_INLINE auto grow (RefMut< SystemAlloc > alloc, void *ptr, Layout layout, usize new_size, RelocFn reloc) noexcept -> mem::AllocBlock
 
VEG_NODISCARD static VEG_INLINE auto shrink (RefMut< SystemAlloc > alloc, void *ptr, Layout layout, usize new_size, RelocFn reloc) noexcept -> mem::AllocBlock
 

Static Public Attributes

static constexpr usize max_base_align = alignof(std::max_align_t)
 

Detailed Description

Definition at line 201 of file alloc.hpp.

Member Function Documentation

◆ dealloc()

static VEG_INLINE void proxsuite::linalg::veg::mem::Alloc< SystemAlloc >::dealloc ( RefMut< SystemAlloc< SystemAlloc > > ,
void * ptr,
Layout layout )
inlinestaticnoexcept

Definition at line 205 of file alloc.hpp.

◆ alloc()

Definition at line 212 of file alloc.hpp.

◆ realloc()

VEG_NODISCARD static VEG_NO_INLINE auto proxsuite::linalg::veg::mem::Alloc< SystemAlloc >::realloc ( RefMut< SystemAlloc< SystemAlloc > > ,
void * ptr,
Layout layout,
usize new_size,
usize copy_size,
RelocFn reloc ) -> mem::AllocBlock
inlinestaticnoexcept

Definition at line 228 of file alloc.hpp.

◆ try_grow_in_place()

VEG_NODISCARD VEG_INLINE auto proxsuite::linalg::veg::mem::Alloc< SystemAlloc >::try_grow_in_place ( void * ,
Layout ,
usize  ) const -> bool
inlinenoexcept

Definition at line 261 of file alloc.hpp.

◆ grow()

VEG_NODISCARD static VEG_INLINE auto proxsuite::linalg::veg::mem::Alloc< SystemAlloc >::grow ( RefMut< SystemAlloc< SystemAlloc > > alloc,
void * ptr,
Layout layout,
usize new_size,
RelocFn reloc ) -> mem::AllocBlock
inlinestaticnoexcept

Definition at line 268 of file alloc.hpp.

◆ shrink()

VEG_NODISCARD static VEG_INLINE auto proxsuite::linalg::veg::mem::Alloc< SystemAlloc >::shrink ( RefMut< SystemAlloc< SystemAlloc > > alloc,
void * ptr,
Layout layout,
usize new_size,
RelocFn reloc ) -> mem::AllocBlock
inlinestaticnoexcept

Definition at line 278 of file alloc.hpp.

Member Data Documentation

◆ max_base_align

constexpr usize proxsuite::linalg::veg::mem::Alloc< SystemAlloc >::max_base_align = alignof(std::max_align_t)
staticconstexpr

Definition at line 203 of file alloc.hpp.


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