OnixS C++ FIX Engine 4.14.0
Users' manual and API documentation
Loading...
Searching...
No Matches
PoolAllocatorBase Class Referenceabstract

#include <OnixS/FIXEngine/Threading/Definitions.h>

Public Member Functions

virtual ~PoolAllocatorBase ()=default
virtual ItemBase * alloc ()=0
virtual void free (ItemBase *element) const

Detailed Description

The base class for a custom pool allocator to provide a strategy to create/destroy items for the thread-safe pool.

Definition at line 93 of file Definitions.h.

Constructor & Destructor Documentation

◆ ~PoolAllocatorBase()

virtual ~PoolAllocatorBase ( )
virtualdefault

Destructs the instance.

Member Function Documentation

◆ alloc()

virtual ItemBase * alloc ( )
pure virtual

A strategy to create an item.

◆ free()

virtual void free ( ItemBase * element) const
inlinevirtual

A strategy to destroy an item.

Definition at line 104 of file Definitions.h.