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

Automatic memory management
[Memory management]

Collaboration diagram for Automatic memory management:


Defines

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


Define Documentation

#define GECODE_AUTOARRAY T,
X,
 )     ::Gecode::Memory::AutoArray< T > X(N)
 

Automatic (stack allocation) of memory.

Allocates automatic memory for N objects of type T and declares and initializes the pointer X to T to that block.

As soon as the current scope is left, the memory is freed.

Tries to allocate small blocks on the stack, bigger ones are allocated from the heap (however, management is still automatic).

Definition at line 201 of file memory.icc.