|
Macaulay2 Engine
|
#include <mem.hpp>
Public Member Functions | |
| doubling_stash () | |
| ~doubling_stash () | |
| void * | new_elem (size_t size) |
| void | delete_elem (void *p) |
| size_t | allocated_size (void *p) |
Private Member Functions | |
| doubling_stash (const doubling_stash &) | |
| void | operator= (const doubling_stash &) |
Private Attributes | |
| stash * | doubles [NDOUBLES] |
| size_t | double_size [NDOUBLES] |
Additional Inherited Members | |
| Static Public Member Functions inherited from our_new_delete | |
| static void * | operator new (size_t size) |
| static void * | operator new[] (size_t size) |
| static void | operator delete (void *obj) |
| static void | operator delete[] (void *obj) |
| static void * | operator new (size_t size, void *existing_memory) |
| static void * | operator new[] (size_t size, void *existing_memory) |
| static void | operator delete (void *obj, void *existing_memory) |
| static void | operator delete[] (void *obj, void *existing_memory) |
The doubling stash essentially is a list of stashes of different sizes. The sizes start at 2 and run to 2*2^NDOUBLES