Hoard::AlignedMmapInstance< Alignment_ > Class Template Reference

Memory allocated from here is aligned with respect to Alignment. More...

#include <alignedmmap.h>

List of all members.

Classes

class  SourceHeap

Public Types

enum  { Alignment = Alignment_ }

Public Member Functions

void * malloc (size_t sz)
void free (void *ptr)
size_t getSize (void *ptr)

Private Types

typedef void * keyType
 The key is an mmapped pointer.
typedef size_t valType
 The value is the requested size.
typedef MyHashMap< keyType,
valType, SourceHeap
mapType
 The map type, with all the pieces in place.

Static Private Member Functions

static char * align (char *buf)
 Round a pointer up to the next Alignment-rounded chunk.

Private Attributes

mapType MyMap
 The map that maintains the size of each mmapped chunk.

Detailed Description

template<size_t Alignment_>
class Hoard::AlignedMmapInstance< Alignment_ >

Memory allocated from here is aligned with respect to Alignment.

Author:
Emery Berger <http://www.cs.umass.edu/~emery>

Member Typedef Documentation

template<size_t Alignment_>
typedef void* Hoard::AlignedMmapInstance< Alignment_ >::keyType [private]

The key is an mmapped pointer.

template<size_t Alignment_>
typedef MyHashMap<keyType, valType, SourceHeap> Hoard::AlignedMmapInstance< Alignment_ >::mapType [private]

The map type, with all the pieces in place.

template<size_t Alignment_>
typedef size_t Hoard::AlignedMmapInstance< Alignment_ >::valType [private]

The value is the requested size.


Member Enumeration Documentation

template<size_t Alignment_>
anonymous enum
Enumerator:
Alignment 

Member Function Documentation

template<size_t Alignment_>
static char* Hoard::AlignedMmapInstance< Alignment_ >::align ( char *  buf  )  [inline, static, private]

Round a pointer up to the next Alignment-rounded chunk.

template<size_t Alignment_>
void Hoard::AlignedMmapInstance< Alignment_ >::free ( void *  ptr  )  [inline]
template<size_t Alignment_>
size_t Hoard::AlignedMmapInstance< Alignment_ >::getSize ( void *  ptr  )  [inline]
template<size_t Alignment_>
void* Hoard::AlignedMmapInstance< Alignment_ >::malloc ( size_t  sz  )  [inline]

Member Data Documentation

template<size_t Alignment_>
mapType Hoard::AlignedMmapInstance< Alignment_ >::MyMap [private]

The map that maintains the size of each mmapped 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