AWS SDK for C++  1.9.4
AWS SDK for C++
MemorySystemInterface.h
Go to the documentation of this file.
1 
6 #pragma once
7 
9 
10 #include <cstdlib>
11 
12 namespace Aws
13 {
14  namespace Utils
15  {
16  namespace Memory
17  {
23  {
24  public:
25  virtual ~MemorySystemInterface() = default;
26 
30  virtual void Begin() = 0;
34  virtual void End() = 0;
35 
40  virtual void* AllocateMemory(std::size_t blockSize, std::size_t alignment, const char *allocationTag = nullptr) = 0;
41 
45  virtual void FreeMemory(void* memoryPtr) = 0;
46  };
47 
48  } // namespace Memory
49  } // namespace Utils
50 } // namespace Aws
AWS_CORE_API
#define AWS_CORE_API
Definition: Core_EXPORTS.h:25
Aws::Utils::Memory::MemorySystemInterface::~MemorySystemInterface
virtual ~MemorySystemInterface()=default
Aws::Utils::Memory::MemorySystemInterface::FreeMemory
virtual void FreeMemory(void *memoryPtr)=0
Aws::ComputeOptimizer::Model::LambdaFunctionMetricName::NOT_SET
@ NOT_SET
Aws::Utils::Memory::MemorySystemInterface::AllocateMemory
virtual void * AllocateMemory(std::size_t blockSize, std::size_t alignment, const char *allocationTag=nullptr)=0
Aws::Utils::Memory::MemorySystemInterface::End
virtual void End()=0
Core_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::Utils::Memory::MemorySystemInterface
Definition: MemorySystemInterface.h:23
Aws::Utils::Memory::MemorySystemInterface::Begin
virtual void Begin()=0