WPILibC++ 2025.3.1
Loading...
Searching...
No Matches
wpi::memory::detail::small_free_memory_list Class Reference

#include <wpi/memory/detail/small_free_list.hpp>

Public Member Functions

 small_free_memory_list (std::size_t node_size) noexcept
 
 small_free_memory_list (std::size_t node_size, void *mem, std::size_t size) noexcept
 
 small_free_memory_list (small_free_memory_list &&other) noexcept
 
 ~small_free_memory_list () noexcept=default
 
small_free_memory_listoperator= (small_free_memory_list &&other) noexcept
 
void insert (void *mem, std::size_t size) noexcept
 
std::size_t usable_size (std::size_t size) const noexcept
 
void * allocate () noexcept
 
void * allocate (std::size_t) noexcept
 
void deallocate (void *node) noexcept
 
void deallocate (void *mem, std::size_t size) noexcept
 
bool find_chunk (std::size_t n) noexcept
 
std::size_t node_size () const noexcept
 
std::size_t alignment () const noexcept
 
std::size_t capacity () const noexcept
 
bool empty () const noexcept
 

Static Public Member Functions

static constexpr std::size_t min_block_size (std::size_t node_size, std::size_t number_of_nodes)
 

Static Public Attributes

static constexpr std::size_t min_element_size = 1
 
static constexpr std::size_t min_element_alignment = 1
 

Friends

void swap (small_free_memory_list &a, small_free_memory_list &b)
 

Constructor & Destructor Documentation

◆ small_free_memory_list() [1/3]

wpi::memory::detail::small_free_memory_list::small_free_memory_list ( std::size_t node_size)
noexcept

◆ small_free_memory_list() [2/3]

wpi::memory::detail::small_free_memory_list::small_free_memory_list ( std::size_t node_size,
void * mem,
std::size_t size )
noexcept

◆ small_free_memory_list() [3/3]

wpi::memory::detail::small_free_memory_list::small_free_memory_list ( small_free_memory_list && other)
noexcept

◆ ~small_free_memory_list()

wpi::memory::detail::small_free_memory_list::~small_free_memory_list ( )
defaultnoexcept

Member Function Documentation

◆ alignment()

std::size_t wpi::memory::detail::small_free_memory_list::alignment ( ) const
noexcept

◆ allocate() [1/2]

void * wpi::memory::detail::small_free_memory_list::allocate ( )
noexcept

◆ allocate() [2/2]

void * wpi::memory::detail::small_free_memory_list::allocate ( std::size_t )
inlinenoexcept

◆ capacity()

std::size_t wpi::memory::detail::small_free_memory_list::capacity ( ) const
inlinenoexcept

◆ deallocate() [1/2]

void wpi::memory::detail::small_free_memory_list::deallocate ( void * mem,
std::size_t size )
inlinenoexcept

◆ deallocate() [2/2]

void wpi::memory::detail::small_free_memory_list::deallocate ( void * node)
noexcept

◆ empty()

bool wpi::memory::detail::small_free_memory_list::empty ( ) const
inlinenoexcept

◆ find_chunk()

bool wpi::memory::detail::small_free_memory_list::find_chunk ( std::size_t n)
inlinenoexcept

◆ insert()

void wpi::memory::detail::small_free_memory_list::insert ( void * mem,
std::size_t size )
noexcept

◆ min_block_size()

static constexpr std::size_t wpi::memory::detail::small_free_memory_list::min_block_size ( std::size_t node_size,
std::size_t number_of_nodes )
inlinestaticconstexpr

◆ node_size()

std::size_t wpi::memory::detail::small_free_memory_list::node_size ( ) const
inlinenoexcept

◆ operator=()

small_free_memory_list & wpi::memory::detail::small_free_memory_list::operator= ( small_free_memory_list && other)
inlinenoexcept

◆ usable_size()

std::size_t wpi::memory::detail::small_free_memory_list::usable_size ( std::size_t size) const
noexcept

Friends And Related Symbol Documentation

◆ swap

void swap ( small_free_memory_list & a,
small_free_memory_list & b )
friend

Member Data Documentation

◆ min_element_alignment

std::size_t wpi::memory::detail::small_free_memory_list::min_element_alignment = 1
staticconstexpr

◆ min_element_size

std::size_t wpi::memory::detail::small_free_memory_list::min_element_size = 1
staticconstexpr

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