|
IceShard 1
A personal game engine project, with development focused on 2D/2.5D games.
|
#include <ice/mem_allocator.hxx>
Public Member Functions | |
| AllocatorBase (std::source_location const &) noexcept | |
| AllocatorBase (std::source_location const &, std::string_view) noexcept | |
| AllocatorBase (std::source_location const &, AllocatorBase &) noexcept | |
| AllocatorBase (std::source_location const &, AllocatorBase &, std::string_view) noexcept | |
| auto | allocate (ice::AllocRequest request) noexcept -> ice::AllocResult |
| auto | allocate (ice::ChunkedAllocRequest const &request) noexcept -> ice::AllocResult |
| template<typename T> requires std::is_trivial_v<T> | |
| auto | allocate (ice::u64 count=1) noexcept -> T * |
| void | deallocate (void *pointer) noexcept |
| void | deallocate (ice::Memory result) noexcept |
| template<typename T, typename... Args> | |
| auto | create (Args &&... args) noexcept -> T * |
| template<typename T> | |
| void | destroy (T *object) noexcept |
| auto | allocation_count () const noexcept -> ice::u32 |
| auto | allocation_total_count () const noexcept -> ice::u32 |
| auto | allocation_size_inuse () const noexcept -> ice::usize |
| auto | allocation_size_watermark () const noexcept -> ice::usize |
| virtual auto | allocation_size (void *ptr) const noexcept -> ice::usize |
| auto | debug_info () const noexcept -> ice::AllocatorDebugInfo const & |
| Gives access to debug information for an allocator. | |
Static Public Attributes | |
| static constexpr ice::usize | SizeNotTracked = { static_cast<ice::usize::base_type>(0xFFFFEEEE'EEEEFFFF) } |
| static constexpr ice::u32 | CountNotTracked = 0xFFFF'FFFF |
| static constexpr bool | HasDebugInformation = WithDebugInfo |
Protected Member Functions | |
| virtual | ~AllocatorBase () noexcept=default |
| virtual auto | do_allocate (ice::AllocRequest request) noexcept -> ice::AllocResult=0 |
| virtual void | do_deallocate (void *pointer) noexcept=0 |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
protectedvirtualdefaultnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinevirtualnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
Gives access to debug information for an allocator.
|
inlinenoexcept |
|
protectedpure virtualnoexcept |
|
protectedpure virtualnoexcept |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |