ROSE  0.9.6a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MemoryMap::Inconsistent Struct Reference

Exception for an inconsistent mapping. More...

#include <MemoryMap.h>

Inheritance diagram for MemoryMap::Inconsistent:
Collaboration diagram for MemoryMap::Inconsistent:

Public Member Functions

 Inconsistent (const std::string &mesg, const MemoryMap *map, const Extent &new_range, const Segment &new_segment, const Extent &old_range, const Segment &old_segment)
 
virtual ~Inconsistent () throw ()
 
virtual void print (std::ostream &, bool verbose=true) const
 
- Public Member Functions inherited from MemoryMap::Exception
 Exception (const std::string &mesg, const MemoryMap *map)
 
virtual ~Exception () throw ()
 
virtual std::string leader (std::string dflt="memory map problem") const
 Leading part of the error message. More...
 
virtual std::string details (bool) const
 Details emitted on following lines, indented two spaces. More...
 

Public Attributes

Extent new_range
 
Extent old_range
 
Segment new_segment
 
Segment old_segment
 
- Public Attributes inherited from MemoryMap::Exception
const MemoryMapmap
 Map that caused the exception if available, null otherwise. More...
 

Friends

std::ostream & operator<< (std::ostream &, const Inconsistent &)
 

Detailed Description

Exception for an inconsistent mapping.

This exception occurs when an attemt is made to insert a new segment but the address range of the new segment is alread defined by an existing segment. The new_range and new_segment are information about the segment that was being inserted, and the old_range and old_segment is information about an existing segment that conflicts with the new one.

Definition at line 439 of file MemoryMap.h.

Constructor & Destructor Documentation

MemoryMap::Inconsistent::Inconsistent ( const std::string &  mesg,
const MemoryMap map,
const Extent new_range,
const Segment new_segment,
const Extent old_range,
const Segment old_segment 
)
inline

Definition at line 440 of file MemoryMap.h.

virtual MemoryMap::Inconsistent::~Inconsistent ( )
throw (
)
inlinevirtual

Definition at line 446 of file MemoryMap.h.

Member Function Documentation

void MemoryMap::Inconsistent::print ( std::ostream &  o,
bool  verbose = true 
) const
virtual

Reimplemented from MemoryMap::Exception.

Definition at line 68 of file MemoryMap.C.

Referenced by operator<<().

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
const Inconsistent x 
)
friend

Definition at line 32 of file MemoryMap.C.

Member Data Documentation

Extent MemoryMap::Inconsistent::new_range

Definition at line 449 of file MemoryMap.h.

Extent MemoryMap::Inconsistent::old_range

Definition at line 449 of file MemoryMap.h.

Segment MemoryMap::Inconsistent::new_segment

Definition at line 450 of file MemoryMap.h.

Segment MemoryMap::Inconsistent::old_segment

Definition at line 450 of file MemoryMap.h.


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