Galois::Runtime::MM::SimpleBumpPtrWithMallocFallback< SourceHeap > Class Template Reference

This implements a bump pointer though chunks of memory that falls back to malloc if the source heap cannot accommodate an allocation. More...

#include <Mem.h>

Inheritance diagram for Galois::Runtime::MM::SimpleBumpPtrWithMallocFallback< SourceHeap >:
SourceHeap

List of all members.

Classes

struct  Block

Public Types

enum  { AllocSize = 0 }

Public Member Functions

 SimpleBumpPtrWithMallocFallback ()
 ~SimpleBumpPtrWithMallocFallback ()
void clear ()
void * allocate (size_t size)
void deallocate (void *ptr)

Private Member Functions

void refill (void *P, Block *&h, int *o)
 Given block of memory P, update head pointer and offset metadata.

Private Attributes

Blockhead
BlockfallbackHead
int offset

Detailed Description

template<typename SourceHeap>
class Galois::Runtime::MM::SimpleBumpPtrWithMallocFallback< SourceHeap >

This implements a bump pointer though chunks of memory that falls back to malloc if the source heap cannot accommodate an allocation.


Member Enumeration Documentation

template<typename SourceHeap>
anonymous enum
Enumerator:
AllocSize 

Constructor & Destructor Documentation


Member Function Documentation

template<typename SourceHeap>
void* Galois::Runtime::MM::SimpleBumpPtrWithMallocFallback< SourceHeap >::allocate ( size_t  size  )  [inline]
template<typename SourceHeap>
void Galois::Runtime::MM::SimpleBumpPtrWithMallocFallback< SourceHeap >::clear (  )  [inline]
template<typename SourceHeap>
void Galois::Runtime::MM::SimpleBumpPtrWithMallocFallback< SourceHeap >::deallocate ( void *  ptr  )  [inline]
template<typename SourceHeap>
void Galois::Runtime::MM::SimpleBumpPtrWithMallocFallback< SourceHeap >::refill ( void *  P,
Block *&  h,
int *  o 
) [inline, private]

Given block of memory P, update head pointer and offset metadata.


Member Data Documentation

template<typename SourceHeap>
Block* Galois::Runtime::MM::SimpleBumpPtrWithMallocFallback< SourceHeap >::head [private]
template<typename SourceHeap>
int Galois::Runtime::MM::SimpleBumpPtrWithMallocFallback< SourceHeap >::offset [private]

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

Generated on 2 Nov 2013 for Galois by  doxygen 1.6.1