Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
Pool Struct Reference

allocator design parameters: More...

#include <pool.h>

Collaboration diagram for Pool:

Public Attributes

DynArray da
 
size_t el_size
 size of elements. More...
 
void * freelist
 pointer to freelist (opaque); see freelist_*. More...
 

Detailed Description

allocator design parameters:

  • O(1) alloc and free;
  • either fixed- or variable-sized blocks;
  • doesn't preallocate the entire pool;
  • returns sequential addresses.

opaque! do not read/write any fields!

Member Data Documentation

◆ da

DynArray Pool::da

◆ el_size

size_t Pool::el_size

size of elements.

= 0 if pool set up for variable-sized elements, otherwise rounded up to pool alignment.

◆ freelist

void* Pool::freelist

pointer to freelist (opaque); see freelist_*.

never used (remains 0) if elements are of variable size.


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