|
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 &src_loc) noexcept | |
| AllocatorBase (std::source_location const &src_loc, std::string_view name) noexcept | |
| AllocatorBase (std::source_location const &src_loc, AllocatorBase &parent) noexcept | |
| AllocatorBase (std::source_location const &src_loc, AllocatorBase &parent, std::string_view name) 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 memory) noexcept |
| template<typename T, typename... Args> | |
| auto | create (Args &&... args) noexcept -> T * |
| template<typename T> requires (std::is_const_v<T> == false) | |
| void | destroy (T *object) noexcept |
| virtual auto | allocation_size (void *ptr) const noexcept -> ice::usize |
| auto | debug_info () const noexcept -> ice::AllocatorDebugInfo const & |
| \copy AllocatorBase<false>::debug_info() | |
| 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 |
| Public Member Functions inherited from ice::AllocatorDebugInfo | |
| AllocatorDebugInfo (std::source_location src_loc, std::string_view name) noexcept | |
| AllocatorDebugInfo (std::source_location const &src_loc, std::string_view name, ice::AllocatorDebugInfo &parent) noexcept | |
| virtual | ~AllocatorDebugInfo () noexcept |
| auto | location () const noexcept -> std::source_location |
| auto | name () const noexcept -> std::string_view |
| 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 |
| void | track_child (ice::AllocatorDebugInfo *child_allocator) noexcept |
| void | remove_child (ice::AllocatorDebugInfo *child_allocator) noexcept |
| auto | parent_allocator () const noexcept -> ice::AllocatorDebugInfo const * |
| auto | child_allocator () const noexcept -> ice::AllocatorDebugInfo const * |
| auto | next_sibling () const noexcept -> ice::AllocatorDebugInfo const * |
Static Public Attributes | |
| static constexpr ice::usize | SizeNotTracked = AllocatorBase<false>::SizeNotTracked |
| static constexpr ice::u32 | CountNotTracked = AllocatorBase<false>::CountNotTracked |
| static constexpr bool | HasDebugInformation = true |
Protected Member Functions | |
| virtual | ~AllocatorBase () noexcept |
| virtual auto | do_allocate (ice::AllocRequest request) noexcept -> ice::AllocResult=0 |
| virtual void | do_deallocate (void *pointer) noexcept=0 |
| Protected Member Functions inherited from ice::AllocatorDebugInfo | |
| void | dbg_count_add () noexcept |
| void | dbg_count_sub () noexcept |
Additional Inherited Members | |
| Protected Attributes inherited from ice::AllocatorDebugInfo | |
| std::source_location const | _source_location |
| std::string_view const | _name |
| ice::AllocatorDebugInfo *const | _parent |
| ice::AllocatorDebugInfo * | _children |
| ice::AllocatorDebugInfo * | _next_sibling |
| ice::AllocatorDebugInfo * | _prev_sibling |
| std::atomic< ice::u32 > | _alloc_count |
| std::atomic< ice::u32 > | _alloc_total_count |
| Internal * | _internal |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
protectedvirtualnoexcept |
|
noexcept |
|
noexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinevirtualnoexcept |
|
noexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
|
noexcept |
|
inlinenoexcept |
|
protectedpure virtualnoexcept |
|
protectedpure virtualnoexcept |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |