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_;
95 return blockIncrease_;
112 blockIncrease_ = increase;
205 return chunkScaling_;
222 chunkScaling_ = factor;
236 other.blockIncrease_;
252 ONIXS_CONFLATEDUDP_EXPORTED
268 toStr(str, settings);
void chunkSize(size_t size)
~MemoryPoolSettings()
Finalizes the instance.
void increaseQty(size_t qty)
std::string toStr(const MemoryPoolSettings &settings)
Serializes memory pool settings into a string.
char Char
Character type alias.
size_t blockIncrease() const
#define ONIXS_CONFLATEDUDP_NAMESPACE_END
void throwZeroParameter(const Char *parameter)
Raises exception on zero parameter value.
size_t chunkScaling() const
void blockIncrease(size_t increase)
size_t increaseQty() const
void chunkScaling(size_t factor)
MemoryPoolSettings(const MemoryPoolSettings &other)
Initializes as a copy.
#define ONIXS_CONFLATEDUDP_LTWT_CLASS
#define ONIXS_CONFLATEDUDP_NAMESPACE_BEGIN
MemoryPoolSettings()
Initializes parameters with default values.