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 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 
55  void deallocate();
56 
57  #include <rudiments/private/memorypool.h>
58 };
59 
60 #endif
Definition: memorypool.h:18