OpenASIP
2.0
|
#include <TPEFLineNumSectionWriter.hh>
Protected Member Functions | |
TPEFLineNumSectionWriter () | |
virtual | ~TPEFLineNumSectionWriter () |
virtual Section::SectionType | type () const |
virtual void | actualWriteData (BinaryStream &stream, const Section *section) const |
virtual Word | elementSize (const Section *section) const |
virtual void | writeInfo (BinaryStream &stream, const Section *sect) const |
Protected Member Functions inherited from TPEF::TPEFSectionWriter | |
TPEFSectionWriter () | |
virtual | ~TPEFSectionWriter () |
virtual const BinaryWriter & | parent () const |
virtual void | actualWriteHeader (BinaryStream &stream, const Section *sect) const |
virtual void | createKeys (const Section *sect) const |
virtual void | writeSize (BinaryStream &stream, const Section *sect) const |
virtual SectionId | getSectionId () const |
Protected Member Functions inherited from TPEF::SectionWriter | |
SectionWriter () | |
virtual | ~SectionWriter () |
virtual void | finalize (BinaryStream &stream, Section *section) const |
Private Member Functions | |
TPEFLineNumSectionWriter (const TPEFLineNumSectionWriter &) | |
Copying not allowed. More... | |
TPEFLineNumSectionWriter | operator= (const TPEFLineNumSectionWriter &) |
Assignment not allowed. More... | |
Static Private Attributes | |
static const TPEFLineNumSectionWriter | instance_ |
An unique instance of class. More... | |
static const Word | elementSize_ = 6 |
The fixed size address space element. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from TPEF::SectionWriter | |
static void | writeHeader (BinaryStream &stream, const Section *sect, const BinaryWriter *writer) |
static void | writeData (BinaryStream &stream, const Section *sect, const BinaryWriter *writer) |
static void | finalizeBinary (BinaryStream &stream, const Binary *binaryToFinalize, const BinaryWriter *writer) |
Static Protected Member Functions inherited from TPEF::SectionWriter | |
static void | registerSectionWriter (const SectionWriter *sWriter) |
static SectionId | getUniqueSectionId () |
Writes TPEF line number section to stream.
Definition at line 46 of file TPEFLineNumSectionWriter.hh.
|
protected |
Constructor.
Registers itself to SectionWriter.
Definition at line 66 of file TPEFLineNumSectionWriter.cc.
References TPEF::SectionWriter::registerSectionWriter().
|
protectedvirtual |
|
private |
Copying not allowed.
|
protectedvirtual |
Writes the data of the section in to stream.
stream | The stream to be written to. |
sect | The section to be written. |
Reimplemented from TPEF::TPEFSectionWriter.
Definition at line 93 of file TPEFLineNumSectionWriter.cc.
References TPEF::ReferenceManager::SafePointer::addObjectReference(), assert, TPEF::Section::element(), TPEF::Section::elementCount(), TPEF::LineNumElement::instruction(), TPEF::LineNumProcedure::line(), TPEF::LineNumProcedure::lineCount(), TPEF::LineNumElement::lineNumber(), TPEF::LineNumProcedure::procedureSymbol(), TPEF::ValueReplacer::resolve(), TPEF::SectionSizeReplacer::setSize(), TPEF::BinaryStream::writeHalfWord(), and TPEF::BinaryStream::writePosition().
|
protectedvirtual |
Returns the fixed size length of section elements.
Reimplemented from TPEF::TPEFSectionWriter.
Definition at line 139 of file TPEFLineNumSectionWriter.cc.
References elementSize_.
|
private |
Assignment not allowed.
|
protectedvirtual |
Returns the section type this writer can write.
Implements TPEF::TPEFSectionWriter.
Definition at line 82 of file TPEFLineNumSectionWriter.cc.
References TPEF::Section::ST_LINENO.
|
protectedvirtual |
Writes Info field of section header.
stream | The stream where to write. |
sect | Section to write. |
Reimplemented from TPEF::TPEFSectionWriter.
Definition at line 150 of file TPEFLineNumSectionWriter.cc.
References TPEF::ValueReplacer::resolve(), and TPEF::BinaryStream::writeHalfWord().
|
staticprivate |
The fixed size address space element.
Definition at line 70 of file TPEFLineNumSectionWriter.hh.
Referenced by elementSize().
|
staticprivate |
An unique instance of class.
Definition at line 68 of file TPEFLineNumSectionWriter.hh.