OnixS C++ CME MDP Premium Market Data Handler  5.8.9
API Documentation
MemoryPoolSettings Class Reference

#include <OnixS/CME/MDH/MemoryPoolSettings.h>

Public Member Functions

 MemoryPoolSettings ()
 
 MemoryPoolSettings (const MemoryPoolSettings &other)
 
 ~MemoryPoolSettings ()
 
size_t blockIncrease () const
 
void blockIncrease (size_t increase)
 
size_t increaseQty () const
 
void increaseQty (size_t qty)
 
size_t chunkSize () const
 
void chunkSize (size_t size)
 
size_t chunkScaling () const
 
void chunkScaling (size_t factor)
 
MemoryPoolSettingsoperator= (const MemoryPoolSettings &other)
 

Detailed Description

Control parameters affecting behavior of memory pool used by Handler while processing market data.

Definition at line 46 of file MemoryPoolSettings.h.

Constructor & Destructor Documentation

MemoryPoolSettings ( )
inline

Initializes parameters with default values.

Definition at line 50 of file MemoryPoolSettings.h.

MemoryPoolSettings ( const MemoryPoolSettings other)
inline

Initializes as a copy.

Definition at line 59 of file MemoryPoolSettings.h.

~MemoryPoolSettings ( )
inline

Finalizes the instance.

Definition at line 68 of file MemoryPoolSettings.h.

Member Function Documentation

size_t blockIncrease ( ) const
inline

Memory block increase value.

Memory pool allocates blocks divisible by given value.

Definition at line 74 of file MemoryPoolSettings.h.

void blockIncrease ( size_t  increase)
inline

Updates memory block increase value.

Memory pool allocates blocks divisible by given value.

Definition at line 83 of file MemoryPoolSettings.h.

size_t chunkScaling ( ) const
inline

Defines chunk scale factor.

Each time memory pool allocates a new chunk of blocks, its size is scaled by given factor.

Definition at line 169 of file MemoryPoolSettings.h.

void chunkScaling ( size_t  factor)
inline

Defines chunk scale factor.

Each time memory pool allocates a new chunk of blocks, its size is scaled by given factor.

Definition at line 178 of file MemoryPoolSettings.h.

size_t chunkSize ( ) const
inline

Number of blocks per chunk.

Memory pool allocates chunks of blocks thus reducing number of actual allocations. Given parameter specifies number of memory blocks of same size allocated at once if pool is empty.

Definition at line 139 of file MemoryPoolSettings.h.

void chunkSize ( size_t  size)
inline

Number of blocks per chunk.

Memory pool allocates chunks of blocks thus reducing number of actual allocations. Given parameter specifies number of memory blocks of same size allocated at once if pool is empty.

Definition at line 151 of file MemoryPoolSettings.h.

size_t increaseQty ( ) const
inline

Limits number of increases memory pool does.

Memory pool allocates blocks divisible by 'blockIncrease' value. Efficient allocation is performed for blocks whose size doesn't exceeds multiplication of 'blockIncrease' and 'increaseQty' values. Other blocks are allocated upon request without caching.

Definition at line 105 of file MemoryPoolSettings.h.

void increaseQty ( size_t  qty)
inline

Limits number of increases memory pool does.

Memory pool allocates blocks divisible by 'blockIncrease' value. Efficient allocation is performed for blocks whose size doesn't exceeds multiplication of 'blockIncrease' and 'increaseQty' values. Other blocks are allocated upon request without caching.

Definition at line 118 of file MemoryPoolSettings.h.

MemoryPoolSettings& operator= ( const MemoryPoolSettings other)
inline

Initializes as a copy.

Definition at line 193 of file MemoryPoolSettings.h.


The documentation for this class was generated from the following file: