KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVMemoryChunk.h
1
3
4#ifndef __KVMEMORYCHUNK_H
5#define __KVMEMORYCHUNK_H
6#include "Rtypes.h"
7#include <cstdio>
8
16 char* fMemory;
17 size_t fSize;
18 size_t fUsed;
20
21public:
23 KVMemoryChunk(size_t);
24 virtual ~KVMemoryChunk();
25
26 void* GetMemory(size_t);
27
29 {
30 fNext = n;
31 };
33 {
34 return fNext;
35 };
36
37 void Print();
38
39 ClassDef(KVMemoryChunk, 0) //Memory chunk in pool
40};
41
42#endif
#define ClassDef(name, id)
Memory handled by KVMemoryPool.
KVMemoryChunk * fNext
next chunk of memory
virtual ~KVMemoryChunk()
Destructor.
size_t fSize
size of chunk in bytes
void SetNext(KVMemoryChunk *n)
char * fMemory
pointer to start of chunk
void * GetMemory(size_t)
size_t fUsed
memory used in bytes
KVMemoryChunk()
Default constructor.
KVMemoryChunk * Next() const
const Int_t n