72 for (
int i=n_repeat;
i--; ) {
74 for (
int j=n_blocks; j--; )
75 (
void) r.
alloc<
char>(
static_cast<unsigned long int>(
size));
static const int n_repeat
How often to repeat.
T * alloc(long unsigned int n)
Allocate block of n objects of type T from region.
static const size_t size
The size of a block.
Region(void)
Initialize test.
TestSpace(bool share, TestSpace &s)
Constructor for cloning s.
bool run(void)
Perform actual tests.
Test for Region memory area
Gecode::IntArgs i(4, 1, 2, 3, 4)
Base class for all tests to be run
TestSpace(void)
Constructor for creation.
Space(void)
Default constructor.
const size_t region_area_size
Size of region area.
virtual Space * copy(bool share)
Copy during cloning.
static const int n_blocks
How many blocks to allocate.