Rudiments

- Main Page
- Classes

memorypool.h
1 // Copyright (c) 2002 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
9 class memorypoolprivate;
10
18 class RUDIMENTS_DLLSPEC memorypool {
19 public:
30 memorypool(size_t initialsize,
31 size_t increment,
32 size_t resizeinterval);
33
35 ~memorypool();
36
40 unsigned char *allocate(size_t size);
41
46 unsigned char *allocateAndClear(size_t size);
47
50 void deallocate();
51
53 void print();
54
55 #include <rudiments/private/memorypool.h>
56 };
57
58 #endif
memorypool
Definition: memorypool.h:18