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;
bool isOnPath(void)
Return whether node is on the path.
Node representing stop point.
int right
Right coordinate.
void setOnPath(bool onPath0)
Set whether node is on the path.
void setMarked(bool m)
Set mark of this node.
const FloatNum max
Largest allowed float value.
Node representing a branch.
void rfree(void *p)
Free memory block starting at p.
void computeBoundingBox(void)
Compute bounding box.
bool isDirty(void)
Return whether node is marked as dirty.
BoundingBox getBoundingBox(void)
Return the bounding box.
bool isHidden(void)
Return if node is hidden.
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.
void setDirty(bool d)
Mark node as dirty.
void * ralloc(size_t s)
Allocate s bytes from heap.
int offset
Relative offset from the parent node.
void setHidden(bool h)
Set hidden state to h.
static Shape * allocate(int d)
Construct shape of depth d.
void setBookmarked(bool m)
Set bookmark of this node.
void setStatus(NodeStatus s)
Set status to s.
Heap heap
The single global heap.
NodeStatus getStatus(void) const
Return current status of the node.
bool getExtentAtDepth(int depth, Extent &extent)
Return if extent exists at depth, if yes return it in extent.
const FloatNum min
Smallest allowed float value.
Gecode::IntArgs i(4, 1, 2, 3, 4)
int n
Number of negative literals for node type.
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 move(int delta)
Move extent by delta.
Shape * getShape(void)
Return the shape of this node.
void setFlag(int flag, bool value)
Set status flag.
int depth(void) const
Return depth of the shape.
bool childrenLayoutIsDone(void)
Return whether the layout of the node's children has been completed.
Extent(void)
Default constructor.
bool isMarked(void)
Return whether node is marked.
static Shape * hidden
Static shape for hidden nodes.
Shape * shape
Shape of this node.
bool isBookmarked(void)
Return whether node is bookmarked.
const BoundingBox & getBoundingBox(void) const
Return bounding box.
int getOffset(void)
Return offset off this node from its parent.
const Extent & operator[](int i) const
Return extent at depth i.
static void deallocate(Shape *)
static Shape * leaf
Static shape for leaf nodes.
struct Gecode::@518::NNF::@57::@58 b
For binary nodes (and, or, eqv)
Gecode toplevel namespace
void setDepth(int d)
Set depth of the shape to d (must be smaller than original depth)
bool getFlag(int flag) const
Return status flag.
Extent representing shape of a tree at one depth level
Node representing ignored stop point.