Grindstone Game Engine v0.2.0
An open source game engine and toolkit.
Loading...
Searching...
No Matches
Grindstone::DeletionQueue Class Reference

A dynamic allocator represented by a linked list. More...

#include <DeferredDeletionQueue.hpp>

Public Member Functions

 DeletionQueue (uint32_t poolSize)
 DeletionQueue (const DeletionQueue &other)=default
 DeletionQueue (DeletionQueue &&other) noexcept=default
DeletionQueue & operator= (const DeletionQueue &other)=default
DeletionQueue & operator= (DeletionQueue &&other) noexcept=default
void Initialize (uint32_t poolSize)
void PushDeletion (std::function< void()> fn)
void DeleteAll ()

Protected Attributes

std::vector< std::function< void()> > queue

Detailed Description

A dynamic allocator represented by a linked list.

Memory in a dynamic allocator can be allocated and deallocated freely, with no restrictions. Allocations have a header that points to the next block of memory, and so free memory can be found in between allocated blocks of memory.


The documentation for this class was generated from the following files:
  • /github/workspace/sources/code/Common/DeferredDeletionQueue.hpp
  • /github/workspace/sources/code/Common/DeferredDeletionQueue.cpp