KaliVeda
Toolkit for HIC analysis
KVMemoryChunk.h
1 
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;
19  KVMemoryChunk* fNext;
20 
21 public:
22  KVMemoryChunk();
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.
Definition: KVMemoryChunk.h:15
virtual ~KVMemoryChunk()
Destructor.
KVMemoryChunk * Next() const
Definition: KVMemoryChunk.h:32
void SetNext(KVMemoryChunk *n)
Definition: KVMemoryChunk.h:28
void * GetMemory(size_t)
KVMemoryChunk()
Default constructor.
const Int_t n