klMatrix
Public Member Functions | Private Attributes
klVMemMgr Class Reference

#include <kl_memory.h>

Inheritance diagram for klVMemMgr:
Inheritance graph
Collaboration diagram for klVMemMgr:
Collaboration graph

Public Member Functions

 klVMemMgr (unsigned long maxAllocate=0)
 
 ~klVMemMgr ()
 
void * allocate (size_t size)
 
bool free (void *buffer)
 
unsigned long committed ()
 
unsigned long available ()
 
unsigned long reserved ()
 
unsigned long getMaxAllocate ()
 
void setMaxAllocate (unsigned long maxAllocate)
 

Private Attributes

multimap< size_t, klVMemBlock * > * _freeMap
 
multimap< void *, klVMemBlock * > * _committedMap
 
unsigned long _committed
 
unsigned long _free
 
unsigned long _reserved
 
unsigned long _maxAllocate
 
unsigned long _allocatedBlocks
 

Constructor & Destructor Documentation

klVMemMgr::klVMemMgr ( unsigned long  maxAllocate = 0)
inline
klVMemMgr::~klVMemMgr ( )
inline

Member Function Documentation

void* klVMemMgr::allocate ( size_t  size)
inlinevirtual

Implements klMemMgr.

Here is the call graph for this function:

Here is the caller graph for this function:

unsigned long klVMemMgr::available ( )
inline

Here is the caller graph for this function:

unsigned long klVMemMgr::committed ( )
inline

Here is the caller graph for this function:

bool klVMemMgr::free ( void *  buffer)
inlinevirtual

Implements klMemMgr.

Here is the call graph for this function:

Here is the caller graph for this function:

unsigned long klVMemMgr::getMaxAllocate ( )
inline
unsigned long klVMemMgr::reserved ( )
inline
void klVMemMgr::setMaxAllocate ( unsigned long  maxAllocate)
inline

Field Documentation

unsigned long klVMemMgr::_allocatedBlocks
private
unsigned long klVMemMgr::_committed
private
multimap<void*,klVMemBlock*>* klVMemMgr::_committedMap
private
unsigned long klVMemMgr::_free
private
multimap<size_t,klVMemBlock*>* klVMemMgr::_freeMap
private
unsigned long klVMemMgr::_maxAllocate
private
unsigned long klVMemMgr::_reserved
private

The documentation for this class was generated from the following file: