diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-03-25 22:20:01 +0100 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-03-25 22:20:01 +0100 |
commit | e3675d4d75c708f35f8041f493fde2fbfbea55b2 (patch) | |
tree | e24c1ae14c6a77939c47bc7649086d94d9a0890f /deimos/core/allocator.h | |
parent | 5606b4c399404c0b8f745c6702d70f26eff8b371 (diff) |
Add stubs for memory scopes API
Diffstat (limited to 'deimos/core/allocator.h')
-rw-r--r-- | deimos/core/allocator.h | 9 |
1 files changed, 9 insertions, 0 deletions
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
|