File simple.h
File List > casvp > src > utils > mm > simple.h
Go to the documentation of this file
#pragma once
#include "tlm_core/tlm_2/tlm_generic_payload/tlm_gp.h"
namespace mm {
class Simple : public tlm::tlm_mm_interface {
public:
tlm::tlm_generic_payload *Allocate();
void free(tlm::tlm_generic_payload *payload) override;
static Simple &GetInstance();
private:
explicit Simple(size_t size);
~Simple();
std::vector<tlm::tlm_generic_payload *> pool_;
};
} // namespace mm