Go to the documentation of this file.
38 namespace Gecode {
namespace Gist {
48 int halfWidth = width / 2;
55 l += deltaL;
r += deltaR;
60 l += delta;
r += delta;
105 for (
int i=0;
i <=
d;
i++) {
106 Extent currentExtent = (*this)[
i];
107 extent.
l += currentExtent.
l;
108 extent.
r += currentExtent.
r;
120 lastLeft = lastLeft + (*this)[
i].l;
121 lastRight = lastRight + (*this)[
i].r;
int getOffset(void)
Return offset off this node from its parent.
Shape * shape
Shape of this node.
int right
Right coordinate.
void computeBoundingBox(void)
Compute bounding box.
@ STOP
Node representing stop point.
void setBookmarked(bool m)
Set bookmark of this node.
NodeStatus getStatus(void) const
Return current status of the node.
bool isBookmarked(void)
Return whether node is bookmarked.
Gecode::IntArgs i(4, 1, 2, 3, 4)
void * ralloc(size_t s)
Allocate s bytes from heap.
const FloatNum min
Smallest allowed float value.
bool isOnPath(void)
Return whether node is on the path.
bool getExtentAtDepth(int depth, Extent &extent)
Return if extent exists at depth, if yes return it in extent.
static Shape * allocate(int d)
Construct shape of depth d.
bool getFlag(int flag) const
Return status flag.
Gecode toplevel namespace
void extend(int deltaL, int deltaR)
Extend extent by deltaL and deltaR.
void setOffset(int n)
Set offset of this node, relative to its parent.
void setDirty(bool d)
Mark node as dirty.
struct Gecode::@579::NNF::@61::@62 b
For binary nodes (and, or, eqv)
Post propagator for SetVar SetOpType SetVar SetRelType r
bool childrenLayoutIsDone(void)
Return whether the layout of the node's children has been completed.
void setMarked(bool m)
Set mark of this node.
bool isMarked(void)
Return whether node is marked.
Extent(void)
Default constructor.
const Extent & operator[](int i) const
Return extent at depth i.
const BoundingBox & getBoundingBox(void) const
Return bounding box.
bool isDirty(void)
Return whether node is marked as dirty.
void setOnPath(bool onPath0)
Set whether node is on the path.
@ BRANCH
Node representing a branch.
void setChildrenLayoutDone(bool d)
Mark node whether the layout of the node's children has been completed.
void setStop(bool h)
Set stop state to h.
Heap heap
The single global heap.
BoundingBox getBoundingBox(void)
Return the bounding box.
bool isHidden(void)
Return if node is hidden.
int offset
Relative offset from the parent node.
void setHidden(bool h)
Set hidden state to h.
static Shape * hidden
Static shape for hidden nodes.
static Shape * leaf
Static shape for leaf nodes.
void setDepth(int d)
Set depth of the shape to d (must be smaller than original depth)
void move(int delta)
Move extent by delta.
static void deallocate(Shape *)
void setStatus(NodeStatus s)
Set status to s.
@ UNSTOP
Node representing ignored stop point.
int n
Number of negative literals for node type.
void rfree(void *p)
Free memory block starting at p.
Shape * getShape(void)
Return the shape of this node.
Extent representing shape of a tree at one depth level
int depth(void) const
Return depth of the shape.
const FloatNum max
Largest allowed float value.
void setFlag(int flag, bool value)
Set status flag.