Generated on Mon May 5 05:54:07 2008 for Gecode by doxygen 1.5.5

sentinel-stack.icc File Reference

(Revision: 5001)

Go to the source code of this file.

Namespaces

namespace  Gecode
namespace  Gecode::Support

Classes

class  Gecode::Support::SentinelStack< T >
 A simple stack that uses a sentinel element. More...

Defines

#define GECODE_AUTOSTACK(T, S, X, N)
 Simple sentinel stack using automatic memory.


Define Documentation

#define GECODE_AUTOSTACK ( T,
S,
X,
 ) 

Value:

GECODE_AUTOARRAY(T,__GECODE__AS__ ## X ## __LINE__,(N)+1);               \
  Gecode::Support::SentinelStack<T> X(__GECODE__AS__ ## X ## __LINE__,(S));
Simple sentinel stack using automatic memory.

Allocates automatic memory for a sentinel stack X with N objects of type T with sentinel S.

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

Definition at line 118 of file sentinel-stack.icc.