Swarm-NG  1.1
peyton::system::MemoryMap Class Reference

Class for memory mapping. More...

#include <memorymap.hpp>

Inheritance diagram for peyton::system::MemoryMap:
mmapped_file_with_header< Header > mmapped_file_with_header< swarm_header > mmapped_file_with_header< swarm_index_header > peyton::system::MemoryMapVector< T >

Public Types

enum  
 Enumerate IO types.
 
enum  
 Enumerate mapping types.
 

Public Member Functions

void open (int fd, size_t length_, size_t offset, int mode, int mapstyle, bool closefd=false)
 open file
 
 MemoryMap ()
 Constructors.
 
void open (const std::string &filename, size_t length=0, size_t offset=0, int mode=ro, int map=shared)
 open file with mapping type
 
 ~MemoryMap ()
 Destructor.
 
 operator void * ()
 Define operator.
 

Static Public Member Functions

static void pagesizealign (std::ostream &out)
 page size alignment
 

Detailed Description

Class for memory mapping.

Definition at line 54 of file memorymap.hpp.


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