LAMA
lama::PGASSimpleAllocator Class Reference

#include <PGASSimpleAllocator.hpp>

Inheritance diagram for lama::PGASSimpleAllocator:

Public Member Functions

 PGASSimpleAllocator (void *basepointer, size_t size)
virtual ~PGASSimpleAllocator ()
virtual void * allocate (size_t size)
virtual void free (void *ptr, size_t size)
void recalcFreeSpace ()
virtual bool isAllocated (const void *ptr)
virtual size_t getOffset (const void *ptr)

Private Attributes

void * mBasePointer
size_t mSize
void * mActualPointer
std::list< void * > mLastPtrs
size_t mFreeSpace

Constructor & Destructor Documentation

lama::PGASSimpleAllocator::PGASSimpleAllocator ( void *  basepointer,
size_t  size 
)

Member Function Documentation

void * lama::PGASSimpleAllocator::allocate ( size_t  size) [virtual]
void lama::PGASSimpleAllocator::free ( void *  ptr,
size_t  size 
) [virtual]
size_t lama::PGASSimpleAllocator::getOffset ( const void *  ptr) [virtual]

Implements lama::PGASAllocator.

References mBasePointer.

bool lama::PGASSimpleAllocator::isAllocated ( const void *  ptr) [virtual]

Implements lama::PGASAllocator.

References mActualPointer, and mBasePointer.


Field Documentation

std::list<void*> lama::PGASSimpleAllocator::mLastPtrs [private]

Referenced by allocate(), free(), and recalcFreeSpace().


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