38 namespace Gecode {
namespace Iter {
namespace Values {
118 : vlio(new (r.ralloc(sizeof(
VLIO)))
VLIO(r)),
129 : vlio(i.vlio), h(i.h),
c(i.
c) {
void rfree(void *p, size_t s)
Free memory previously allocated.
void init(Region &r)
Initialize.
A & allocator(void)
Return allocator used.
Iterator over value lists.
unsigned int use_cnt
Counter used for reference counting.
Gecode::FloatVal c(-8, 8)
Manage memory organized into block lists (allocator)
Gecode::IntArgs i(4, 1, 2, 3, 4)
ValueList * next
Next element.
VLIO * vlio
Reference to shared object.
ValueListIter(void)
Default constructor.
bool operator()(void) const
Test whether iterator is still at a value or done.
Client for block allocator of type T.
int val(void) const
Return value.
ValueList * c
Current list element.
VLIO(Region &r)
Initialize.
ValueListIter & operator=(const ValueListIter &i)
Assignment operator (both iterators must be allocated from the same region)
void operator++(void)
Move iterator to next value (if possible)
ValueList * h
Head of value list.
Gecode toplevel namespace
Shared object for allocation.
void set(ValueList *l)
Set value lists.
void * ralloc(size_t s)
Allocate memory from region.
~ValueListIter(void)
Destructor.
void reset(void)
Reset iterator to start.