Swarm-NG
1.1
|
Class for memory map array. More...
#include <memorymap.hpp>
Public Member Functions | |
void | open (const std::string &filename, size_t size=-1, size_t offset=0, int mode=ro, int mapstyle=shared) |
Open the file. | |
const T & | operator[] (int i) const |
Defines operator. | |
iterator | begin () |
Returns the first map. | |
iterator | end () |
Returns the last map. | |
T & | front () |
Return the map array pointer. | |
size_t | size () const |
returns the size of the map arary | |
Public Member Functions inherited from peyton::system::MemoryMap | |
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. | |
Additional Inherited Members | |
Public Types inherited from peyton::system::MemoryMap | |
enum | |
Enumerate IO types. | |
enum | |
Enumerate mapping types. | |
Static Public Member Functions inherited from peyton::system::MemoryMap | |
static void | pagesizealign (std::ostream &out) |
page size alignment | |
Class for memory map array.
Definition at line 110 of file memorymap.hpp.