Go to the documentation of this file.
12 #define PoolConstr_D 0
57 char* b = (
char*)blk; blk = ((
link*) blk)->lnk;
65 void* b =
new char[blkSz *
sizeof(T) +
sizeof(
link)];
66 ((
link*) b)->lnk = blk; blk = b;
67 next = (T*)((
link*) blk + 1); free = blkSz;
69 free--;
return next++;
75 float blkmem = blkSz *
sizeof(T) +
sizeof(
link);
76 for(
void* b = blk; b != NULL; b = ((
link*)b)->lnk) mem += blkmem;
77 return sizeof(
Pool) + mem;
T * alloc()
Returns a pointer to a available location.
Pool(unsigned sz=0)
Constructor.
#define DEBUGL(doit, msg)
unsigned free
Stores the number of free entries.
Pool for blockwise memory allocation.
Basic namespace for Concepts-2.