Go to the documentation of this file.
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;
T * pointer
Type of pointers returned by the allocator.
Rebinding helper (returns the type of a similar allocator for type U).
Post propagator for SetVar x
size_type max_size(void) const
Returns the largest size for which a call to allocate might succeed.
size_type max_size(void) const
Returns the largest size for which a call to allocate might succeed.
const typedef void * const_pointer
T const & const_reference
Const reference to T.
Space & space
The space that we allocate objects from.
size_t size_type
Type that can represent the size of the largest object.
void element(Home home, IntSharedArray c, IntVar x0, IntVar x1, IntPropLevel)
Post domain consistent propagator for .
space_allocator & operator=(space_allocator const &al)
Assignment operator.
pointer allocate(size_type count, const void *const hint)
Allocates storage.
void construct(pointer element, const_reference t)
Constructs an object.
void rfree(void *p, size_t s)
Free memory previously allocated.
void construct(pointer element, const_reference t)
Allocator that allocates memory from a space heap.
T * pointer
Type of pointers returned by the allocator.
const_pointer address(const_reference x) const
Convert a const reference x to a const pointer.
ptrdiff_t difference_type
Type that can represent the difference between any two pointers.
Gecode toplevel namespace
T const * const_pointer
Const version of pointer.
Rebinding helper (returns the type of a similar allocator for type U).
pointer address(reference x) const
Convert a reference x to a pointer.
space_allocator< U > other
The allocator type for U.
region_allocator< U > other
The allocator type for U.
T & reference
Non-const reference to T.
ptrdiff_t difference_type
Type that can represent the difference between any two pointers.
space_allocator(space_allocator< U > const &al)
Copy from other instantiation.
void destroy(pointer element)
Calls the destructor on the object pointed to by element.
space_allocator< U > other
bool operator!=(const FloatVal &x, const FloatVal &y)
const_pointer address(const_reference x) const
Convert a const reference x to a const pointer.
T & reference
Non-const reference to T.
Region & region
The region that we allocate objects from.
void deallocate(pointer p, size_type count)
Deallocates storage.
void deallocate(pointer p, size_type count)
Deallocates the storage obtained by a call to allocate() with arguments count and p.
size_t size_type
Type that can represent the size of the largest object.
void count(Home home, const IntVarArgs &x, int n, IntRelType irt, int m, IntPropLevel)
Post propagator for .
region_allocator< U > other
void destroy(pointer element)
Calls the destructor on the object pointed to by element.
region_allocator(Region ®ion)
Construction.
region_allocator(region_allocator< U > const &al)
Copy from other instantiation.
void rfree(void *p, size_t s)
Free memory previously allocated with alloc (might be reused later)
pointer allocate(size_type count, const void *const hint)
Allocates storage.
space_allocator(space_allocator const &al)
Copy construction.
Allocator that allocates memory from a region.
void * ralloc(size_t s)
Allocate memory from region.
T const * const_pointer
Const version of pointer.
region_allocator(region_allocator const &al)
Copy construction.
T value_type
Type of objects the allocator creates. This is identical to T.
pointer address(reference x) const
Convert a reference x to a pointer.
T const & const_reference
Const reference to T.
pointer allocate(size_type count)
Allocates storage.
void * ralloc(size_t s)
Allocate memory on space heap.
T value_type
Type of objects the allocator creates. This is identical to T.
const typedef void * const_pointer
int p
Number of positive literals for node type.
space_allocator(Space &space)
Construction.
const FloatNum max
Largest allowed float value.
pointer allocate(size_type count)
Allocates storage.
bool operator==(const FloatVal &x, const FloatVal &y)