by::pool Class Reference

Memory pool manager for efficient instance allocation. More...

#include <pool.hpp>

Inheritance diagram for by::pool:
by::memoryHaver

Public Member Functions

chunksget (const instance &it)
 
chunksget (const instance *it) BY_SIDE_FUNC(get)
 
chunksget (nidx n)
 
ncnt size () const override
 
ncnt len () const override
 
nbool rel () override
 
- Public Member Functions inherited from by::memoryHaver
virtual nbool has (const instance &it) const =0
 
nbool has (const instance *it) const BY_SIDE_FUNC(has)
 
nbool isFull () const
 
nbool isCapable () const
 

Public Attributes

const chunks *get(const instance &it) const BY_CONST_FUNC(get(it)) const chunks *get(const instance *it) const BY_CONST_FUNC(get(it)) const chunks *get(nidx n) const BY_CONST_FUNC(get(n)) using super nboo has )(const instance &it) const override
 

Protected Member Functions

void * _get (nidx n) override
 

Detailed Description

Memory pool manager for efficient instance allocation.

Manages multiple memory chunks for optimized allocation and deallocation of instances. Provides memory pool-based allocation strategy to reduce overhead.

Member Function Documentation

◆ _get()

void * by::pool::_get ( nidx  n)
overrideprotectedvirtual

Implements by::memoryHaver.

◆ len()

ncnt by::pool::len ( ) const
overridevirtual

Implements by::memoryHaver.

◆ rel()

nbool by::pool::rel ( )
overridevirtual

Implements by::memoryHaver.

◆ size()

ncnt by::pool::size ( ) const
overridevirtual

Implements by::memoryHaver.


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