ZLayout EDA Library v1.0.0
Advanced Electronic Design Automation Layout Library with Bilingual Documentation
Loading...
Searching...
No Matches
zlayout::spatial::MemoryPool< T > Class Template Reference

Memory pool for efficient object allocation. More...

#include <advanced_spatial.hpp>

Public Member Functions

 MemoryPool (size_t chunk_size=1024)
 ~MemoryPool ()
T * allocate ()
void deallocate (T *ptr)

Detailed Description

template<typename T>
class zlayout::spatial::MemoryPool< T >

Memory pool for efficient object allocation.

Definition at line 48 of file advanced_spatial.hpp.

Constructor & Destructor Documentation

◆ MemoryPool()

template<typename T>
zlayout::spatial::MemoryPool< T >::MemoryPool ( size_t chunk_size = 1024)
inlineexplicit

Definition at line 61 of file advanced_spatial.hpp.

◆ ~MemoryPool()

template<typename T>
zlayout::spatial::MemoryPool< T >::~MemoryPool ( )
inline

Definition at line 66 of file advanced_spatial.hpp.

Member Function Documentation

◆ allocate()

template<typename T>
T * zlayout::spatial::MemoryPool< T >::allocate ( )
inline

Definition at line 70 of file advanced_spatial.hpp.

Here is the caller graph for this function:

◆ deallocate()

template<typename T>
void zlayout::spatial::MemoryPool< T >::deallocate ( T * ptr)
inline

Definition at line 81 of file advanced_spatial.hpp.

Here is the caller graph for this function:

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