Hoard::BumpAlloc< ChunkSize, super > Class Template Reference

#include <bumpalloc.h>

Inheritance diagram for Hoard::BumpAlloc< ChunkSize, super >:
super

List of all members.

Public Member Functions

 BumpAlloc (void)
void * malloc (size_t sz)
void free (void *)
 Free is disabled (we only bump, never reclaim).

Private Member Functions

void refill (size_t sz)

Private Attributes

char * _bump
 The bump pointer.
size_t _remaining
 How much space remains in the current chunk.

template<int ChunkSize, class super>
class Hoard::BumpAlloc< ChunkSize, super >


Constructor & Destructor Documentation

template<int ChunkSize, class super>
Hoard::BumpAlloc< ChunkSize, super >::BumpAlloc ( void   )  [inline]

Member Function Documentation

template<int ChunkSize, class super>
void Hoard::BumpAlloc< ChunkSize, super >::free ( void *   )  [inline]

Free is disabled (we only bump, never reclaim).

template<int ChunkSize, class super>
void* Hoard::BumpAlloc< ChunkSize, super >::malloc ( size_t  sz  )  [inline]
template<int ChunkSize, class super>
void Hoard::BumpAlloc< ChunkSize, super >::refill ( size_t  sz  )  [inline, private]

Member Data Documentation

template<int ChunkSize, class super>
char* Hoard::BumpAlloc< ChunkSize, super >::_bump [private]

The bump pointer.

template<int ChunkSize, class super>
size_t Hoard::BumpAlloc< ChunkSize, super >::_remaining [private]

How much space remains in the current chunk.


The documentation for this class was generated from the following file:
Generated on Tue Aug 2 11:51:31 2011 for Galois by  doxygen 1.6.3