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
16 class RUDIMENTS_DLLSPEC memorypool {
17 public:
28 memorypool();
29
40 memorypool(size_t initialsize,
41 size_t incrementsize,
42 size_t resizeinterval);
43
45 ~memorypool();
46
48 size_t getInitialSize() const;
49
52 size_t getIncrementSize() const;
53
55 size_t getResizeInterval() const;
56
60 unsigned char *allocate(size_t size);
61
69 void clear();
70
81 void clear(size_t incrementsize,
82 size_t resizeinterval);
83
90 void clear(size_t initialsize,
91 size_t incrementsize,
92 size_t resizeinterval);
93
94 #include <rudiments/private/memorypool.h>
95 };
96
97 #endif
memorypool
Definition: memorypool.h:16
memorypool::getInitialSize
size_t getInitialSize() const
memorypool::clear
void clear()
memorypool::memorypool
memorypool()
memorypool::getResizeInterval
size_t getResizeInterval() const
memorypool::clear
void clear(size_t initialsize, size_t incrementsize, size_t resizeinterval)
memorypool::~memorypool
~memorypool()
memorypool::allocate
unsigned char * allocate(size_t size)
memorypool::memorypool
memorypool(size_t initialsize, size_t incrementsize, size_t resizeinterval)
memorypool::clear
void clear(size_t incrementsize, size_t resizeinterval)
memorypool::getIncrementSize
size_t getIncrementSize() const