Rudiments
memorypool.h
1// Copyright (c) 1999-2018 David Muse
2// See the COPYING file for more information.
3
4#ifndef RUDIMENTS_MEMORYPOOL_H
5#define RUDIMENTS_MEMORYPOOL_H
6
7#include <rudiments/private/memorypoolincludes.h>
8
16class RUDIMENTS_DLLSPEC memorypool : public object {
17 public:
29
40 memorypool(size_t initialsize,
41 size_t incrementsize,
42 size_t resizeinterval);
43
46
49
53
56
60 byte_t *allocate(size_t size);
61
71 bool clear();
72
85 bool clear(size_t incrementsize,
86 size_t resizeinterval);
87
96 bool clear(size_t initialsize,
97 size_t incrementsize,
98 size_t resizeinterval);
99
100 #include <rudiments/private/memorypool.h>
101};
102
103#endif
Definition memorypool.h:16
byte_t * allocate(size_t size)
size_t getResizeInterval()
memorypool(size_t initialsize, size_t incrementsize, size_t resizeinterval)
bool clear(size_t incrementsize, size_t resizeinterval)
bool clear(size_t initialsize, size_t incrementsize, size_t resizeinterval)
bool clear()
size_t getInitialSize()
size_t getIncrementSize()
Definition object.h:10