KaliVeda
1.14/2
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
15
class
KVMemoryChunk
{
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
28
void
SetNext
(
KVMemoryChunk
* n)
29
{
30
fNext
=
n
;
31
};
32
KVMemoryChunk
*
Next
()
const
33
{
34
return
fNext
;
35
};
36
37
void
Print
();
38
39
ClassDef
(
KVMemoryChunk
, 0)
//Memory chunk in pool
40
};
41
42
#endif
Rtypes.h
ClassDef
#define ClassDef(name, id)
KVMemoryChunk
Memory handled by KVMemoryPool.
Definition
KVMemoryChunk.h:15
KVMemoryChunk::fNext
KVMemoryChunk * fNext
next chunk of memory
Definition
KVMemoryChunk.h:19
KVMemoryChunk::~KVMemoryChunk
virtual ~KVMemoryChunk()
Destructor.
Definition
KVMemoryChunk.cpp:37
KVMemoryChunk::Print
void Print()
Definition
KVMemoryChunk.cpp:66
KVMemoryChunk::fSize
size_t fSize
size of chunk in bytes
Definition
KVMemoryChunk.h:17
KVMemoryChunk::SetNext
void SetNext(KVMemoryChunk *n)
Definition
KVMemoryChunk.h:28
KVMemoryChunk::fMemory
char * fMemory
pointer to start of chunk
Definition
KVMemoryChunk.h:16
KVMemoryChunk::GetMemory
void * GetMemory(size_t)
Definition
KVMemoryChunk.cpp:50
KVMemoryChunk::fUsed
size_t fUsed
memory used in bytes
Definition
KVMemoryChunk.h:18
KVMemoryChunk::KVMemoryChunk
KVMemoryChunk()
Default constructor.
Definition
KVMemoryChunk.cpp:13
KVMemoryChunk::Next
KVMemoryChunk * Next() const
Definition
KVMemoryChunk.h:32
n
const Int_t n
kaliveda.doxygen
KVMultiDet
base
KVMemoryChunk.h
Generated on Wed Oct 23 2024 12:45:20 for KaliVeda by
1.9.8