Rudiments
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 #ifdef RUDIMENTS_NAMESPACE
10 namespace rudiments {
11 #endif
12 
13 class memorypoolprivate;
14 
22 class RUDIMENTS_DLLSPEC memorypool {
23  public:
34  memorypool(size_t initialsize,
35  size_t increment,
36  size_t resizeinterval);
37 
39  ~memorypool();
40 
44  unsigned char *malloc(size_t size);
45 
50  unsigned char *calloc(size_t size);
51 
54  void free();
55 
57  void print();
58 
59  #include <rudiments/private/memorypool.h>
60 };
61 
62 #ifdef RUDIMENTS_NAMESPACE
63 }
64 #endif
65 
66 #endif