Grail (C++)  1.4.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
grail::planner::MemoryPool Class Referencefinal

The MemoryPool class - preallocated memory container for optimization issues. More...

#include <MemoryPool.hh>

Public Member Functions

 MemoryPool (const std::size_t BYTES=5242880u)
 MemoryPool. More...
 
template<typename T , typename... ConstructorArguments>
T & Emplace (ConstructorArguments &&... arguments)
 
std::size_t Size () const
 
void Reset (std::size_t size=0)
 

Detailed Description

The MemoryPool class - preallocated memory container for optimization issues.

Constructor & Destructor Documentation

◆ MemoryPool()

grail::planner::MemoryPool::MemoryPool ( const std::size_t  BYTES = 5242880u)
inline

MemoryPool.

Parameters
BYTES- determines how many bytes of memory will be preallocated

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