Annotation of parser3/src/include/pa_pool.h, revision 1.4
1.1 paf 1: /*
1.4 ! paf 2: $Id: pa_pool.h,v 1.3 2001/01/26 15:33:40 paf Exp $
1.1 paf 3: */
4:
5: #ifndef PA_POOL_H
6: #define PA_POOL_H
7:
8: #include <stddef.h>
9:
1.4 ! paf 10: #include "pa_string.h"
1.1 paf 11:
12: class Pool {
13: public:
14: Pool();
15: ~Pool();
16: void *alloc(size_t size);
17: void *calloc(size_t size);
18:
19: String *makeString() {
20: return new(this) String(this);
21: }
22: String *makeString(char *src) {
23: return new(this) String(this, src);
24: }
25: };
26:
27: #endif
E-mail: