MPQC  3.0.0-alpha
sc::Pool Class Reference

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 ()
 

Protected Types

enum  { freelist_size = sizeof(size_t)*8 }
 

Protected Member Functions

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

Protected Attributes

PoolDatafreelist_ [freelist_size]
 
size_t size_
 
PoolDatafirstdatum_
 

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

Generated at Sun Jan 26 2020 23:24:09 for MPQC 3.0.0-alpha using the documentation package Doxygen 1.8.16.