Generated on Wed Nov 1 15:05:03 2006 for Gecode by doxygen 1.4.5

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

void * Gecode::Memory::malloc size_t  s  )  [inline]
 

Allocate s bytes from heap.

Definition at line 62 of file memory.icc.

void * Gecode::Memory::realloc void *  p,
size_t  s
[inline]
 

Try to change memory-block starting at p to size s.

Definition at line 70 of file memory.icc.

void Gecode::Memory::free void *  p  )  [inline]
 

Free memory block starting at p.

Definition at line 78 of file memory.icc.

template<class T>
T * Gecode::Memory::bmalloc size_t  n  )  [inline]
 

Allocate block of n objects of type T from heap.

Definition at line 85 of file memory.icc.

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
[inline]
 

Copy n objects starting at s to d.

Definition at line 97 of file memory.icc.