ROSE  0.9.6a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MemoryMap.h File Reference
#include "ByteOrder.h"
#include <boost/shared_ptr.hpp>
Include dependency graph for MemoryMap.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  MemoryMap
 An efficient mapping from an address space to stored data. More...
 
class  MemoryMap::Buffer
 Base class for data associated with a memory segment. More...
 
class  MemoryMap::NullBuffer
 Buffer that has no data. More...
 
class  MemoryMap::ExternBuffer
 Buffer of data owned by someone else. More...
 
class  MemoryMap::ByteBuffer
 Buffer of bytes. More...
 
class  MemoryMap::MmapBuffer
 Buffer whose underlying storage is from mmap. More...
 
class  MemoryMap::AnonymousBuffer
 Buffer of bytes. More...
 
class  MemoryMap::Segment
 A contiguous, homogeneous region of an address space. More...
 
class  MemoryMap::Visitor
 Visitor for traversing a memory map. More...
 
class  MemoryMap::Exception
 Exception for MemoryMap operations. More...
 
struct  MemoryMap::Inconsistent
 Exception for an inconsistent mapping. More...
 
struct  MemoryMap::NotMapped
 Exception for when we try to access a virtual address that isn't mapped. More...
 
struct  MemoryMap::NoFreeSpace
 Exception thrown by find_free() when there's not enough free space left. More...
 
struct  MemoryMap::SyntaxError
 Exception thrown by load() when there's a syntax error in the index file. More...
 

Macros

#define ALIGN_UP(ADDR, ALMNT)   ((((ADDR)+(ALMNT)-1)/(ALMNT))*(ALMNT))
 
#define ALIGN_DN(ADDR, ALMNT)   (((ADDR)/(ALMNT))*(ALMNT))
 

Macro Definition Documentation

#define ALIGN_UP (   ADDR,
  ALMNT 
)    ((((ADDR)+(ALMNT)-1)/(ALMNT))*(ALMNT))
#define ALIGN_DN (   ADDR,
  ALMNT 
)    (((ADDR)/(ALMNT))*(ALMNT))

Definition at line 11 of file MemoryMap.h.