Galois
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
galois::runtime::BumpHeap< SourceHeap > Class Template Reference

This implements a bump pointer though chunks of memory. More...

#include <Mem.h>

Inheritance diagram for galois::runtime::BumpHeap< SourceHeap >:

Public Types

enum  { AllocSize = 0 }
 

Public Member Functions

 BumpHeap ()
 
 ~BumpHeap ()
 
void clear ()
 
void * allocate (size_t size)
 
void * allocate (size_t size, size_t &allocated)
 Allocates size bytes but may fail. More...
 
void deallocate (void *)
 

Detailed Description

template<typename SourceHeap>
class galois::runtime::BumpHeap< SourceHeap >

This implements a bump pointer though chunks of memory.

Member Enumeration Documentation

template<typename SourceHeap >
anonymous enum
Enumerator
AllocSize 

Constructor & Destructor Documentation

template<typename SourceHeap >
galois::runtime::BumpHeap< SourceHeap >::BumpHeap ( )
inline
template<typename SourceHeap >
galois::runtime::BumpHeap< SourceHeap >::~BumpHeap ( )
inline

Member Function Documentation

template<typename SourceHeap >
void* galois::runtime::BumpHeap< SourceHeap >::allocate ( size_t  size)
inline
template<typename SourceHeap >
void* galois::runtime::BumpHeap< SourceHeap >::allocate ( size_t  size,
size_t &  allocated 
)
inline

Allocates size bytes but may fail.

If so, size < allocated and allocated is the number of bytes allocated in the returned buffer.

template<typename SourceHeap >
void galois::runtime::BumpHeap< SourceHeap >::clear ( void  )
inline
template<typename SourceHeap >
void galois::runtime::BumpHeap< SourceHeap >::deallocate ( void *  )
inline

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