OnixS C++ CME Market Data Handler  5.4.0
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

Memory pool settings.

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

Definition at line 49 of file MemoryPoolSettings.h.

Constructor & Destructor Documentation

MemoryPoolSettings ( )
inline

Initializes parameters with default values.

Definition at line 61 of file MemoryPoolSettings.h.

MemoryPoolSettings ( const MemoryPoolSettings other)
inline

Initializes as a copy.

Definition at line 70 of file MemoryPoolSettings.h.

~MemoryPoolSettings ( )
inline

Finalizes the instance.

Definition at line 84 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 93 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 103 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 203 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 213 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 168 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 181 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 129 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 143 of file MemoryPoolSettings.h.

MemoryPoolSettings& operator= ( const MemoryPoolSettings other)
inline

Initializes as a copy.

Definition at line 232 of file MemoryPoolSettings.h.


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