From e3675d4d75c708f35f8041f493fde2fbfbea55b2 Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Mon, 25 Mar 2024 22:20:01 +0100 Subject: Add stubs for memory scopes API --- deimos/core/allocator.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'deimos/core/allocator.h') diff --git a/deimos/core/allocator.h b/deimos/core/allocator.h index b156620..911f8e7 100644 --- a/deimos/core/allocator.h +++ b/deimos/core/allocator.h @@ -128,9 +128,18 @@ public: class AllocatorApi { public: + AllocatorApi() = default; + + deimos_NO_COPY_MOVE(AllocatorApi); + + virtual ~AllocatorApi() = default; + static constexpr IdName kApiName{"deimos::AllocatorApi"}; Allocator* system{}; + + virtual Allocator* CreateChild(Allocator* parent, const char* description) = 0; + virtual void DestroyChild(Allocator*) = 0; }; } // namespace deimos -- cgit