|
@@ -132,14 +132,14 @@ private:
|
|
|
|
|
|
|
|
/// A dummy interface to match the StackMemoryPool and ChainMemoryPool interfaces in order to be used by the same
|
|
/// A dummy interface to match the StackMemoryPool and ChainMemoryPool interfaces in order to be used by the same
|
|
|
/// allocator template.
|
|
/// allocator template.
|
|
|
-class HeapMemoryPool : public BaseMemoryPool
|
|
|
|
|
|
|
+class HeapMemoryPool final : public BaseMemoryPool
|
|
|
{
|
|
{
|
|
|
public:
|
|
public:
|
|
|
/// Default constructor.
|
|
/// Default constructor.
|
|
|
HeapMemoryPool();
|
|
HeapMemoryPool();
|
|
|
|
|
|
|
|
/// Destroy
|
|
/// Destroy
|
|
|
- ~HeapMemoryPool() final;
|
|
|
|
|
|
|
+ ~HeapMemoryPool();
|
|
|
|
|
|
|
|
/// The real constructor.
|
|
/// The real constructor.
|
|
|
/// @param allocCb The allocation function callback
|
|
/// @param allocCb The allocation function callback
|
|
@@ -163,7 +163,7 @@ private:
|
|
|
|
|
|
|
|
/// Thread safe memory pool. It's a preallocated memory pool that is used for memory allocations on top of that
|
|
/// Thread safe memory pool. It's a preallocated memory pool that is used for memory allocations on top of that
|
|
|
/// preallocated memory. It is mainly used by fast stack allocators
|
|
/// preallocated memory. It is mainly used by fast stack allocators
|
|
|
-class StackMemoryPool : public BaseMemoryPool
|
|
|
|
|
|
|
+class StackMemoryPool final : public BaseMemoryPool
|
|
|
{
|
|
{
|
|
|
public:
|
|
public:
|
|
|
/// The type of the pool's snapshot
|
|
/// The type of the pool's snapshot
|
|
@@ -173,7 +173,7 @@ public:
|
|
|
StackMemoryPool();
|
|
StackMemoryPool();
|
|
|
|
|
|
|
|
/// Destroy
|
|
/// Destroy
|
|
|
- ~StackMemoryPool() final;
|
|
|
|
|
|
|
+ ~StackMemoryPool();
|
|
|
|
|
|
|
|
/// Create with parameters
|
|
/// Create with parameters
|
|
|
/// @param allocCb The allocation function callback
|
|
/// @param allocCb The allocation function callback
|
|
@@ -269,14 +269,14 @@ private:
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
/// Chain memory pool. Almost similar to StackMemoryPool but more flexible and at the same time a bit slower.
|
|
/// Chain memory pool. Almost similar to StackMemoryPool but more flexible and at the same time a bit slower.
|
|
|
-class ChainMemoryPool : public BaseMemoryPool
|
|
|
|
|
|
|
+class ChainMemoryPool final : public BaseMemoryPool
|
|
|
{
|
|
{
|
|
|
public:
|
|
public:
|
|
|
/// Default constructor
|
|
/// Default constructor
|
|
|
ChainMemoryPool();
|
|
ChainMemoryPool();
|
|
|
|
|
|
|
|
/// Destroy
|
|
/// Destroy
|
|
|
- ~ChainMemoryPool() final;
|
|
|
|
|
|
|
+ ~ChainMemoryPool();
|
|
|
|
|
|
|
|
/// Creates the pool.
|
|
/// Creates the pool.
|
|
|
/// @param allocCb The allocation function callback.
|
|
/// @param allocCb The allocation function callback.
|