Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

ObjectModule::Section Class Reference

#include <module.h>

Inheritance diagram for ObjectModule::Section:

range< vma_t > List of all members.

Public Methods

 Section ()
 ~Section ()
unsigned IsCode () const
unsigned IsData () const
void SetIsCode ()
void SetIsData ()

Private Types

enum  { fCode = 1, fData = 2, fWritable = 4 }

Private Attributes

unsigned flag
unsigned char * data
unsigned char * data_end
Section * next

Friends

class ObjectModule
class DataReader

Member Enumeration Documentation

anonymous enum [private]
 

Enumeration values:
fCode 
fData 
fWritable 

Definition at line 53 of file module.h.

00053 { fCode = 1, fData = 2, fWritable = 4 };


Constructor & Destructor Documentation

ObjectModule::Section::Section   [inline]
 

Definition at line 45 of file module.h.

References data, data_end, flag, next, and vma_t.

00045 : range<vma_t>(0,0),flag(0),data(NULL),data_end(NULL),next(NULL) {};

ObjectModule::Section::~Section  
 

Definition at line 257 of file module.cpp.

References data.

00258 {
00259         delete data;
00260 }


Member Function Documentation

unsigned ObjectModule::Section::IsCode   const [inline]
 

Definition at line 48 of file module.h.

References fCode, and flag.

00048 { return flag & fCode; }

unsigned ObjectModule::Section::IsData   const [inline]
 

Definition at line 49 of file module.h.

References fData, and flag.

00049 { return flag & fData; }

void ObjectModule::Section::SetIsCode   [inline]
 

Definition at line 50 of file module.h.

References fCode, and flag.

00050 { flag |= fCode; }

void ObjectModule::Section::SetIsData   [inline]
 

Definition at line 51 of file module.h.

References fData, and flag.

00051 { flag |= fData; }


Friends And Related Function Documentation

friend class DataReader [friend]
 

Definition at line 43 of file module.h.

friend class ObjectModule [friend]
 

Definition at line 42 of file module.h.


Member Data Documentation

unsigned char* ObjectModule::Section::data [private]
 

Definition at line 55 of file module.h.

Referenced by ObjectModule::GetDataReader(), ObjectModule::DataReader::ReadByte(), Section(), ObjectModule::DataReader::Tell(), ObjectModule::DataReader::UnReadByte(), and ~Section().

unsigned char* ObjectModule::Section::data_end [private]
 

Definition at line 56 of file module.h.

Referenced by ObjectModule::DataReader::ReadByte(), and Section().

unsigned ObjectModule::Section::flag [private]
 

Definition at line 54 of file module.h.

Referenced by IsCode(), IsData(), Section(), SetIsCode(), and SetIsData().

Section* ObjectModule::Section::next [private]
 

Definition at line 57 of file module.h.

Referenced by ObjectModule::DataReader::ReadByte(), and Section().


The documentation for this class was generated from the following files:
Generated on Mon Jan 13 22:20:36 2003 for perdr by doxygen1.2.15