Generated on Wed Nov 1 15:04:49 2006 for Gecode by doxygen 1.4.5

memory.icc File Reference

(Revision: 3510)

#include <cstdlib>

Go to the source code of this file.

Namespaces

namespace  Gecode
namespace  Gecode::Memory

Classes

class  Gecode::Memory::AutoArray< T >
 Helper class for large automatic memory chunks. More...

Defines

#define GECODE_AUTOARRAY(T, X, N)   ::Gecode::Memory::AutoArray< T > X(N)
 Automatic (stack allocation) of memory.

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.
template<class T>
T * Gecode::Memory::brealloc (T *b, size_t, size_t m)