162 template<
class U>
struct rebind {
234 (
sizeof(T)>0 ?
sizeof(T) : 1);
291 template<
class T1,
class T2>
294 return &al1.space == &al2.space;
303 template<
class T1,
class T2>
306 return &al1.space != &al2.space;
324 template<
class U>
struct rebind {
390 / (
sizeof(T)>0 ?
sizeof(T) : 1);
456 template<
class T1,
class T2>
459 return &al1.region == &al2.region;
468 template<
class T1,
class T2>
471 return &al1.region != &al2.region;
void rfree(void *p, size_t s)
Free memory previously allocated.
pointer allocate(size_type count)
Allocates storage.
space_allocator & operator=(space_allocator const &al)
Assignment operator.
void destroy(pointer element)
Calls the destructor on the object pointed to by element.
const_pointer address(const_reference x) const
Convert a const reference x to a const pointer.
const void * const_pointer
ptrdiff_t difference_type
Type that can represent the difference between any two pointers.
bool operator!=(space_allocator< T1 > const &al1, space_allocator< T2 > const &al2)
Tests two space allocators for inequality.
T & reference
Non-const reference to T.
space_allocator(space_allocator const &al)
Copy construction.
const FloatNum max
Largest allowed float value.
void count(Home home, const IntVarArgs &x, int n, IntRelType irt, int m, IntPropLevel)
Post propagator for .
region_allocator< U > other
The allocator type for U.
void deallocate(pointer p, size_type count)
Deallocates the storage obtained by a call to allocate() with arguments count and p.
pointer allocate(size_type count)
Allocates storage.
Allocator that allocates memory from a region.
size_type max_size(void) const
Returns the largest size for which a call to allocate might succeed.
T const & const_reference
Const reference to T.
space_allocator(Space &space)
Construction.
void construct(pointer element, const_reference t)
Constructs an object.
T & reference
Non-const reference to T.
Allocator that allocates memory from a space heap.
int p
Number of positive literals for node type.
region_allocator< U > other
ptrdiff_t difference_type
Type that can represent the difference between any two pointers.
size_type max_size(void) const
Returns the largest size for which a call to allocate might succeed.
space_allocator< U > other
Region & region
The region that we allocate objects from.
size_t size_type
Type that can represent the size of the largest object.
region_allocator(region_allocator< U > const &al)
Copy from other instantiation.
const void * const_pointer
T const & const_reference
Const reference to T.
Space & space
The space that we allocate objects from.
T const * const_pointer
Const version of pointer.
void * ralloc(size_t s)
Allocate memory on space heap.
space_allocator(space_allocator< U > const &al)
Copy from other instantiation.
region_allocator(Region ®ion)
Construction.
space_allocator< U > other
The allocator type for U.
const_pointer address(const_reference x) const
Convert a const reference x to a const pointer.
pointer allocate(size_type count, const void *const hint)
Allocates storage.
T value_type
Type of objects the allocator creates. This is identical to T.
void construct(pointer element, const_reference t)
void destroy(pointer element)
Calls the destructor on the object pointed to by element.
pointer allocate(size_type count, const void *const hint)
Allocates storage.
Post propagator for SetVar x
pointer address(reference x) const
Convert a reference x to a pointer.
bool operator==(const FloatVal &x, const FloatVal &y)
void deallocate(pointer p, size_type count)
Deallocates storage.
Gecode toplevel namespace
T * pointer
Type of pointers returned by the allocator.
size_t size_type
Type that can represent the size of the largest object.
T * pointer
Type of pointers returned by the allocator.
pointer address(reference x) const
Convert a reference x to a pointer.
Rebinding helper (returns the type of a similar allocator for type U).
Rebinding helper (returns the type of a similar allocator for type U).
void * ralloc(size_t s)
Allocate memory from region.
T const * const_pointer
Const version of pointer.
void element(Home home, IntSharedArray c, IntVar x0, IntVar x1, IntPropLevel)
Post domain consistent propagator for .
void rfree(void *p, size_t s)
Free memory previously allocated with alloc (might be reused later)
T value_type
Type of objects the allocator creates. This is identical to T.
region_allocator(region_allocator const &al)
Copy construction.