SimObject::BlockAllocator Class Reference

Class for memory management of SimObjects. More...

#include <SimObject.h>

Collaboration diagram for SimObject::BlockAllocator:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 BlockAllocator (size_t blockSize=SIMOBJECT_ALLOCATOR_BLOCK_SIZE)
 ~BlockAllocator ()
void * allocate (size_t size)


Detailed Description

Class for memory management of SimObjects.

The ratinale behind this memory management is, that all SimObjects belonging to one simulation thread should be in a continous block of memory to avoid false sharing of cache lines. This class approximates this requirement.

Definition at line 417 of file SimObject.h.


Constructor & Destructor Documentation

SimObject::BlockAllocator::BlockAllocator ( size_t  blockSize = SIMOBJECT_ALLOCATOR_BLOCK_SIZE  ) 

Definition at line 130 of file SimObject.cpp.

SimObject::BlockAllocator::~BlockAllocator (  ) 

Definition at line 139 of file SimObject.cpp.


Member Function Documentation

void * SimObject::BlockAllocator::allocate ( size_t  size  ) 

Definition at line 146 of file SimObject.cpp.

Referenced by SimObject::operator new(), and SimObject::operator new[]().


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

Generated on Wed Jul 9 16:34:53 2008 for PCSIM by  doxygen 1.5.5