5#ifndef YAMICORE_ALLOCATOR_H_INCLUDED
6#define YAMICORE_ALLOCATOR_H_INCLUDED
22 virtual void * allocate(std::size_t requested_size) = 0;
24 virtual void deallocate(
const void * p) = 0;
31 virtual void * allocate(std::size_t requested_size);
33 virtual void deallocate(
const void * p);
50 void set_working_area(
void * buf, std::size_t size);
52 virtual void * allocate(std::size_t requested_size);
54 virtual void deallocate(
const void * p);
56 void get_free_size(std::size_t & biggest, std::size_t & all)
const;
65 void * first_free_segment_;
Common interface for the custom memory allocator.
Definition: allocator.h:20
Non-locking (thread-unsafe) block-based allocator.
Definition: allocator.h:46
Standard (malloc/free), default allocator.
Definition: allocator.h:29
Namespace devoted for everything related to YAMI4.
Definition: agent.h:14