Heap-memory management
[Memory management]
Collaboration diagram for Heap-memory management:
|
Detailed Description
All routines throw an exception of MemoryExhausted, if request cannot be fulfilled.
Functions | |
| void * | Gecode::Memory::malloc (size_t s) |
| Allocate s bytes from heap. | |
| void * | Gecode::Memory::realloc (void *p, size_t s) |
| Try to change memory-block starting at p to size s. | |
| void | Gecode::Memory::free (void *p) |
| Free memory block starting at p. | |
| template<class T> | |
| T * | Gecode::Memory::bmalloc (size_t n) |
| Allocate block of n objects of type T from heap. | |
| template<class T> | |
| T * | Gecode::Memory::brealloc (T *b, size_t n) |
| Reallocate block of n object starting at b to m objects of type T from heap. | |
| template<class T> | |
| T * | Gecode::Memory::bcopy (T *d, const T *s, size_t n) |
| Copy n objects starting at s to d. | |
Function Documentation
|
|
Allocate s bytes from heap.
Definition at line 62 of file memory.icc. |
|
||||||||||||
|
Try to change memory-block starting at p to size s.
Definition at line 70 of file memory.icc. |
|
|
Free memory block starting at p.
Definition at line 78 of file memory.icc. |
|
||||||||||
|
Allocate block of n objects of type T from heap.
Definition at line 85 of file memory.icc. |
|
||||||||||||||||
|
Reallocate block of n object starting at b to m objects of type T from heap.
|
|
||||||||||||||||||||
|
Copy n objects starting at s to d.
Definition at line 97 of file memory.icc. |
