34 const char* parameter)
38 reason +=
"Non-zero value is expected for '";
39 reason += parameter ? parameter :
"<unknown>";
40 reason +=
"' parameter. ";
42 throw std::out_of_range(reason);
51 size_t blockIncrease_;
74 return blockIncrease_;
86 blockIncrease_ = increase;
162 return chunkScaling_;
175 chunkScaling_ = factor;
201 toStr(str, settings);
void chunkSize(size_t size)
Number of blocks per chunk.
void increaseQty(size_t qty)
Limits number of increases memory pool does.
size_t blockIncrease() const
Memory block increase value.
#define ONIXS_CMESTREAMLINEDMDH_NAMESPACE_END
#define ONIXS_CMESTREAMLINEDMDH_LTWT_CLASS
#define ONIXS_CMESTREAMLINEDMDH_EXPORTED
void chunkScaling(size_t factor)
Defines chunk scale factor.
size_t increaseQty() const
Limits number of increases memory pool does.
MemoryPoolSettings()
Initializes parameters with default values.
size_t chunkScaling() const
Defines chunk scale factor.
std::string toStr(const MemoryPoolSettings &settings)
Serializes memory pool settings into a string.
size_t chunkSize() const
Number of blocks per chunk.
void blockIncrease(size_t increase)
Updates memory block increase value.
void throwZeroParameter(const char *parameter)
Raises exception on zero parameter value.
#define ONIXS_CMESTREAMLINEDMDH_NAMESPACE_BEGIN