Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
MemoryPoolAllocator< BaseAllocator >::ChunkHeader Struct Reference

Chunk header for perpending to each chunk. More...

Collaboration diagram for MemoryPoolAllocator< BaseAllocator >::ChunkHeader:

Public Attributes

size_t capacity
 Capacity of the chunk in bytes (excluding the header itself).
size_t size
 Current size of allocated memory in bytes.
ChunkHeadernext
 Next chunk in the linked list.

Detailed Description

template<typename BaseAllocator = CrtAllocator>
struct MemoryPoolAllocator< BaseAllocator >::ChunkHeader

Chunk header for perpending to each chunk.

Chunks are stored as a singly linked list.

Definition at line 135 of file allocators.h.

Member Data Documentation

◆ capacity

template<typename BaseAllocator = CrtAllocator>
size_t MemoryPoolAllocator< BaseAllocator >::ChunkHeader::capacity

Capacity of the chunk in bytes (excluding the header itself).

Definition at line 136 of file allocators.h.

◆ next

template<typename BaseAllocator = CrtAllocator>
ChunkHeader* MemoryPoolAllocator< BaseAllocator >::ChunkHeader::next

Next chunk in the linked list.

Definition at line 138 of file allocators.h.

Referenced by MemoryPoolAllocator< BaseAllocator >::Clear().

◆ size

template<typename BaseAllocator = CrtAllocator>
size_t MemoryPoolAllocator< BaseAllocator >::ChunkHeader::size

Current size of allocated memory in bytes.

Definition at line 137 of file allocators.h.


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