sc::Pool(3)

πŸ“¦
version 2.3.1 Β· 3 versions
, in fedora 43, fedora 44, ubuntu noble

🌸 NAME 🌸

sc::Pool β€” bestie, it's a whole class, and it's giving memory pool realness πŸ’–


✨ SYNOPSIS ✨

okay so here's the whole entire vibe of the class, no notes, no skips:

🫢 Public Member Functions

Pool (size_t)
size_t size ()
void * allocate (size_t size)
void release (void *d)
double * allocate_double (size_t n)
void release (double *d)
int * allocate_int (size_t n)
void release (int *d)
void print (std::ostream &o=ExEnv::out0())
void check ()

like. she does it all. she allocates, she releases, she prints, she checks. main character energy fr fr πŸ’…

πŸŽ€ Protected Types

enum { freelist_size = sizeof(size_t)*8 }

a little enum, tucked away in protected-land, being iconic and doing math with sizeof(size_t)*8 ✨

πŸ”’ Protected Member Functions

PoolData * voidptr_to_pd (void *d)
int freelist_find_slot (size_t)
void freelist_add (PoolData *)
void freelist_del (PoolData *)

these are the backstage girlies β€” not for public consumption, just keeping the freelist behaving 🧚

πŸ’œ Protected Attributes

PoolData * freelist_ [freelist_size]
size_t size_
PoolData * firstdatum_

the ~internals~. freelist_ is an array sized freelist_size, plus size_ and firstdatum_ holding it down 🌈


πŸ‘‘ Author

Generated automatically by Doxygen for MPQC from the source code. so basically the docs wrote themselves, which is honestly so real of them 😭


ngl bestie, the entire manual name here is sc::Pool(3), straight out of the Library Functions Manual β€” section 3, we love a library function moment πŸ¦‹

and that's a wrap πŸ’– this came from MPQC, Version 2.3.1, and yes the footer said sc::Pool(3) right back at us. slay, periodt, stay hydrated πŸ“βœ¨

πŸ“¦ where this page comes from