Gecode::MemoryManager Class Reference
List of all members.Detailed Description
Manage memory for space.
Definition at line 134 of file memory-manager.icc.
Public Member Functions | |
| MemoryManager (void) | |
| Constructor initialization. | |
| MemoryManager (MemoryManager &mm) | |
| Constructor during cloning mm. | |
| ~MemoryManager (void) | |
| Release all allocated heap chunks. | |
| void * | alloc (size_t s) |
| Allocate memory of size s. | |
| size_t | allocated (void) const |
| Return how much memory has been allocated. | |
| template<size_t s> | |
| void * | fl_alloc (void) |
| Allocate free list element of size s. | |
| template<size_t > | |
| void | fl_dispose (FreeList *f, FreeList *l) |
| Release all free list elements of size s between f and l (inclusive). | |
| void | reuse (void *p, size_t s) |
| Store for reusal, if of sufficient size for free list. | |
| void | reuse (ReuseChunk *rc) |
| Store for reusal. | |
| void * | reusealloc (size_t s) |
| Try to allocate from slack. | |
Classes | |
| class | ReuseChunk |
| Memory-chunks for reusing slack memory. More... | |
Constructor & Destructor Documentation
|
|
Constructor initialization.
Definition at line 325 of file memory-manager.icc. |
|
|
Constructor during cloning mm.
Definition at line 331 of file memory-manager.icc. |
|
|
Release all allocated heap chunks.
Definition at line 340 of file memory-manager.icc. |
Member Function Documentation
|
|
Allocate memory of size s.
Definition at line 261 of file memory-manager.icc. |
|
|
Return how much memory has been allocated.
Definition at line 256 of file memory-manager.icc. |
|
||||||||||
|
Allocate free list element of size s.
Definition at line 400 of file memory-manager.icc. |
|
||||||||||||||||
|
Release all free list elements of size s between f and l (inclusive).
Definition at line 413 of file memory-manager.icc. |
|
||||||||||||
|
Store for reusal, if of sufficient size for free list.
Definition at line 355 of file memory-manager.icc. |
|
|
Store for reusal.
Definition at line 374 of file memory-manager.icc. |
|
|
Try to allocate from slack.
|
The documentation for this class was generated from the following files:
