Itoyori  v0.0.1
ityr::common::freelist Class Reference

#include <freelist.hpp>

Public Member Functions

 freelist ()
 
 freelist (uintptr_t addr, std::size_t size)
 
std::optional< uintptr_t > get (std::size_t size)
 
std::optional< uintptr_t > get (std::size_t size, std::size_t alignment)
 
void add (uintptr_t addr, std::size_t size)
 
std::size_t count () const
 

Constructor & Destructor Documentation

◆ freelist() [1/2]

ityr::common::freelist::freelist ( )
inline

◆ freelist() [2/2]

ityr::common::freelist::freelist ( uintptr_t  addr,
std::size_t  size 
)
inline

Member Function Documentation

◆ add()

void ityr::common::freelist::add ( uintptr_t  addr,
std::size_t  size 
)
inline

◆ count()

std::size_t ityr::common::freelist::count ( ) const
inline

◆ get() [1/2]

std::optional<uintptr_t> ityr::common::freelist::get ( std::size_t  size)
inline

◆ get() [2/2]

std::optional<uintptr_t> ityr::common::freelist::get ( std::size_t  size,
std::size_t  alignment 
)
inline

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