43 namespace Gecode {
namespace Gist {
47 assert(getTag() == UNDET);
53 childrenOrFirstChild =
54 reinterpret_cast<void*
>(
55 static_cast<ptrdiff_t
>(na.allocate(
getIndex(na)) << 2));
62 childrenOrFirstChild =
63 reinterpret_cast<void*
>(
64 static_cast<ptrdiff_t
>(na.allocate(idx) << 2));
65 noOfChildren = -na.allocate(idx);
74 childrenOrFirstChild =
static_cast<void*
>(children);
75 setTag(MORE_CHILDREN);
76 for (
unsigned int i=n;
i--;)
77 children[
i] = na.allocate(idx);
int getIndex(const NodeAllocator &na) const
Return index of this node.
T * alloc(long unsigned int n)
Allocate block of n objects of type T from heap.
Gecode::IntArgs i(4, 1, 2, 3, 4)
int n
Number of negative literals for node type.
void setNumberOfChildren(unsigned int n, NodeAllocator &na)
Set the number of children to n and initialize children.
Heap heap
The single global heap.
Gecode toplevel namespace