Memory allocated from here is aligned with respect to Alignment. More...
#include <alignedmmap.h>
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. |
Memory allocated from here is aligned with respect to Alignment.
typedef void* Hoard::AlignedMmapInstance< Alignment_ >::keyType [private] |
The key is an mmapped pointer.
typedef MyHashMap<keyType, valType, SourceHeap> Hoard::AlignedMmapInstance< Alignment_ >::mapType [private] |
The map type, with all the pieces in place.
typedef size_t Hoard::AlignedMmapInstance< Alignment_ >::valType [private] |
The value is the requested size.
static char* Hoard::AlignedMmapInstance< Alignment_ >::align | ( | char * | buf | ) | [inline, static, private] |
Round a pointer up to the next Alignment-rounded chunk.
void Hoard::AlignedMmapInstance< Alignment_ >::free | ( | void * | ptr | ) | [inline] |
size_t Hoard::AlignedMmapInstance< Alignment_ >::getSize | ( | void * | ptr | ) | [inline] |
void* Hoard::AlignedMmapInstance< Alignment_ >::malloc | ( | size_t | sz | ) | [inline] |
mapType Hoard::AlignedMmapInstance< Alignment_ >::MyMap [private] |
The map that maintains the size of each mmapped chunk.