OnixS C++ CME MDP Conflated UDP Handler 1.1.2
API documentation
Loading...
Searching...
No Matches
MemoryPool Class Referenceabstract

Public Member Functions

virtual void release ()=0
virtual void * allocate (size_t)=0
virtual void deallocate (void *)=0

Protected Member Functions

 MemoryPool ()
virtual ~MemoryPool ()

Detailed Description

Memory pool abstraction.

Defines interface for memory block allocation and disposing.

Definition at line 37 of file MemoryPool.h.

Constructor & Destructor Documentation

◆ MemoryPool()

MemoryPool ( )
inlineprotected

Default initialization.

Instance construction is assumed through descendants.

Definition at line 58 of file MemoryPool.h.

◆ ~MemoryPool()

virtual ~MemoryPool ( )
inlineprotectedvirtual

Destruction is through descendants.

Definition at line 63 of file MemoryPool.h.

Member Function Documentation

◆ allocate()

virtual void * allocate ( size_t )
pure virtual

Allocates memory block of given size.

◆ deallocate()

virtual void deallocate ( void * )
pure virtual

Releases previously allocated memory block.

◆ release()

virtual void release ( )
pure virtual

Releases given instance.