KaliVeda
Toolkit for HIC analysis
KVMemoryChunk Class Reference

Detailed Description

Memory handled by KVMemoryPool.

Created by KVClassFactory on Fri Oct 1 16:50:15 2010 Author: John Frankland,,,,

Definition at line 15 of file KVMemoryChunk.h.

#include <KVMemoryChunk.h>

Public Member Functions

 KVMemoryChunk ()
 Default constructor. More...
 
 KVMemoryChunk (size_t)
 Allocate new chunk of size 'bytes'. More...
 
virtual ~KVMemoryChunk ()
 Destructor. More...
 
voidGetMemory (size_t)
 
KVMemoryChunkNext () const
 
void Print ()
 
void SetNext (KVMemoryChunk *n)
 

Constructor & Destructor Documentation

◆ KVMemoryChunk() [1/2]

KVMemoryChunk::KVMemoryChunk ( )

Default constructor.

Definition at line 13 of file KVMemoryChunk.cpp.

◆ KVMemoryChunk() [2/2]

KVMemoryChunk::KVMemoryChunk ( size_t  bytes)

Allocate new chunk of size 'bytes'.

Definition at line 24 of file KVMemoryChunk.cpp.

◆ ~KVMemoryChunk()

KVMemoryChunk::~KVMemoryChunk ( )
virtual

Destructor.

Definition at line 37 of file KVMemoryChunk.cpp.

Member Function Documentation

◆ GetMemory()

void * KVMemoryChunk::GetMemory ( size_t  bytes)

Return pointer to block of memory of size 'bytes' If no block of this size is available, returns 0 (test it!!)

Definition at line 50 of file KVMemoryChunk.cpp.

◆ Next()

KVMemoryChunk* KVMemoryChunk::Next ( ) const
inline

Definition at line 32 of file KVMemoryChunk.h.

◆ Print()

void KVMemoryChunk::Print ( void  )

Definition at line 66 of file KVMemoryChunk.cpp.

◆ SetNext()

void KVMemoryChunk::SetNext ( KVMemoryChunk n)
inline

Definition at line 28 of file KVMemoryChunk.h.