Gecode::Support::Allocator Class Reference
Default memory allocator. More...
#include <gecode/support/allocator.hpp>
Public Member Functions | |
| Allocator (void) | |
| Default constructor. | |
| void * | alloc (size_t n) |
| Allocate memory block of size n. | |
| void * | realloc (void *p, size_t n) |
| Return address of reallocated memory block p of size n. | |
| void | free (void *p) |
| Free memory block p. | |
| void * | memcpy (void *d, const void *s, size_t n) |
| Copy n bytes from source s directly to d and returns d. | |
Detailed Description
Default memory allocator.
Acts as a wrapper around memory allocation functionality.
Can be disabled by giving a "-disable-allocator" option to configure and the be re-implemented before including any other Gecode header.
Definition at line 64 of file allocator.hpp.
Constructor & Destructor Documentation
◆ Allocator()
|
inline |
Default constructor.
Definition at line 89 of file allocator.hpp.
Member Function Documentation
◆ alloc()
|
inline |
Allocate memory block of size n.
Definition at line 93 of file allocator.hpp.
◆ realloc()
|
inline |
Return address of reallocated memory block p of size n.
Definition at line 97 of file allocator.hpp.
◆ free()
|
inline |
Free memory block p.
Definition at line 101 of file allocator.hpp.
◆ memcpy()
|
inline |
Copy n bytes from source s directly to d and returns d.
Definition at line 106 of file allocator.hpp.
The documentation for this class was generated from the following file:
- gecode/support/allocator.hpp
