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