Gaia-ECS v1.0.0
A simple and powerful entity component system
Loading...
Searching...
No Matches
gaia::mem::MemoryPageContainer< T, RequestedBlockSize > Struct Template Reference

Lists the non-full and full pages belonging to an allocator. More...

#include <paged_allocator.h>

Public Member Functions

GAIA_NODISCARD bool empty () const
 Reports whether the container has no pages.
 

Public Attributes

cnt::fwd_llist< MemoryPage< T, RequestedBlockSize > > pagesFree
 List of available pages.
 
cnt::fwd_llist< MemoryPage< T, RequestedBlockSize > > pagesFull
 List of full pages.
 

Detailed Description

template<typename T, uint32_t RequestedBlockSize>
struct gaia::mem::MemoryPageContainer< T, RequestedBlockSize >

Lists the non-full and full pages belonging to an allocator.

Template Parameters
TAllocation category.
RequestedBlockSizeRequested bytes per block.

Member Function Documentation

◆ empty()

template<typename T , uint32_t RequestedBlockSize>
GAIA_NODISCARD bool gaia::mem::MemoryPageContainer< T, RequestedBlockSize >::empty ( ) const
inline

Reports whether the container has no pages.

Returns
True when both page lists are empty.

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