Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

ShmAllocator::MemAlloc Class Reference

#include <ShmAllocator.h>

List of all members.

Static Public Member Functions

void initialize (unsigned sizeBits, bool freeMemory=false) throw (MemException)
void MemAlloc::destroy ()
void * allocate (size_t size) throw (MemException)
void deallocate (void *p)

Static Public Attributes

BlocksListbl = NULL


Detailed Description

Static class. Handles the shared memory blocks. Performs the actual allocation and deallocation.

Author:
Nir Shahaf
Version:
0.1


Member Function Documentation

void * ShmAllocator::MemAlloc::allocate size_t  size  )  throw (MemException) [static]
 

Allocates memory from the block.

Parameters:
size Number of bytes to allocate.
Returns:
Pointer to the allocated space.

void ShmAllocator::MemAlloc::deallocate void *  p  )  [static]
 

Returns allocated space to the block.

Parameters:
p Pointer to the allocated space to return.

void ShmAllocator::MemAlloc::initialize unsigned  sizeBits,
bool  freeMemory = false
throw (MemException) [static]
 

Initializes the static class.

Parameters:
sizeBits The size of the block will be 2^sizeBits (<=25)

void ShmAllocator::MemAlloc::MemAlloc::destroy  )  [static]
 

Destroy the shared memory block.


Member Data Documentation

BlocksList * ShmAllocator::MemAlloc::bl = NULL [static]
 


The documentation for this class was generated from the following files:
Generated on Thu Jan 27 10:06:44 2005 for ShmAllocator by doxygen 1.3.6