MPQC  2.3.1
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
sc::Pool Class Reference
Collaboration diagram for sc::Pool:
Collaboration graph
[legend]

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:33:07 for MPQC 2.3.1 using the documentation package Doxygen 1.8.16.